Device operation control method, electronic device, and storage medium

By using a proximity sensor and motion detection, the system intelligently determines whether to turn on the screen, solving the problem of increased power consumption caused by accidental touches when a smartphone is in a pocket or backpack, and achieving both accidental touch prevention and energy saving.

CN117742475BActive Publication Date: 2026-08-04HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HUAWEI TECH CO LTD
Filing Date
2022-09-14
Publication Date
2026-08-04

AI Technical Summary

Technical Problem

When carrying a smartphone, the screen is prone to frequent activation due to accidental touches, leading to increased power consumption. This is especially true when moving around in a pocket or backpack, where accidental touches caused by friction are unavoidable.

Method used

The proximity sensor detects whether the device is obstructed, and when it is not obstructed and the touchscreen receives a set number of touch events, it determines whether to turn on the screen based on the device's position and motion state to avoid accidental touches.

Benefits of technology

It effectively prevents accidental screen lighting, saves device power consumption, and improves the anti-accidental touch effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117742475B_ABST
    Figure CN117742475B_ABST
Patent Text Reader

Abstract

The application discloses a device operation control method, an electronic device and a storage medium, and relates to the technical field of terminal devices. In the application, when the electronic device is in an off-screen state, if a proximity light sensor in the electronic device detects that the electronic device is currently in an unblocked state, and the number of touch events received by the touch screen of the electronic device within a set time length reaches a set number, the pose and motion state of the electronic device are acquired, and whether the touch screen of the electronic device is lighted is determined according to the pose and motion state of the electronic device, so that the electronic device can be prevented from frequently turning on the screen due to accidental touch of the touch screen of the electronic device, the anti-accidental touch effect of the electronic device is improved, and the power consumption of the electronic device is saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminal equipment technology, and in particular to a device operation control method, electronic equipment, and storage medium. Background Technology

[0002] With the rapid development of communication and mobile internet technologies, electronic devices such as smartphones have brought great convenience to people's lives and work. Taking smartphones as an example, as people use them more frequently, they are gradually becoming accustomed to carrying them anytime, anywhere. For instance, people can carry their smartphones by placing them in their pockets or backpacks.

[0003] When carrying a smartphone, if the user is walking, running, or engaging in other activities, friction between the smartphone and their pocket or bag can easily occur, leading to accidental screen touches. In such cases, the user may not intend to use the smartphone, but the accidental touch causes the screen to turn on instead of off, increasing the device's power consumption. Summary of the Invention

[0004] This application provides a device operation control method, an electronic device, and a storage medium, which can improve the anti-accidental touch effect of the electronic device and save the power consumption of the electronic device.

[0005] In a first aspect, embodiments of this application provide a device operation control method applied to an electronic device. This device operation control method may include: when the electronic device is in a screen-off state, if a proximity sensor in the electronic device detects that the electronic device is currently in an unobstructed state, and the touchscreen of the electronic device receives a set number of touch events within a set time period, acquiring the pose and motion state of the electronic device, and determining whether to illuminate the touchscreen based on the pose and motion state of the electronic device. Here, an unobstructed state indicates that there is no object within a set range of the electronic device. For example, when the motion state of the electronic device is non-stationary, and the pose of the electronic device is a target pose, the electronic device determines not to illuminate the touchscreen. Here, the target pose refers to an angle between the plane where the touchscreen of the electronic device is located and a straight line perpendicular to the horizontal plane that is less than or equal to a set angle threshold. For example, the set angle threshold may be 15° or 30°.

[0006] The above-described device operation control method involves the following steps: When the electronic device is in a screen-off state, if it is currently unobstructed and its touchscreen receives a set number of touch events within a set time period, the device's pose and motion state are acquired. Based on these conditions, a decision is made regarding whether to illuminate the touchscreen. For example, if the electronic device is in a target pose and the angle between the plane of its touchscreen and a line perpendicular to the horizontal plane is small, it indicates that the device is in portrait or horizontal orientation. This suggests the device may be placed in a user's pocket or bag. Furthermore, the device is not stationary, indicating the user is in motion. In this case, a touch operation might be a mis-touch caused by friction between the pocket / bag and the touchscreen. Therefore, the touchscreen is not illuminated, preventing frequent screen illumination due to accidental touches, improving the device's anti-accidental touch performance, and saving power.

[0007] In one possible implementation, the above-mentioned device operation control method may further include: if the motion state of the electronic device is stationary, or if the pose of the electronic device is not the target pose, then the electronic device determines to turn on the touch screen.

[0008] If the electronic device is stationary, or if the electronic device's pose is not the target pose (for example, when the electronic device is placed flat on a table, the angle between the plane where the electronic device's touchscreen is located and the horizontal plane is small, while the angle between the plane and the line perpendicular to the horizontal plane is large), the electronic device considers the touch event to be initiated by the user who needs to use the electronic device. The electronic device can then turn on the touchscreen so that the user can use the electronic device.

[0009] In one possible implementation, the above-mentioned device operation control method may further include: if the motion state of the electronic device is stationary, then stop acquiring the pose and motion state of the electronic device.

[0010] If the electronic device is stationary, it means that the touchscreen is unlikely to be rubbed by a pocket or backpack due to movement, which basically eliminates the possibility of accidental touch. In this case, the electronic device can stop acquiring the device's position and motion status to avoid generating additional power consumption.

[0011] In one possible implementation, a touch event refers to a series of double-tap events on the touchscreen of an electronic device when the screen is off.

[0012] In one possible implementation, if the proximity sensor in the electronic device detects that the device is currently in an obstructed state, the electronic device is controlled to enter an anti-mistouch mode. Here, obstruction indicates the presence of an object within a set range of the electronic device. When the proximity sensor is obstructed, the electronic device enters the anti-mistouch mode and does not respond to touch operations on the touchscreen, further saving power consumption.

[0013] Secondly, embodiments of this application provide an electronic device, including a processor, a proximity sensor, and a touchscreen; the proximity sensor is used to detect whether an object exists within a set range of the electronic device; the processor is used to, when the touchscreen is in a screen-off state, obtain the current pose and motion state of the electronic device when the proximity sensor detects that the electronic device is currently in an unobstructed state and the number of touch events received by the touchscreen within a set time period reaches a set number; when the motion state of the electronic device is a non-stationary state and the pose of the electronic device is a target pose, determine not to light up the touchscreen; the target pose refers to the angle between the plane where the electronic device is located and a straight line perpendicular to the horizontal plane being less than or equal to a set angle threshold.

[0014] In one possible implementation, the processor can also be used to: determine to light up the touchscreen if the motion state of the electronic device is stationary, or if the pose of the electronic device is not the target pose.

[0015] In one possible implementation, the processor can also be used to: stop acquiring the pose and motion state of the electronic device if the motion state of the electronic device is stationary.

[0016] Thirdly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions for causing a computer to perform the method proposed in any of the possible designs of the first aspect above.

[0017] Fourthly, embodiments of this application provide a computer program product comprising computer-executable instructions for causing a computer to perform the method proposed in any of the possible designs of the first aspect.

[0018] The technical effects that can be achieved by any of the second to fourth aspects mentioned above can be referred to the description of the beneficial effects in the first aspect mentioned above, and will not be repeated here. Attached Figure Description

[0019] Figure 1 A schematic diagram of the hardware architecture of an electronic device provided in an embodiment of this application;

[0020] Figure 2 A schematic diagram of the software architecture of an electronic device provided in an embodiment of this application;

[0021] Figure 3 A schematic diagram of a possible desktop style for an electronic device provided in an embodiment of this application;

[0022] Figure 4 A schematic diagram of a possible settings interface style for an electronic device provided in an embodiment of this application;

[0023] Figure 5 A schematic diagram illustrating another possible settings interface style for the electronic device provided in the embodiments of this application;

[0024] Figure 6 This is a schematic diagram illustrating an electronic device placed in a clothing pocket, as provided in an embodiment of this application.

[0025] Figure 7 A schematic diagram illustrating the vertical screen placement of an electronic device according to an embodiment of this application;

[0026] Figure 8 This is a schematic diagram illustrating another electronic device placed in a clothing pocket, as provided in an embodiment of this application.

[0027] Figure 9 A schematic diagram illustrating an electronic device placed horizontally in an embodiment of this application;

[0028] Figure 10 This is a flowchart of a device operation control method provided in an embodiment of this application. Detailed Implementation

[0029] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the embodiments of this application will be described in detail below with reference to the accompanying drawings. The terminology used in the implementation section of this application is only for explaining specific embodiments of this application and is not intended to limit this application.

[0030] Before introducing the specific solutions provided in the embodiments of this application, some terms used in this application will be explained to facilitate understanding by those skilled in the art, but the terms used in this application are not limited.

[0031] (1) Proximity Light Sensor: A sensor used in electronic devices, which can be integrated into the sensor module of the electronic device or set up separately. A proximity light sensor is used to detect the presence of an object within a set range near the electronic device. For example, a proximity light sensor may include, for instance, a light-emitting diode (LED) and a photodetector. The LED emits infrared light outward, and the photodetector detects the infrared reflected light from a nearby object. When sufficient reflected light is detected, it indicates that the device is currently in an obstructed state, and it can be determined that an object exists within the set range near the electronic device. When insufficient reflected light is detected, it indicates that the device is currently in an unobstructed state, and it can be determined that no object exists within the set range near the electronic device.

[0032] (2) Anti-mistouch mode: An operating mode of an electronic device used to prevent accidental touch operations on the touchscreen. When the proximity sensor detects that the device is currently in an obstructed state, the electronic device will activate the anti-mistouch mode. When the electronic device is in the anti-mistouch mode, it will not respond to any touch operations on the touchscreen to avoid user misoperation and save energy. When the proximity sensor detects that the device is currently in an unobstructed state, the electronic device will deactivate the anti-mistouch mode. For example, when the electronic device is in a space with no obstructions in the surrounding environment, the proximity sensor is currently in an unobstructed state.

[0033] (3) Screen off state: This refers to the electronic device's display screen being off and not displaying any information. When the electronic device is in the screen off state, the user can turn on the screen by touching the electronic device's touch screen, pressing the electronic device's mechanical buttons, or pressing the power button on the side of the electronic device.

[0034] In this application embodiment, "multiple" refers to two or more. Therefore, in this application embodiment, "multiple" can also be understood as "at least two". "At least one" can be understood as one or more, such as one, two, or more. For example, "including at least one" means including one, two, or more, and it does not limit which ones are included. For example, including at least one of A, B, and C, then it could include A, B, C, A and B, A and C, B and C, or A and B and C. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / ", unless otherwise specified, generally indicates that the preceding and following related objects have an "or" relationship.

[0035] Unless otherwise stated, the ordinal numbers such as "first" and "second" mentioned in the embodiments of this application are used to distinguish multiple objects, and are not used to limit the order, sequence, priority or importance of multiple objects.

[0036] Currently, when electronic devices are placed in a user's clothing pocket or a mesh pocket on the side of a backpack, if the pocket fabric is thin or transparent, or due to the perforated structure of the mesh pocket, the proximity sensor may detect that the electronic device is unobstructed, thus preventing the anti-mistouch mode from being activated. In this situation, if the user walks, runs, or engages in other activities, friction can easily occur between the pocket / backpack and the electronic device, potentially leading to accidental touches on the touchscreen and causing the screen to turn on, thus increasing the device's power consumption.

[0037] Based on this, this application provides a device operation control method. When the proximity sensor in the electronic device detects that the electronic device is currently in an unobstructed state, the processor can count the number of touch events received by the touch screen of the electronic device. If the number of touch events received within a set time period reaches the set number, such as receiving a large number of consecutive touch events within a short time period, the current pose and motion state of the electronic device are obtained. Based on the pose and motion state of the electronic device, it is then decided whether to perform a screen-on operation. For example, if it is determined that the electronic device is currently almost vertical and is in motion or moving, it can be determined that the electronic device may be in a transparent or light-transmitting cloth bag or in the user's backpack net bag, etc. At this time, the processor can control the touch screen of the electronic device to remain in a screen-off state, thereby avoiding frequent screen-on of the electronic device due to accidental touch of the touch screen, improving the anti-accidental touch effect of the electronic device, and saving power consumption of the electronic device.

[0038] For example, if the electronic device is not stationary, it means the user is carrying the device in motion. If the electronic device's pose is the target pose, meaning the angle between the plane of the touchscreen and a line perpendicular to the horizontal plane is less than or equal to a set angle threshold (equivalent to the device being perpendicular to the ground), it indicates the device is placed in a transparent or light-transmitting pocket of the user's clothing or a backpack mesh pocket. The frequent touch events received by the device are likely due to friction between the pocket or backpack mesh and the screen. Therefore, in this case, the screen should not be turned on, and the device should remain off to avoid increasing power consumption due to frequent screen activation.

[0039] The device operation control method provided in this application can be applied to electronic devices equipped with touch screens. The electronic device can be a device that provides users with video recording and / or data connectivity, a handheld device with wireless connectivity, or other processing devices connected to a wireless modem, such as mobile phones (or "cellular" phones), smartphones, and can be portable, pocket-sized, handheld, wearable devices (such as smartwatches), tablet computers, personal computers (PCs), PDAs (Personal Digital Assistants), in-vehicle computers, drones, aerial photography devices, computers, etc. This application does not limit the type of electronic device; any electronic device with a touch screen can be applied to the embodiments of this application.

[0040] The following is a schematic diagram of the structure of an electronic device as an example. Figure 1 A schematic diagram of an optional hardware structure of an electronic device 100 to which embodiments of this application are applicable is shown.

[0041] Electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a touch panel (TP) 194, a display screen 194A, a touch device 194B, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, an orientation sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, an ambient light sensor 180K, a bone conduction sensor 180L, etc.

[0042] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware. The following only describes in detail the functions of some related components used in the solution of this application; the functions of other components can be referred to the functions of the prior art or briefly described herein.

[0043] Processor 110 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). These different processing units may be independent devices or integrated into one or more processors.

[0044] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.

[0045] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or is using repeatedly. If the processor 110 needs to use the instruction or data again, it can directly retrieve it from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system. In this embodiment, when the display screen 194A is in a screen-off state, the processor 110 can control the proximity sensor 180G to detect the occlusion of objects around the electronic device, determine whether the electronic device is currently in an occluded or unoccluded state, and detect the number of touch events received by the touch screen 194 of the electronic device within a set time period when the electronic device is in an unoccluded state. Based on the number of touch events, the processor 110 further determines the current motion state and pose of the electronic device based on the detection of the sensor module 180. Based on the current motion state and pose of the electronic device, the processor determines whether to turn on the display screen 194A in the touch screen 194 or keep the display screen 194A in a screen-off state to save power consumption of the electronic device.

[0046] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0047] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C buses. The processor 110 can couple to the touchscreen 194, charger, flash, camera 193, etc., through different I2C bus interfaces. For example, the processor 110 can couple to the touchscreen 194 through the I2C interface, enabling the processor 110 and the touchscreen 194 to communicate via the I2C bus interface, thereby realizing the touch function of the electronic device 100.

[0048] The I2S interface can be used for audio communication. In some embodiments, the processor 110 may include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the I2S interface to enable the function of answering phone calls through a Bluetooth headset.

[0049] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via the PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface, enabling the function of answering phone calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0050] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the UART interface to enable music playback through Bluetooth headphones.

[0051] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the camera 193. The MIPI interface includes a camera serial interface (CSI) and a display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to enable the electronic device 100 to perform its shooting function.

[0052] The GPIO interface can be configured via software. It can be configured as a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to a camera 193, a wireless communication module 160, an audio module 170, a sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0053] The SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to make contact with and separate from the electronic device 100. The electronic device 100 can support one or N3 SIM interfaces, where N3 is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 195 simultaneously. The multiple cards can be of the same or different types. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to realize functions such as calls and data communication. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.

[0054] USB port 130 is a USB standard compliant interface, specifically a Mini USB port, Micro USB port, USB Type-C port, etc. This USB port can be used to connect a charger to charge electronic device 100, and also for data transfer between electronic device 100 and peripheral devices. It can also be used to connect headphones for audio playback. This interface can also be used to connect other electronic devices, such as AR devices.

[0055] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.

[0056] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via a USB interface 130. While charging the battery 142, the charging management module 140 can also supply power to the electronic device via the power management module 141.

[0057] The power management module 141 connects the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, providing power to the processor 110, internal memory 121, camera 193, and wireless communication module 160, etc. The wireless communication function of the electronic device 100 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor, etc.

[0058] Antennas 1 and 2 are used to transmit and receive electromagnetic wave signals. Mobile communication module 150 can provide solutions for wireless communication applications, including 2G / 3G / 4G / 5G, on electronic device 100. Mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. Mobile communication module 150 can receive electromagnetic waves via antenna 1, filter and amplify the received electromagnetic waves, and transmit them to a modem processor for demodulation. Mobile communication module 150 can also amplify the signal modulated by the modem processor and radiate it as electromagnetic waves via antenna 1. Wireless communication module 160 can provide solutions for wireless communication applications on electronic device 100. Wireless communication module 160 receives electromagnetic waves via antenna 2, frequency modulates and filters the electromagnetic wave signal, and sends the processed signal to processor 110. Wireless communication module 160 can also receive signals to be transmitted from processor 110, frequency modulate and amplify them, and radiate them as electromagnetic waves via antenna 2.

[0059] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with networks and other devices via wireless communication technology. Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.

[0060] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.

[0061] The speaker 170A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or make hands-free calls through the speaker 170A.

[0062] The receiver 170B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a telephone call or voice message, the receiver 170B can be brought close to the ear to listen to the voice.

[0063] Microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can speak by bringing their mouth close to microphone 170C, inputting the sound signal into microphone 170C. Electronic device 100 may have at least one microphone 170C. In some embodiments, electronic device 100 may have two microphones 170C, which, in addition to collecting sound signals, can also perform noise reduction. In other embodiments, electronic device 100 may also have three, four, or more microphones 170C, which can collect sound signals, reduce noise, identify the sound source, and perform directional recording, etc.

[0064] The 170D headphone jack is used to connect wired headphones. The 170D headphone jack can be a USB 130 interface or a 3.5mm Open Mobile Terminal Platform (OMTP) standard interface, a CTIA (Cellular Telecommunications Industry Association of the USA) standard interface.

[0065] The sensor module 180 may include a pressure sensor 180A, an orientation sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, an ambient light sensor 180K, a bone conduction sensor 180L, etc.

[0066] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be disposed on display screen 194A. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may include at least two parallel plates with conductive material. When force is applied to pressure sensor 180A, the capacitance between the electrodes changes. Electronic device 100 determines the pressure intensity based on the change in capacitance. When a touch operation is applied to display screen 194A, electronic device 100 detects the intensity of the touch operation based on pressure sensor 180A. Electronic device 100 can also calculate the touch position based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch position but with different touch operation intensities can correspond to different operation commands. For example: when a touch operation with an intensity less than a first pressure threshold is applied to the SMS application icon, a command to view an SMS is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to the SMS application icon, a command to create a new SMS is executed. In this embodiment of the application, the pressure sensor 180A will be used to detect whether the touch screen 194 receives a set number of touch events within a set time period.

[0067] The orientation sensor 180B can be used to determine the pose of the electronic device 100. In some embodiments, the orientation sensor 180B can determine the angular position of the electronic device 100 about three axes (i.e., the x, y, and z axes). In this embodiment, the orientation sensor 180B will be used to detect the pose data of the electronic device.

[0068] In some embodiments, the sensor module may further include a gyroscope sensor. The gyroscope sensor can be used for image stabilization.

[0069] The barometric pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates altitude using the air pressure value measured by the barometric pressure sensor 180C to assist in positioning and navigation.

[0070] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip cover. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover using the magnetic sensor 180D. Then, based on the detected opening and closing state of the cover or the flip cover, features such as automatic flip unlocking can be set.

[0071] The accelerometer 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the posture of the electronic device and applied to applications such as screen orientation switching and pedometers. In this embodiment, the accelerometer 180E will be used to detect whether the electronic device is stationary or in motion.

[0072] A distance sensor 180F is used to measure distance. Electronic device 100 can measure distance via infrared or laser. In some embodiments, during a shooting scene, electronic device 100 can utilize the distance sensor 180F to measure distance for rapid focusing.

[0073] The proximity sensor 180G may include, for example, a light-emitting diode (LED) and a light detector, such as a photodiode. The LED may be an infrared LED. The electronic device 100 emits infrared light outward through the LED. The electronic device 100 uses the photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object within a set range near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object within the set range near the electronic device 100. The electronic device 100 may use the proximity sensor 180G to detect when a user holds the electronic device 100 close to their ear for a call, so as to automatically turn off the screen to save power. In some embodiments, the proximity sensor 180G may be used to determine whether to activate the anti-mistouch mode. For example, when the proximity sensor 180G detects an object within a set range near the electronic device 100, it indicates that the proximity sensor 180G is currently blocked, and the electronic device 100 may activate the anti-mistouch mode.

[0074] An ambient light sensor 180K is used to sense ambient light brightness. In some embodiments, the electronic device 100 can determine the exposure time of an image based on the ambient light brightness sensed by the ambient light sensor 180K. In some embodiments, the electronic device 100 can adaptively adjust the brightness of the display screen 194 based on the sensed ambient light brightness. The ambient light sensor 180K can also be used to automatically adjust the white balance when taking a picture.

[0075] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can utilize the characteristics of the collected fingerprints to achieve fingerprint unlocking, accessing application locks, taking photos with fingerprints, answering calls with fingerprints, etc.

[0076] Temperature sensor 180J is used to detect temperature. In some embodiments, electronic device 100 uses the temperature detected by temperature sensor 180J to execute a temperature handling strategy. For example, when the temperature reported by temperature sensor 180J exceeds a threshold, electronic device 100 performs thermal protection by reducing the performance of a processor located near temperature sensor 180J to reduce power consumption. In other embodiments, when the temperature is below another threshold, electronic device 100 heats battery 142 to prevent abnormal shutdown of electronic device 100 due to low temperature. In still other embodiments, when the temperature is below yet another threshold, electronic device 100 boosts the output voltage of battery 142 to prevent abnormal shutdown due to low temperature.

[0077] The bone conduction sensor 180L can acquire vibration signals. In some embodiments, the bone conduction sensor 180L can acquire vibration signals from the vibrating bone segments of the human vocal cords. The bone conduction sensor 180L can also contact the human pulse to receive blood pressure signals. In some embodiments, the bone conduction sensor 180L can also be incorporated into headphones to form bone conduction headphones. The audio module 170 can parse the voice signals from the vibrating bone segments of the vocal cords acquired by the bone conduction sensor 180L to realize voice functionality. The application processor can parse heart rate information from the blood pressure signals acquired by the bone conduction sensor 180L to realize heart rate detection functionality.

[0078] Electronic device 100 implements display functions through a graphics processing unit (GPU), a display screen 194A, and an application processor. The GPU is a microprocessor for image processing, connecting the display screen 194A and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0079] Electronic device 100 can perform shooting functions through an image signal processing unit (ISP), camera 193, video codec, GPU, display screen 194A, and application processor.

[0080] The ISP (Image Signal Processor) is used to process data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, transforming it into an image visible to the naked eye. The ISP can also perform algorithmic optimization of image noise, brightness, and skin tone. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.

[0081] Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then transmitted to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard formats such as RGB and YUV. In some embodiments, processor 110 can trigger the camera 193 to start according to a program or instruction in internal memory 121, thereby enabling camera 193 to acquire at least one image and perform corresponding processing on at least one image according to the program or instruction, such as removing rotational blur, removing translation blur, de-mosaic, denoising, or enhancement processing, as well as image post-processing. After processing, the processed image can be displayed on display screen 194A. In some embodiments, electronic device 100 may include one or N2 cameras 193, where N2 is a positive integer greater than 1. For example, electronic device 100 may include at least one front-facing camera and at least one rear-facing camera. For example, electronic device 100 may also include side-facing cameras. In one possible implementation, electronic device 100 may include two rear-facing cameras, for example, a main camera and a telephoto camera; or, electronic device 100 may include three rear-facing cameras, for example, a main camera, a wide-angle camera, and a telephoto camera; or, electronic device 100 may include four rear-facing cameras, for example, a main camera, a wide-angle camera, a telephoto camera, and a mid-range camera.

[0082] Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when electronic device 100 selects a frequency, the DSP can perform Fourier transforms on the frequency energy.

[0083] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. Thus, electronic device 100 can play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0084] The touchscreen 194 can also be called a touch screen. The touchscreen 194 may include a display screen 194A and a touch device 194B, which can also be called a touch sensor. The touch device 194B and the display screen 194A can be disposed on the surface of the electronic device 100, with the touch device 194B disposed on top of the display screen 194A. The touch device 194B can be used to detect touch operations applied to or near it, and transmit the detected touch operations to the processor 110, so that the processor 110 determines the type of touch event and executes the corresponding operation. For example, when the display screen 194A of the electronic device 100 is in a screen-off state, if a touch event is received for the touchscreen 194 via the touch device 194B, a screen-on operation can be performed. In this embodiment, the touch device 194B will detect whether a set number of touch events occur within a set time period, and send the detection results to the processor 110, which will determine whether to turn on the screen or continue to maintain the screen-off state.

[0085] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.

[0086] Internal memory 121 can be used to store computer executable program code, which includes instructions. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as a camera application), etc. The data storage area may store data created during the use of electronic device 100 (such as images captured by a camera), etc. Furthermore, internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc. Processor 110 executes various functional applications and data processing of electronic device 100 by running instructions stored in internal memory 121 and / or instructions stored in memory disposed in the processor. Internal memory 121 may also store code for controlling the operation of electronic device. When the code for controlling the operation of electronic device stored in internal memory 121 is executed by processor 110, the device operation control method provided in this application embodiment can be implemented. Of course, the code for controlling the operation of electronic device provided in this application embodiment can also be stored in external memory. In this case, the processor 110 can run code that controls the operation of the electronic device through the external memory interface 120 to implement the device operation control method provided in the embodiments of this application.

[0087] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch-sensitive buttons. Electronic device 100 can receive button input and generate key signal inputs related to user settings and function control of electronic device 100.

[0088] Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback. For example, different vibration feedback effects can be corresponding to touch operations applied to different applications (such as taking photos, playing audio, etc.). Motor 191 can also correspond to different vibration feedback effects for touch operations applied to different areas of the touchscreen 194. Different application scenarios (such as time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.

[0089] Indicator 192 can be an indicator light, used to indicate charging status, power changes, or to indicate messages, missed calls, notifications, etc.

[0090] The SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to make contact with and separate from the electronic device 100. The electronic device 100 can support one or N3 SIM card interfaces, where N3 is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 195 simultaneously. The multiple cards can be of the same or different types. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to realize functions such as calls and data communication. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.

[0091] The software system architecture of electronic device 100 will be described below. The software system of electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application embodiment uses the layered architecture Android system as an example to illustrate the software structure of electronic device 100.

[0092] Figure 2This is a software structure block diagram of an electronic device 100 according to an embodiment of this application. The layered architecture divides the software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer (framework, FWK), the Android runtime and system libraries, and the kernel layer. The application layer may include a series of application packages.

[0093] like Figure 2 As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and SMS.

[0094] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0095] like Figure 2 As shown, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.

[0096] The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture screenshots, among other things.

[0097] Content providers store and retrieve data, making that data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.

[0098] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.

[0099] The phone manager is used to provide communication functions for electronic device 100. For example, it manages call status (including connection and disconnection).

[0100] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.

[0101] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of completed downloads or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.

[0102] The Android Runtime consists of core libraries and a virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.

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

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

[0105] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.

[0106] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.

[0107] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.

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

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

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

[0111] In some embodiments of this application, when a touch device in an electronic device receives a touch operation, a corresponding hardware interrupt notification message is sent to the kernel layer. The kernel layer processes the touch operation notification message into raw input events (including touch coordinates, touch operation timestamps, etc.). The raw input events are stored in the kernel layer. The application framework layer obtains the raw input events from the kernel layer. Taking a double-touch operation as an example, if the electronic device is currently in a screen-off state and the proximity sensor detects that the electronic device is currently in an unobstructed state, the display driver can be started through the kernel layer to display the unlock screen or desktop interface of the electronic device. If the proximity sensor detects that the electronic device is currently in an unobstructed state, and the touch device of the electronic device receives a set number of touch events within a set time period, the application framework layer can obtain the pose and motion state of the electronic device, and determine whether to start the display driver through the kernel layer to display the unlock screen or desktop interface of the electronic device based on the pose and motion state of the electronic device.

[0112] It is important to understand that the functional services described above are just an example. In practical applications, electronic devices may be divided into more or fewer functional services based on other factors, or the functions of each service may be divided in other ways, or they may not be divided into functional services but work as a whole.

[0113] The following is in conjunction with the above. Figure 1 The hardware architecture of the electronic device shown is the same as that described above. Figure 2 The software architecture shown will be explained in detail through specific embodiments to illustrate the device operation control method provided in this application.

[0114] The solution provided in this application can be applied to portable electronic devices such as smartphones with touchscreens. The following description uses a smartphone as an example. Figure 3 An exemplary schematic diagram of a smartphone desktop is shown. The smartphone desktop can display icons for applications (APPs) installed on the smartphone and functional modules included in the smartphone's operating system. When a user clicks the "Settings" icon on the desktop, the smartphone can respond to the user's click on the "Settings" icon, enter the "Settings" module, and display, as shown... Figure 4 The settings interface shown.

[0115] exist Figure 4The settings interface shown displays several user-operable options, including a "Gesture Recognition Screen Wake-up" setting. To the right of this setting is a corresponding toggle control, which the smartphone can use to receive user input and enable or disable the gesture recognition screen wake-up function. This function allows the smartphone to recognize and respond to corresponding touch gestures on the touchscreen to wake the screen when it is off. When the user slides the toggle control to the "on" position, the smartphone can activate this gesture-based screen wake-up function. For added convenience, some users choose to enable this feature. When enabled, the smartphone can recognize corresponding touch gestures on the touchscreen even when the screen is off and respond to these gestures by waking the screen. For example, if the smartphone receives a double-tap on the touchscreen while the screen is off, it can wake the screen and display the operating interface or unlock screen. If a smartphone displays a lock screen, the user can unlock the screen by entering a phone password or using facial recognition.

[0116] In the above application scenarios, in order to reduce the frequent screen lighting of smartphones due to accidental touch operations, thereby increasing user misoperation and device power consumption, this application provides a device operation control method.

[0117] As described above, a proximity sensor emits infrared light through a light-emitting diode (LED) and detects the intensity of reflected light from nearby objects using a photodiode. The electronic device can acquire the intensity data of the reflected light detected by the proximity sensor in real time and determine whether the device is currently in an obstructed state based on the received intensity data. For example, if the received intensity data is greater than a set intensity threshold, it indicates that the proximity sensor has detected sufficient reflected light, and an object exists within a set range near the electronic device; in this case, the electronic device can be determined to be in an obstructed state. If the received intensity data is less than or equal to the set intensity threshold, it indicates that the proximity sensor has detected insufficient reflected light, and no object exists within the set range near the electronic device; in this case, the electronic device can determine that it is currently in an unobstructed state.

[0118] If the electronic device is currently obstructed, it will automatically enter the accidental touch prevention mode according to its current functions. For example, such as Figure 5As shown, in some embodiments, the settings interface of the electronic device may include a "mistaken touch prevention mode" setting option. To the right of this setting option is a corresponding switch control. The electronic device can receive user input through this switch control to enable or disable the mistaken touch prevention mode. When the user slides the switch control to the "on" state, the electronic device can respond to the user's operation to enable the mistaken touch prevention mode and activate it.

[0119] If the electronic device is currently obstructed, it means that there are objects or obstacles around the electronic device. For example, the electronic device may be placed in the user's pocket or backpack, or the user may be using the electronic device to make or receive a phone call. In this case, if the anti-mistouch mode is enabled, the electronic device can enter the anti-mistouch mode.

[0120] In other embodiments, the electronic device may have the anti-mistouch mode set to the on state by default. In this case, if the proximity sensor in the electronic device detects that the electronic device is currently in an obstructed state, the electronic device will automatically enter the anti-mistouch mode.

[0121] In anti-accidental touch mode, the electronic device does not respond to any touch operation on the touchscreen to prevent the screen from being turned on due to friction from pockets or backpacks, thus avoiding additional power consumption due to accidental touches.

[0122] If the proximity sensor in the electronic device detects that the device is currently unobstructed, the device will not enter the anti-mistouch mode. In this case, the electronic device can receive and respond to touch events from the user on the touchscreen. For example, a touch event could be a series of double-tap events on the touchscreen when the screen is off; or, a swipe event on the touchscreen when the screen is off. For instance, when a user double-tap the touchscreen, the touchscreen driver (TP driver) generates a touch event and reports it to the application framework layer of the electronic device. Therefore, the processor of the electronic device can receive the touch event.

[0123] The processor of an electronic device can count the number of touch events received by the device's touchscreen within a set time period. This set time period can be 5 seconds. The electronic device can record the received touch events. For example, when the electronic device is in a screen-off state, each time a touch event is received, the device records the touch event and its corresponding time, and deletes the record after 5 seconds.

[0124] The electronic device's processor determines whether the number of touch events received within a set time period has reached a predetermined number. This predetermined number can be three. If the electronic device's touchscreen receives fewer than three touch events within five seconds, the electronic device considers the touch event to be initiated by a user requesting to use the device. The electronic device can then activate the touchscreen to allow the user to use it. After activating the touchscreen, if no user input is received within a specified time, or if a correct unlock password is not received within the specified time, the electronic device returns to a screen-off state. This specified time can be either three or five seconds.

[0125] If an electronic device's touchscreen receives three touch events within five seconds, it indicates that the touchscreen is receiving touch events frequently. In this case, the electronic device may consider a possible accidental touch, or a suspicious operation that could be a mistaken touch. To further determine whether this suspicious operation is indeed a mistaken touch, the electronic device's frame layer can acquire the device's current pose and motion state.

[0126] For example, the application framework layer of an electronic device can acquire device pose data collected by an orientation sensor and determine the pose of the electronic device based on the device pose data. The pose of the electronic device can include flat, portrait, and horizontal. Flat placement can include the electronic device lying flat on a table or other horizontal surface, wherein when the electronic device is flat, the angle between the plane where the touchscreen is located and the horizontal plane is less than or equal to a set angle threshold; or, in other words, the angle between the plane where the touchscreen is located and a line perpendicular to the horizontal plane is greater than the set angle threshold. Portrait placement can include the electronic device being placed vertically on a surface such as... Figure 6 The image shows the item in the user's clothing pocket, or in a mesh pocket placed vertically on the side of the user's backpack. For example... Figure 7 As shown, when an electronic device is in portrait mode, it may be tilted to some extent. There may be an angle between the plane of the touchscreen and the y-axis, which is perpendicular to the horizontal plane. Figure 8 Angle a is shown in the diagram. Horizontal erection can include placing electronic devices horizontally, such as... Figure 8 The image shows the item in the user's clothing pocket or in a mesh pocket placed horizontally on the side of the user's backpack. Figure 9 The image shows a side view of an electronic device placed horizontally in a clothing pocket. Figure 9 As shown, when an electronic device is held horizontally upright, it may also tilt to some extent. There may be an angle between the plane of the touchscreen and the x-axis perpendicular to the horizontal plane, such as... Figure 9The β angle is shown in the diagram. The β angle can be the same as or different from the α angle. In summary, compared to a flat position, when the electronic device is held vertically or horizontally, the angle between the plane of the electronic device's touchscreen and a line perpendicular to the horizontal plane is less than or equal to a set angle threshold.

[0127] In some embodiments, the application framework layer of an electronic device can acquire the motion state of the electronic device in real time, as determined by a multimodal sensor data platform (MSDP). MSDP can be understood as a process running in the processor, which determines the motion state of the electronic device based on data collected by the sensor modules of the electronic device. In other embodiments, the electronic device can also determine its motion state based on real-time position change information. The motion state of the electronic device can include a stationary state and a non-stationary state. For example, when the electronic device is placed on a stationary table, or when a user carries the electronic device while lying down, the electronic device is in a stationary state; when a user carries the electronic device while walking, running, brisk walking, in a car, taking a taxi, or riding a high-speed train, the electronic device is in a non-stationary state.

[0128] When the electronic device is stationary, it is highly unlikely that the touchscreen was accidentally touched due to movement of the pocket or backpack. In this case, the electronic device considers the touch operation to be initiated by the user who needs to use the device, and can then turn on the screen. Furthermore, the electronic device can stop acquiring the current position and motion status of the device to avoid generating additional power consumption.

[0129] When the electronic device is in a non-stationary state, it determines whether its pose is the target pose. The target pose refers to the angle between the plane of the electronic device's touchscreen and a line perpendicular to the horizontal plane being less than or equal to a set angle threshold. For example, the set angle threshold could be 15°, 30°, or 45°. If the electronic device's pose is not the target pose, it means the electronic device is not placed in the user's clothing pocket or a mesh pocket on the side of their backpack, essentially ruling out the possibility of accidental touch. In this case, the electronic device considers the touch operation to be initiated by the user's need to use the device, and can then activate the screen.

[0130] When the electronic device is in a non-stationary state and its current pose is the target pose, it indicates that the electronic device may be placed in a transparent or light-transmitting pocket of the user's clothing or in a mesh pocket on the side of a backpack, and the user is carrying the electronic device. In this case, the electronic device considers the touch operation to be a mis-touch operation caused by the clothing pocket or backpack rubbing against the touch screen of the electronic device. The electronic device ignores this touch operation, does not perform the screen-on operation, and does not light up the touch screen of the electronic device. This can avoid the frequent screen-on of the electronic device due to mis-touch of the touch screen, improve the anti-mis-touch effect of the electronic device, and save power consumption of the electronic device.

[0131] In some application scenarios, such as Figure 6 As shown, when a user places an electronic device vertically in a translucent or transparent pocket of clothing, with the touchscreen facing outwards, the proximity sensor located at the top of the touchscreen side may detect that no object is within the device's set range, indicating the device is currently unobstructed. In this case, the device will not enter the anti-mistouch mode. If the user is moving, the clothing pocket may frequently touch the touchscreen. If the device lights up every time it receives a touch operation, multiple screen-on cycles will result in a cumulative power consumption of up to hundreds of milliamps, and frequent screen-on may also cause the phone to overheat. The method provided in this application allows the electronic device to detect multiple touch events on the touchscreen within a short period when the screen is off. Based on the device's current position and movement, it can determine whether the touch operation is a mis-touch caused by the clothing pocket rubbing against the touchscreen. If it is determined to be a mis-touch, the screen-on operation is not performed, thus saving power consumption.

[0132] In other application scenarios, such as Figure 7As shown, when a user places an electronic device horizontally upright in a transparent or translucent pocket of clothing, with the touchscreen facing outwards, if the pocket fabric is thin and cannot block light in strong ambient light, the proximity sensor of the electronic device may detect that there is likely no object within its set range. Alternatively, if the electronic device is placed in a transparent plastic bag, the bag cannot block light, and the proximity sensor may also detect that there is no object within its set range, indicating the electronic device is currently in an unobstructed state. In this case, the electronic device does not enter the anti-mistouch mode. Using the method provided in this application embodiment, when the electronic device detects multiple touch events on the touchscreen within a short period while the screen is off, it can determine whether the touch operation is a mis-touch caused by friction between the clothing pocket or the transparent plastic bag and the touchscreen. If it is determined to be a mis-touch, the screen-on operation is not performed. The above embodiments combine the motion state and posture of the electronic device to determine whether to perform a screen-on operation in response to a touch event on the touch screen. This can solve the technical problem that when the electronic device is in a thin pocket or backpack, the proximity light sensor cannot detect the obstruction, thus preventing it from entering the anti-mistouch mode. Mistakes in motion can trigger the screen to light up the electronic device, causing additional power consumption and overheating. This can improve the accuracy of the anti-mistouch function and reduce the power consumption of the electronic device.

[0133] Based on the same technical concept as the above embodiments, Figure 10 A flowchart of a device operation control method provided in an embodiment of this application is shown. This method can be applied to electronic devices such as smartphones, which may include, for example, Figure 1 The hardware architecture shown and as Figure 2 The software architecture is shown below. (As shown in the image) Figure 10 As shown, the method may include the following steps:

[0134] S1001, the processor acquires the light intensity data detected by the proximity light sensor.

[0135] S1002, the processor calculates and determines whether the electronic device is currently in a shading state based on the light intensity data detected by the proximity light sensor; if yes, then proceed to step S1003; if no, then proceed to step S1004.

[0136] S1003, the processor controls the electronic device to enter the anti-accidental touch mode.

[0137] Anti-accidental touch mode refers to the electronic device not responding to touch events on the touch screen.

[0138] S1004, the processor responds to touch events received by the touchscreen.

[0139] S1005, the processor determines whether the number of touch events received by the touch screen within the set time period has reached the set number; if not, proceed to step S1006; if yes, proceed to step S1007.

[0140] S1006, the processor determines to turn on the touchscreen.

[0141] S1007, the processor obtains the current pose and motion state of the electronic device.

[0142] The processor can obtain the current pose and motion state of the electronic device through speed sensors and orientation sensors.

[0143] S1008, the processor determines whether the motion state is a stationary state; if yes, then execute step S1009; if no, then execute step S1011.

[0144] S1009, the processor stops acquiring the current pose and motion state of the electronic device, and then executes S1010.

[0145] S1010, the processor determines to turn on the touchscreen of the electronic device.

[0146] S1011, the processor determines whether the current pose is the target pose; if not, it executes step S1010; if yes, it executes step S1012.

[0147] S1012, the processor determines not to turn on the touchscreen of the electronic device.

[0148] The device operation control method provided in this application embodiment uses the motion state and pose of the electronic device as a condition for judging accidental touch prevention when the proximity light sensor is not blocked and multiple touch events are received in a short period of time. By detecting the motion state and pose of the electronic device, the current usage scenario is determined, and then it is decided whether to perform the screen-on operation. While optimizing the anti-accidental touch function of the electronic device, the power consumption of the electronic device caused by accidental screen-on can be reduced, thereby reducing the power consumption of the electronic device, improving the battery life of the electronic device, and enhancing the user experience.

[0149] Based on the same technical concept as the above-described method embodiments, this application also provides an electronic device that can be used to implement... Figure 10 The method embodiments shown can achieve the beneficial effects of the above-described method embodiments. In some embodiments, the specific structure of the electronic device can be referred to the above. Figure 1 As shown. Further details will not be repeated here.

[0150] The method steps in the embodiments of this application can be implemented in hardware or by a processor executing a computer program or instructions. The computer program or instructions can constitute a computer program product. Embodiments of this application also provide a computer program product comprising computer-executable instructions. In one embodiment, the computer-executable instructions are used to cause a computer to perform… Figure 10 The functionality of the method embodiments shown.

[0151] Computer-executable instructions can be stored in a computer-readable storage medium. This application also provides a computer-readable storage medium storing executable instructions. In one embodiment, the computer-executable instructions are used to cause a computer to perform... Figure 10 The functionality of the method embodiments shown.

[0152] The computer-readable storage medium provided in the embodiments of this application may be random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), register, hard disk, portable hard disk, CD-ROM, or any other form of computer-readable storage medium known in the art.

[0153] Computer-executable instructions can be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another. For example, the computer program or instructions can be transferred from one website, computer, server, or data center to another website, computer, server, or data center via wired or wireless means. The computer-readable storage medium can be any available medium that a computer can access, or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium, such as a floppy disk, hard disk, or magnetic tape; it can also be an optical medium, such as a digital video disc (DVD); or it can be a semiconductor medium, such as a solid-state drive.

[0154] In the various embodiments of this application, unless otherwise specified or logically conflicting, the terminology and / or descriptions between different embodiments are consistent and can be referenced mutually. Technical features in different embodiments can be combined to form new embodiments based on their inherent logical relationships. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion, such as including a series of steps or units. A method, system, product, or device is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products, or devices.

[0155] Although this application has been described in conjunction with specific features and embodiments, it is obvious that various modifications and combinations can be made therein without departing from the spirit and scope of this application. Accordingly, this specification and drawings are merely illustrative examples of the solutions defined by the appended claims and are to be considered as covering any and all modifications, variations, combinations, or equivalents within the scope of this application.

[0156] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the scope of this application. Therefore, if these modifications and variations of the embodiments of this application fall within the scope of the claims of this application and their equivalents, this application also intends to include these modifications and variations.

Claims

1. A device operation control method applied to an electronic device, characterized by, The method includes: If the electronic device is in a screen-off state, the proximity sensor in the electronic device detects that the electronic device is currently in an unobstructed state, and the touch screen of the electronic device receives a set number of touch events within a set time period, then the current pose and motion state of the electronic device are obtained. When the motion state of the electronic device is non-stationary and the pose of the electronic device is the target pose, it is determined that the touch screen of the electronic device will not be lit; the target pose refers to the angle between the plane where the electronic device is located and a straight line perpendicular to the horizontal plane being less than or equal to a set angle threshold.

2. The method according to claim 1, characterized in that, The method further includes: If the motion state of the electronic device is stationary, or if the pose of the electronic device is not the target pose, then the touch screen of the electronic device is turned on.

3. The method according to claim 1 or 2, characterized in that, The method further includes: If the electronic device is in a stationary state, then the acquisition of the electronic device's pose and motion state will cease.

4. The method according to any one of claims 1 to 3, characterized in that, The touch event refers to a series of double-click events on the touchscreen of the electronic device.

5. The method according to any one of claims 1 to 4, characterized in that, The method further includes: If the proximity sensor in the electronic device detects that the electronic device is currently in an obstructed state, the electronic device is controlled to enter an anti-accidental touch mode; the obstructed state indicates that there is an object within a set range of the electronic device.

6. An electronic device, characterized in that, Includes a processor, proximity sensor, and touchscreen; The proximity sensor is used to detect whether an object exists within a set range of the electronic device; The processor is used for: When the touchscreen is in a screen-off state, the proximity sensor detects that the electronic device is currently in an unobstructed state, and the number of touch events received by the touchscreen within a set time period reaches a set number, then the current pose and motion state of the electronic device are obtained. When the motion state of the electronic device is non-stationary and the pose of the electronic device is the target pose, it is determined that the touch screen will not be lit; the target pose refers to the angle between the plane where the electronic device is located and a straight line perpendicular to the horizontal plane being less than or equal to a set angle threshold.

7. The electronic device according to claim 6, characterized in that, The processor is also used for: If the motion state of the electronic device is stationary, or if the pose of the electronic device is not the target pose, then the touch screen is turned on.

8. The electronic device according to claim 6 or 7, characterized in that, The processor is also used for: If the electronic device is in a stationary state, then the acquisition of the electronic device's pose and motion state will cease.

9. The electronic device according to any one of claims 6 to 8, characterized in that, The touch event refers to a series of double-click events on the touchscreen.

10. A computer-readable storage medium, characterized in that, The device stores computer-executable instructions for causing a computer to perform the method as described in any one of claims 1 to 5.