Anti-mistouch identification method and related equipment
By detecting and utilizing the angle status between the keyboard and the display device in the terminal device to identify and avoid accidental touch operations, it solves the problem of screen brightness and increased power consumption caused by accidental touches after the terminal device turns off the screen, and improves the intelligence of the device. ization and user experience.
Patent Information
- Application Number
- CN202310802248.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-30
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2043-06-30
AI Technical Summary
If an existing terminal device accidentally touches a keyboard button when the screen is turned off, the display will turn on, increasing power consumption and failing to recognize the user's accidental touch operation, affecting the user experience.
By realizing the detection and communication of the angle status between the keyboard and the display device, if the angle is in the locked state, the key value is discarded to avoid the display screen turning on; if the angle is in the unlocked state, the key value is reported to meet the user's operation needs. And turn off the attitude detection sensor after turning off the screen to reduce power consumption.
It effectively identifies and avoids the problem of the display screen turning on caused by the user accidentally touching the keyboard keys, reduces power consumption, and improves the intelligence and user experience of the terminal device.
Smart Images

Figure CN117707321B
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal equipment, and specifically to an anti-mistouch identification method and related equipment. Background Art
[0002] When the display screen of an existing terminal device is off, if a key on the keyboard of the terminal device is triggered by mistake, the keyboard will report the key value to the display screen, causing the display screen to light up. In this way, if the user triggers a key on the keyboard by mistake, the display screen is easily turned on by mistake, resulting in an increase in the power consumption of the terminal device. In addition, the existing terminal device lacks the ability to identify the user's mistaken triggering of the keyboard key operation, is not intelligent enough, and affects the user experience. Summary of the invention
[0003] In view of the above, it is necessary to provide an anti-false touch identification method and related equipment to solve the technical problem of increased power consumption caused by failure to identify false triggering of keyboard keys of terminal equipment.
[0004] In a first aspect, an embodiment of the present application provides an anti-mistouch identification method, which is applied in a keyboard, and the keyboard is connected to a display device, the method comprising: receiving a screen-off notification sent by the display device, the screen-off notification instructing the display device to turn off the screen; if it is detected that a user triggers a key on the keyboard, scanning the key value of the triggered key, and temporarily storing the key value; sending a wake-up message to the display device, the wake-up message is used to wake up the core of the display device; sending the posture information of the keyboard obtained by the posture detection sensor of the keyboard to the display device; receiving the state of the angle between the keyboard and the display device sent by the display device; if the state of the angle is an angle locked state, discarding the temporarily stored key value, wherein the angle locked state indicates that the angle is greater than a preset angle. In the above scheme, after the keyboard receives the screen-off notification sent by the display device, if it detects that the user has triggered a key on the keyboard, the key value of the triggered key is temporarily stored, and a wake-up message is sent to the display device to wake up the core of the display device. If the keyboard receives the angle between the keyboard and the display device sent by the display device as a locked angle state, the temporarily stored key value is discarded. In this way, the key value of the key triggered by the user will not be reported to the display device, and the display device will not turn on the screen. This avoids the problem of the display device turning on the screen due to the user accidentally triggering a key on the keyboard. Therefore, the present application can identify the operation of the user accidentally triggering the keyboard, avoid the operation of the accidentally triggered keyboard from interfering with the normal operation of the display device, and avoid generating additional power consumption.
[0005] In one embodiment of the application, receiving the state of the angle between the keyboard and the display device sent by the display device includes: sending an angle state query message to the display device, the angle state query message is used to instruct the display device to send the state of the angle between the keyboard and the display device to the keyboard; receiving the state of the angle sent by the display device. In the above technical solution, the keyboard sends an angle state query message to the display device to obtain the state of the angle, thereby determining the current usage scenario of the terminal device according to the state of the angle.
[0006] In one embodiment of the application, the method further includes: if the state of the angle is an angle unlock state, reporting the temporarily stored key value to the display device, wherein the angle unlock state indicates that the angle is less than or equal to the preset angle. In the above technical solution, if the state of the angle is an angle unlock state, the keyboard reports the temporarily stored key value to the display device, thereby satisfying the user's need to use the keyboard for operation.
[0007] In one embodiment of the application, the method further includes: according to the screen-off notification, setting the state of the angle to an unknown angle state, wherein the unknown angle state indicates that the state of the angle does not belong to the angle unlocked state and the angle locked state. In the above technical solution, the keyboard sets the state of the angle to the unknown angle state according to the screen-off notification, and the recorded state of the angle before the display device turns off can be cleared.
[0008] In one embodiment of the application, after receiving the screen-off notification sent by the display device, the method further includes: turning off the gesture detection sensor of the keyboard according to the screen-off notification; sending the gesture information of the keyboard detected by the gesture detection sensor of the keyboard to the display device includes: starting the gesture detection sensor of the keyboard, and sending the gesture information of the keyboard detected by the gesture detection sensor of the keyboard to the display device. In the above technical solution, turning off the gesture detection sensor of the keyboard according to the screen-off notification, and starting the gesture detection sensor of the keyboard after detecting the triggering key of the keyboard, can further reduce the power consumption of the terminal device.
[0009] In one embodiment of the application, after starting the gesture detection sensor of the keyboard, the method further includes: starting a timer; and turning off the gesture detection sensor of the keyboard after the timer reaches a preset time. In the above technical solution, turning off the gesture detection sensor of the keyboard after the timer reaches a preset time can further reduce the power consumption of the terminal device.
[0010] In one embodiment of the application, the posture detection sensor of the keyboard includes an accelerometer sensor and a gyroscope, and sending the posture information of the keyboard detected by the posture detection sensor of the keyboard to the display device includes: sending the three-dimensional spatial coordinates and deflection angle of the keyboard detected by the accelerometer sensor and the gyroscope to the display device, wherein the deflection angle includes one or more of the rolling angle, the pitch angle and the yaw angle. In the above technical solution, the three-dimensional spatial coordinates, the rolling angle, the pitch angle and the yaw angle of the keyboard can be sent to the display device as the posture information of the keyboard.
[0011] In the second aspect, the embodiment of the present application also provides an anti-false touch identification method, which is applied in a display device, and the display device is connected to a keyboard. The method includes: when detecting that the display device is turned off, sending a screen off notification to the keyboard; receiving a wake-up message sent by the keyboard, and waking up the kernel according to the wake-up message; obtaining the posture information of the display device detected by the posture detection sensor of the display device, and obtaining the posture information of the keyboard sent by the keyboard; calculating the angle between the display device and the keyboard according to the posture information of the display device and the posture information of the keyboard, and determining the state of the angle according to the comparison result of the angle and the preset angle; sending the state of the angle to the keyboard; if the key value reported by the keyboard is received, the screen is turned on. In the above technical solution, after the display device turns off the screen, the kernel is woken up according to the wake-up message sent by the keyboard, and the angle between the display device and the keyboard is calculated according to the posture information of the display device and the posture information of the keyboard sent by the keyboard, and the state of the angle is determined according to the comparison result of the angle and the preset angle, and the state of the angle is sent to the keyboard; if the key value reported by the keyboard is received, the screen is turned on, so as to meet the user's need to use the keyboard for operation while avoiding the problem of the user accidentally triggering the keyboard key to cause the display device to turn on.
[0012] In one embodiment of the application, determining the state of the angle according to the comparison result between the angle and the preset angle includes: if the angle is less than or equal to the preset angle, determining the state of the angle is the angle unlocked state; if the angle is greater than the preset angle, determining the state of the angle is the angle locked state. In the above technical solution, the state of the angle can be determined according to the comparison result between the angle and the preset angle, so that the keyboard can discard the key value or report the key value according to the state of the angle, thus avoiding the problem of the user accidentally triggering the keyboard key and causing the display device to light up.
[0013] In one embodiment of the application, the method further includes: when detecting that the display device is turned off, setting the state of the angle to an unknown angle state, wherein the unknown angle state indicates that the state of the angle does not belong to an angle unlocked state or an angle locked state. In the above technical solution, after the screen is turned off, the display device sets the state of the angle to an unknown angle state, which can clear the recorded state of the angle before the display device is turned off.
[0014] In one embodiment of the application, the attitude detection sensor of the display device includes a first accelerometer sensor and a first gyroscope, and obtaining the attitude information of the display device detected by the attitude detection sensor of the display device includes: obtaining the three-dimensional space coordinates of the display device detected by the first accelerometer sensor and the first gyroscope, and obtaining the deflection angle of the display device detected by the first gyroscope, wherein the deflection angle of the display device includes one or more of the roll angle, pitch angle and yaw angle of the display device; obtaining the attitude information of the keyboard sent by the keyboard includes: obtaining the three-dimensional space coordinates and deflection angle of the keyboard detected by the second accelerometer sensor and the second gyroscope of the keyboard, wherein the deflection angle of the keyboard includes one or more of the roll angle, pitch angle and yaw angle of the keyboard. In the above technical solution, the three-dimensional space coordinates, roll angle, pitch angle and yaw angle of the keyboard can be used as the attitude information of the keyboard, and the three-dimensional space coordinates, roll angle, pitch angle and yaw angle of the display device can be used as the attitude information of the display device.
[0015] In one embodiment of the application, calculating the angle between the display device and the keyboard according to the posture information of the display device and the posture information of the keyboard includes: calculating the angle according to the three-dimensional space coordinates of the display device, the deflection angle of the display device, the three-dimensional space coordinates of the keyboard, and the deflection angle of the keyboard. In the above technical solution, the angle between the display device and the keyboard can be calculated according to the three-dimensional space coordinates of the display device, the deflection angle of the display device, the three-dimensional space coordinates of the keyboard, and the deflection angle of the keyboard.
[0016] In one embodiment of the application, sending the state of the angle to the keyboard includes: responding to an angle state query message sent by the keyboard, sending the state of the angle to the keyboard. In the above technical solution, the state of the angle can be sent to the keyboard according to the query message of the keyboard, so that the keyboard can discard the key value or report the key value according to the state of the angle, thereby avoiding the problem of the user accidentally triggering a key on the keyboard and causing the display device to light up.
[0017] In a third aspect, an embodiment of the present application also provides an anti-mistouch identification method, which is applied in a terminal device, wherein the terminal device includes a display device and a keyboard, and the display device is connected to the keyboard. The method includes: when it is detected that the display device is turned off, the display device sends a screen-off notification to the keyboard; if it is detected that a user triggers a key on the keyboard, the keyboard scans the key value of the triggered key and temporarily stores the key value; the keyboard sends a wake-up message to the display device; the display device wakes up the kernel according to the wake-up message; the keyboard sends the keyboard posture information detected by the keyboard posture detection sensor to the display device; the display device obtains the display posture information detected by the display posture detection sensor The keyboard obtains the posture information of the display device and the posture information of the keyboard sent by the keyboard; the keyboard calculates the angle between the display device and the keyboard according to the posture information of the display device and the posture information of the keyboard, determines the state of the angle according to the comparison result of the angle and the preset angle, and sends the state of the angle to the keyboard; if the state of the angle is an angle locked state, the keyboard discards the temporarily stored key value, wherein the angle locked state indicates that the angle is greater than the preset angle; if the state of the angle is an angle unlocked state, the keyboard reports the temporarily stored key value to the display device, wherein the angle unlocked state indicates that the angle is less than or equal to the preset angle; if the display device receives the key value reported by the keyboard, the screen is turned on.
[0018] In the above scheme, after receiving the screen-off notification sent by the display device, if the keyboard detects that the user has triggered a key on the keyboard, the key value of the triggered key is temporarily stored, and a wake-up message is sent to the display device to wake up the core of the display device. If the state of the angle between the keyboard and the display device received by the keyboard from the display device is an angle-locked state, the temporarily stored key value is discarded. In this way, the key value of the key triggered by the user will not be reported to the display device, and the display device will not light up the screen. This avoids the user accidentally triggering a key on the keyboard and causing the display device to light up. Therefore, the present application can identify the operation of the user accidentally triggering the keyboard, and avoid the operation of accidentally triggering the keyboard from interfering with the normal operation of the display device, and avoid generating additional power consumption. In addition, after the display device turns off the screen, after waking up the core according to the wake-up message sent by the keyboard, if the key value reported by the keyboard is received, the screen is turned on, thus satisfying the user's need to use the keyboard for operation.
[0019] In one embodiment of the application, after the display device sends a screen-off notification to the keyboard, the method further includes: the keyboard turns off the keyboard's posture detection sensor according to the screen-off notification; the keyboard sends the keyboard's posture information detected by the keyboard's posture detection sensor to the display device, including: the keyboard starts the keyboard's posture detection sensor, and sends the keyboard's posture information detected by the keyboard's posture detection sensor to the display device. In the above technical solution, the keyboard turns off the keyboard's posture detection sensor according to the screen-off notification, and starts the keyboard's posture detection sensor after detecting a key that triggers the keyboard, which can further reduce the power consumption of the terminal device.
[0020] In one embodiment of the application, after the keyboard starts the gesture detection sensor of the keyboard, the method further includes: the keyboard starts a timer; and after the timer reaches a preset time, the gesture detection sensor of the keyboard is turned off. In the above technical solution, after the timer reaches a preset time, the gesture detection sensor of the keyboard is turned off, which can further reduce the power consumption of the terminal device.
[0021] In a fourth aspect, an embodiment of the present application provides a keyboard, which also includes a processor and a memory; wherein the processor is connected to the memory; the memory is used to store program instructions; and the processor is used to read the program instructions stored in the memory to implement the above-mentioned anti-mistouch recognition method.
[0022] In the fifth aspect, an embodiment of the present application provides a display device, which also includes a processor and a memory; wherein the processor is connected to the memory; the memory is used to store program instructions; the processor is used to read the program instructions stored in the memory to implement the above-mentioned anti-mistouch identification method.
[0023] In the sixth aspect, an embodiment of the present application provides a terminal device, including a display device and a keyboard, wherein the display device is connected to the keyboard, and the terminal device also includes a processor and a memory; wherein the processor is connected to the memory; the memory is used to store program instructions; the processor is used to read the program instructions stored in the memory to implement the above-mentioned anti-mistouch identification method.
[0024] In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, which stores program instructions. When the program instructions are executed by a processor, the above-mentioned anti-mistouch identification method is executed.
[0025] In addition, the technical effects brought about by the fourth to seventh aspects can be found in the descriptions related to the methods of each design in the above method part, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0027] Figure 1 A schematic diagram of the structure of a terminal device.
[0028] Figure 2 It is a schematic diagram of the structure of a terminal device in one embodiment of the present application.
[0029] Figure 3Flow chart of the method for preventing accidental touch in one embodiment of the present application.
[0030] Figure 4A This is a schematic diagram of a first usage scenario of a terminal device in an embodiment of the present application.
[0031] Figure 4B Schematic diagram of a second usage scenario of a terminal device in an embodiment of the present application
[0032] Figure 5 This is a schematic diagram of the flow of interaction between a tablet and a keyboard in one embodiment of the present application.
[0033] Figure 6 This is a timing diagram from the time a user triggers a keyboard key after the tablet screen is turned off to the time the keyboard reports gesture data in one embodiment of the present application.
[0034] Figure 7 Flow chart of the method for preventing accidental touch in one embodiment of the present application.
[0035] Figure 8 This is a flow chart of a method for preventing accidental touches in another embodiment of the present application.
[0036] Fig. 9 Schematic diagram of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION
[0037] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way.
[0038] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by technicians in the technical field in this application. The terms used in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. It should be understood that, unless otherwise specified in this application, " / " means or. For example, A / B can represent A or B. "And / or" in this application is only a description of the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. "At least one" means one or more. "Multiple" means two or more than two. For example, at least one of a, b or c can represent: a, b, c, a and b, a and c, b and c, a, b and c seven situations.
[0039] refer to Figure 1 The figure is a schematic diagram of the structure of a terminal device. The terminal device 10 includes a display device 11 and a keyboard 12. When the display device 11 of the terminal device 10 is off, if a key on the keyboard 12 of the terminal device 10 is triggered by mistake, the keyboard 12 will report the key value of the key to the display device 11, causing the display device 11 to light up. In this way, when the user triggers a key on the keyboard 12 by mistake, it is easy to mistakenly light up the display device 11, resulting in increased power consumption of the terminal device 10. In addition, the terminal device lacks recognition of the key operation of the user's mistaken triggering of the keyboard, resulting in the terminal device being not intelligent enough, affecting the user experience.
[0040] In order to solve the above problems, the present application provides an anti-mistouch recognition method. The method is applied in a terminal device. Please refer to Figure 2 As shown, it is a schematic diagram of the structure of the terminal device in one embodiment of the present application. The display device 11 and the keyboard 12 are rotatably connected, and the display device 11 and the keyboard 12 can be connected in communication. In one embodiment of the present application, the display device 11 and the keyboard 12 are connected in communication via a data line, for example, via a half-duplex serial port line. In other embodiments, the display device 11 and the keyboard 12 can also be connected in a near-field communication manner, for example, via a Bluetooth communication module. The present application does not limit the connection method between the display device 11 and the keyboard 12.
[0041] The display device 11 includes a system on chip (SOC) processor 111, a display screen 112, and a first posture detection sensor 113. The first posture detection sensor 113 is used to detect the posture information of the display device 11. The posture information of the display device 11 represents the coordinates and deflection angle of the display device 11 in a preset coordinate system, wherein the preset coordinate system may be a three-dimensional space coordinate system or an Android coordinate system (for example, the Android coordinate system may be a vertex at the upper left corner of the display screen as the coordinate origin O, from the coordinate origin to the right as the positive direction of the x-axis, and from the coordinate origin downward as the positive direction of the y-axis). In one embodiment of the present application, the first posture detection sensor 113 includes, but is not limited to, a first accelerometer sensor and a first gyroscope. For example, the display device 11 detects the three-dimensional space coordinates (x1, y1, z1) of the display device 11, the roll angle, pitch angle, and yaw angle of the display device 11 through the first accelerometer sensor and the first gyroscope, and the deflection angle of the display device 11 can be determined according to the roll angle, pitch angle, and yaw angle of the display device 11. In another embodiment of the present application, the first posture detection sensor 113 may also only include a first accelerometer sensor.
[0042] The keyboard 12 includes a microprocessor 121 and a second posture detection sensor 122. The second posture detection sensor 122 is used to detect the posture information of the keyboard 12. The posture information of the keyboard 12 represents the coordinates and deflection angle of the keyboard 12 in a preset coordinate system. In one embodiment of the present application, the second posture detection sensor 122 includes, but is not limited to, a second accelerometer sensor and a second gyroscope. For example, the keyboard 12 detects the three-dimensional spatial coordinates (x2, y2, z2) of the keyboard 12, the roll angle, the pitch angle and the yaw angle of the keyboard 12 through the second accelerometer sensor and the second gyroscope, wherein the deflection angle of the keyboard 12 can be determined based on the roll angle, the pitch angle and the yaw angle of the keyboard 12. In another embodiment of the present application, the second posture detection sensor 122 may also only include a second accelerometer sensor.
[0043] For example, one or more sensors such as an accelerometer sensor, a gyroscope, and a magnetometer can be used to obtain the posture information of the display device 11 or the keyboard 12. Among them, the accelerometer can measure the acceleration of the display device 11 or the keyboard 12 in three directions of the coordinate system, the gyroscope can measure the angular velocity of the display device 11 or the keyboard 12 in three directions, and the magnetometer can measure the magnetic field strength of the display device 11 or the keyboard 12 in three directions. Through these data, the posture information of the display device 11 or the keyboard 12 can be calculated. The posture information of the display device 11 or the keyboard 12 may include but is not limited to information on position, direction, and angle.
[0044] In one embodiment of the present application, the SOC processor 111 of the display device 11 obtains the posture information of the display device 11 detected by the first posture detection sensor 113, and obtains the posture information of the keyboard 12 detected by the second posture detection sensor 122 from the keyboard 12, calculates the angle between the display device 11 and the keyboard 12 according to the posture information of the display device 11 and the posture information of the keyboard 12, and locks the keyboard 12 according to the comparison result between the angle and the preset angle. The locked keyboard 12 cannot report the key value of the key to the display device 11, thus preventing the user from accidentally triggering the keyboard key and causing the display screen 112 of the display device 12 to be lit. The following is further explained in conjunction with the process embodiment.
[0045] refer to Figure 3 FIG. 2 is a flow chart of an anti-mistouch recognition method in an embodiment of the present application. The anti-mistouch recognition method is applied in a display device, for example, Figure 2 In the display device 11 shown in FIG.
[0046] Step S301: acquiring posture information of a display device detected by a first posture detection sensor.
[0047] In an embodiment of the present application, for the convenience of description, the display device 11 in the terminal device 10 is described by taking a tablet as an example. The terminal device is a device that is a combination of a tablet and a keyboard. The terminal device supports multi-scenario use. Figure 4A , which is a schematic diagram of the first usage scenario of the terminal device in one embodiment of the present application. In the first usage scenario, the user performs keyboard operations, and the tablet can perform corresponding functions according to the keyboard operations. For example, the first usage scenario may be that the user places the tablet and keyboard on the desktop to perform text editing. Figure 4B As shown, it is a schematic diagram of the second usage scenario of the terminal device in an embodiment of the present application. In the second usage scenario, the user does not perform keyboard operations. For example, the keyboard in the second usage scenario is only used to support the tablet. In the first usage scenario or the second usage scenario, the SOC processor 111 of the tablet obtains the posture data of the tablet through the first posture detection sensor 111 and obtains the posture information of the tablet from the posture data. In an embodiment of the present application, the posture data of the tablet includes at least one of the three-dimensional space coordinates, roll angle, pitch angle and yaw angle, direction angle, and angular velocity of the tablet.
[0048] Step S302: Acquire keyboard gesture information detected by a second gesture detection sensor from the keyboard.
[0049] In one embodiment of the present application, the microprocessor 121 of the keyboard 12 detects the posture information of the keyboard 12 through the second posture detection sensor 122, and sends the posture information of the keyboard 12 to the tablet. For example, the keyboard 12 and the tablet are connected to communicate through a half-duplex serial port line, and the microprocessor 121 sends the posture data of the keyboard 12 to the tablet through the half-duplex serial port line, wherein the posture data of the keyboard 12 includes the posture information of the keyboard 12. The tablet obtains the posture information of the keyboard 12 from the posture data of the keyboard 12. In one embodiment of the present application, the posture data of the keyboard 12 includes at least one of the three-dimensional spatial coordinates, roll angle, pitch angle and yaw angle, direction angle, and angular velocity of the keyboard 12.
[0050] Step S303: Calculate the angle between the display device and the keyboard according to the posture information of the display device and the posture information of the keyboard.
[0051] In one embodiment of the present application, the SOC processor 111 calculates the angle between the tablet and the keyboard 12 according to the posture information of the tablet and the posture information of the keyboard 11. For example, the SOC processor 111 calculates the angle between the tablet and the keyboard 12 according to the formula The angle between the tablet and the keyboard 12 is calculated, where (x1, y1, z1) is the three-dimensional space coordinate of the tablet, (x2, y2, z2) is the three-dimensional space coordinate of the keyboard 12, roll1 is the roll angle of the tablet, pitch1 is the pitch angle of the tablet, yaw1 is the yaw angle of the tablet, roll2 is the roll angle of the keyboard 12, pitch2 is the pitch angle of the keyboard 12, and yaw2 is the yaw angle of the keyboard 12. It should be noted that calculating the angle between two devices based on the posture information of the two devices is a well-known technology in the art, and the embodiments of the present application do not limit the content of calculating the angle between the two devices based on the posture information of the two devices.
[0052] In one embodiment of the present application, the SOC processor 111 also updates the angle recorded in the display device according to the calculated angle, so that the positional relationship between the tablet and the keyboard 12 can be determined according to the updated angle.
[0053] Step S304, determining whether the calculated angle is greater than a preset angle. If the angle between the display device 11 and the keyboard 12 is less than or equal to the preset angle, executing step S305, if the angle between the display device 11 and the keyboard 12 is greater than the preset angle, executing step S306.
[0054] In one embodiment of the present application, taking the preset angle as 180 degrees as an example, when the angle between the tablet and the keyboard 12 is less than or equal to 180 degrees, it indicates that the terminal device is in Figure 4A When the angle between the tablet and the keyboard 12 is greater than 180 degrees, the terminal device is in Figure 4BThe above preset angles are only for illustration and are not limited to these in practical applications. The embodiments of the present application do not limit this.
[0055] Step S305, sending a first setting instruction to the keyboard, the first setting instruction is used to instruct to set the state of the keyboard to an operable state, and the operable state indicates that the keyboard reports the key value of the triggered key on the keyboard to the display device.
[0056] In one embodiment of the present application, when the angle between the tablet and the keyboard 12 is less than or equal to 180 degrees, it indicates that the terminal device is in Figure 4A In the first usage scenario shown, the SOC processor 111 sends a first setting instruction to the keyboard 12. The microprocessor 121 of the keyboard 12 sets the state of the keyboard 12 to an operable state according to the received first setting instruction, and responds to the user's operation on the keyboard (for example, reporting a key value), so that the user can operate the keyboard and get a response, satisfying the user's need to operate the keyboard to achieve the corresponding function.
[0057] Step S306: the display device sends a second setting instruction to the keyboard, where the second setting instruction is used to instruct to set the state of the keyboard to a locked state, where the locked state indicates that the keyboard does not report the key value of the triggered key on the keyboard to the display device.
[0058] In one embodiment of the present application, when the angle between the tablet and the keyboard 12 is greater than 180 degrees, it indicates that the terminal device is in Figure 4B When used in the second usage scenario shown, the SOC processor 111 sends a second setting instruction to the keyboard 12. The microprocessor 121 of the keyboard 12 sets the state of the keyboard 12 to a locked state according to the received second setting instruction, and does not respond to the user's operation on the keys on the keyboard 12 (for example, does not report the key value), thereby preventing the user from accidentally touching the keyboard 12 to interfere with the operation or state of the tablet, and avoiding additional consumption of power.
[0059] Step S307: When the display device detects that the display screen is turned off, the display device turns off the first gesture detection sensor and sends a screen-off notification to the keyboard.
[0060] In one embodiment of the present application, when the SOC processor 111 detects that the display screen 112 is turned off, the first gesture detection sensor 113 is turned off and a screen-off notification is sent to the keyboard 12 .
[0061] The angle is not updated. In one embodiment of the present application, if it is detected that the display screen 112 is off, turning off the first posture detection sensor 113 can reduce power consumption. In one embodiment of the present application, when it is detected that the display screen 112 is off, the SOC processor 111 sends a screen-off notification to the keyboard 12, wherein the screen-off notification is used to instruct the keyboard 12 to turn off the second posture detection sensor 122, thereby further reducing the power consumption of the terminal device 10. In one embodiment of the present application, the SOC processor 111 does not update the state of the angle when it is detected that the display screen 112 is off, thereby further reducing the power consumption of the terminal device 10.
[0062] exist Figure 4A In the first usage scenario shown, if the display screen 112 of the tablet changes from on to off, and the angle between the tablet and the keyboard 12 is less than or equal to the preset angle, the keyboard 12 is in an operable state. Figure 4B In the second usage scenario shown, since the keyboard 12 is still in an operable state, if the user accidentally triggers a key on the keyboard 12, the display screen 112 will still be lit, resulting in an increase in power consumption. Figure 5 As shown, it is a flow chart of the interaction between the tablet and the keyboard in one embodiment of the present application. If the tablet detects that the screen is off, the SOC processor 111 of the tablet sends a screen-off notification to the keyboard 12, and sets the angle to the angle unlock state, wherein the angle unlock state indicates that the angle is less than or equal to the preset angle. When it is determined that the state of the angle is the angle unlock state, the keyboard 12 will respond to the user's operation on the keyboard (for example, reporting the key value). The angle also includes an angle lock state, which indicates that the angle is greater than the preset angle. When it is determined that the state of the angle is the angle lock state, the keyboard 12 does not respond to the user's operation on the keyboard (for example, reporting the key value). The microprocessor 121 of the keyboard 12 sets the angle to the angle lock state according to the screen-off notification, and turns off the second posture detection sensor 122. If the user triggers a key on the keyboard 12, a key event is generated, and the key event is used to wake up the keyboard 12. After detecting the user's key event, the microprocessor 121 scans the triggered key, turns on the second posture detection sensor 122, and reports the key value of the triggered key to the tablet. The SOC processor 111 responds to the key value reported by the keyboard 12 and controls the display screen 112 to light up. After the display screen 112 lights up, the SOC processor 111 obtains the posture information of the tablet detected by the first posture detection sensor, obtains the posture information of the keyboard 12 detected by the second posture detection sensor 122 from the keyboard 12, calculates the angle between the tablet and the keyboard according to the posture information of the tablet and the posture information of the keyboard 12, and determines the state of the angle according to the comparison result between the angle and the preset angle, and determines whether to lock the keyboard 12 according to the state of the angle.
[0063] In the above process, since the keyboard 12 is still in an operable state, if the user accidentally triggers a key on the keyboard 12, the display screen 112 will light up, thereby increasing power consumption and causing the problem of not successfully identifying the user's accidentally triggered keyboard operation. Figure 6 The figure shows a timing diagram from the time when the user triggers a key on the keyboard after the tablet screen is turned off to the time when the keyboard reports posture data in one embodiment of the present application. At time T1, the user triggers a key on keyboard 12 after the tablet screen is turned off; at time T2, keyboard 12 reports the key value of the triggered key to wake up the tablet, wherein the time interval between time T2 and time T1 is 15ms; at time T3, the tablet screen turns on, wherein the time interval between time T3 and time T2 is 200ms; at time T4, keyboard 12 reports posture data, wherein the time interval between time T4 and time T3 is 5ms. Figure 5 It can be seen from the timing diagram that the tablet screen turns on at time T3, and the keyboard 12 reports the posture data at time T4. Since time T3 is earlier than time T4, before the tablet calculates a new angle based on the posture information of the keyboard 12 to lock the keyboard 12, the tablet screen has already turned on due to the user's mistaken triggering of the keyboard. The above method has the technical defect of not recognizing the operation of the mistakenly triggered key, which causes the display screen to turn on.
[0064] In order to solve the technical problem that the display screen is lit due to the operation of the unrecognized false trigger button, the present application also provides another method for preventing false touches. Figure 7 As shown, it is a flow chart of the anti-mistouch identification method in one embodiment of the present application. The method is applied in the terminal device 10. It should also be noted that the method disclosed in the embodiment of the present application or the method shown in the flowchart includes one or more steps for implementing the method. Without departing from the scope of the claims, the execution order of multiple steps can be interchangeable with each other, and some steps can also be deleted. Some embodiments will be described below in conjunction with the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other. The anti-mistouch identification method includes the following steps.
[0065] Step S701, when the display device detects that the screen is turned off, the display device sets the state of the angle to an unknown angle state and sends a screen-off notification to the keyboard 12.
[0066] The following still uses a tablet as an example to describe the anti-mistouch recognition method in this embodiment. In one embodiment of the present application, the unknown angle state represents that the angle state does not belong to the angle unlocking state and the angle locking state. For example, Figure 4B In the second usage scenario, when the SOC processor 111 of the tablet detects that the display screen 112 is turned off, the state of the angle between the tablet and the keyboard 12 is set to an unknown angle state, and the tablet is controlled to send a screen-off notification to the keyboard 12.
[0067] Step S702: The keyboard sets the state of the angle to an unknown state according to the screen-off notification.
[0068] In one embodiment of the present application, when the microprocessor 121 of the keyboard 12 receives the screen-off notification, the state of the angle between the tablet and the keyboard 12 is set to an unknown angle state.
[0069] Step S703: the keyboard turns off the second gesture detection sensor.
[0070] In one embodiment of the present application, the microprocessor 121 turns off the second accelerometer sensor and the second gyroscope.
[0071] Step S704: After the keyboard detects a key event from the user, it scans the key value of the triggered key and temporarily stores the key value.
[0072] In one embodiment of the present application, a key event is generated after the user triggers a key on the keyboard 12. After the microprocessor 121 detects the key event input by the user, it scans the key value of the triggered key and temporarily stores the key value without reporting the key value to the tablet.
[0073] Step S705: the keyboard sends a wake-up message to the display device.
[0074] In one embodiment of the present application, after temporarily storing the key value, the microprocessor 121 controls the keyboard 12 to send a wake-up message to the tablet.
[0075] Step S706: the display device responds to the wake-up message and wakes up the kernel.
[0076] In one embodiment of the present application, the SOC processor 111 responds to a wake-up message sent by the keyboard 12 to wake up the kernel.
[0077] Step S707: the display device obtains the posture information of the display device detected by the first posture detection sensor.
[0078] In one embodiment of the present application, after the kernel is awakened, the SOC processor 111 obtains the three-dimensional space coordinates of the tablet, the roll angle, the pitch angle, and the yaw angle of the tablet detected by the first accelerometer sensor and the first gyroscope.
[0079] Step S708: the keyboard activates a second gesture detection sensor.
[0080] Step S709: The keyboard sends the gesture information of the keyboard detected by the second gesture detection sensor to the display device.
[0081] In one embodiment of the present application, the microprocessor 121 activates the second accelerometer sensor and the second gyroscope, and sends the three-dimensional spatial coordinates of the keyboard 12, the roll angle, the pitch angle and the yaw angle of the keyboard 12 detected by the second accelerometer sensor and the second gyroscope to the tablet.
[0082] In step S710, the display device obtains the posture information of the keyboard sent by the keyboard, calculates the angle between the display device and the keyboard according to the posture information of the display device and the posture information of the keyboard, determines the state of the angle according to the comparison result between the calculated angle and the preset angle, and updates the state of the angle.
[0083] In one embodiment of the present application, the SOC processor 111 obtains the three-dimensional spatial coordinates of the keyboard 12 sent by the keyboard 12, and the roll angle, pitch angle and yaw angle of the keyboard 12. In one embodiment of the present application, the specific implementation content of calculating the angle between the display device and the keyboard according to the posture information of the display device and the posture information of the keyboard can be referred to. Figure 3 The steps of step S303 are not described again here. In one embodiment of the present application, if the calculated angle is less than or equal to the preset angle, the SOC processor 111 determines that the state of the angle is the angle unlocked state; if the calculated angle is greater than the preset angle, the SOC processor 111 determines that the state of the angle is the angle locked state, and updates the state of the angle.
[0084] Step S711: The keyboard sends an angle status query message to the display device.
[0085] In one embodiment of the present application, the microprocessor 121 controls the keyboard to send an angle status query message to the tablet to obtain the angle status.
[0086] Step S712: The display device responds to the angle status query message and replies the updated angle status to the keyboard.
[0087] In one embodiment of the present application, the SOC processor 111 responds to the angle status query message and controls the tablet to reply the updated angle status to the keyboard 12 .
[0088] Step S713: The keyboard receives the state of the angle and updates the state of the angle.
[0089] In one embodiment of the present application, the microprocessor 121 controls the keyboard 12 to receive the state of the angle and update the state of the angle.
[0090] Step S714: if it is determined that the state of the angle is the angle locked state, the keyboard discards the temporarily stored key value.
[0091] In one embodiment of the present application, if the state of the angle is the angle locked state, the microprocessor 121 will discard the temporarily stored key value, so that the key value of the key triggered by the user will not be reported to the tablet, and the display screen 112 of the tablet will not light up. This avoids the situation in the second usage scenario of the terminal device 10 where the user accidentally triggers a key on the keyboard and causes the tablet screen to light up. Therefore, the method in this embodiment can identify the operation of the user accidentally triggering the keyboard, and avoid the operation of accidentally triggering the keyboard from interfering with the normal operation of the tablet, and avoid generating additional power consumption.
[0092] Step S715: if the state of the angle is the angle unlocked state, the temporarily stored key value is reported to the display device.
[0093] In one embodiment of the present application, if the state of the angle is the angle unlocked state, the microprocessor 121 reports the temporarily stored key value to the tablet, thereby reporting the key value of the key triggered by the user to the tablet, thereby satisfying the user's need to use the keyboard for operation in the first usage scenario.
[0094] Step S716: the display device receives the key value sent by the keyboard and turns on the screen.
[0095] In one embodiment of the present application, when receiving a key value sent by the keyboard 12, the SOC processor 111 controls the display screen 112 to light up.
[0096] In one embodiment of the present application, in step S708, the method further includes: the keyboard 12 starts a timer, and turns off the second posture detection sensor after the timer reaches a preset time. In one embodiment of the present application, the microprocessor 121 starts a timer, and turns off the second accelerometer sensor and the second gyroscope after the timer reaches a preset time, so that the power consumption of the terminal device can be further reduced.
[0097] refer to Figure 8 FIG. 1 is a flow chart of a method for preventing false touches in an embodiment of the present application. The method is applied in a keyboard 12. The method comprises the following steps.
[0098] Step S801, receiving a screen-off notification sent by a display device.
[0099] Step S802: according to the screen-off notification, the state of the angle is set to an unknown angle state.
[0100] Step S803, turning off the second posture detection sensor.
[0101] In one embodiment of the present application, the microprocessor 121 turns off a second posture detection sensor such as a second accelerometer sensor or a second gyroscope.
[0102] Step S804, determining whether a user triggering a keyboard key is detected. If a user triggering a keyboard key is detected, executing step S805, if a user triggering a keyboard key is not detected, the process ends.
[0103] Step S805, scanning the key value of the triggered key, temporarily storing the key value and not reporting it to the display device.
[0104] In one embodiment of the present application, the microprocessor 121 scans the key value of the triggered key, temporarily stores the key value and does not report it to the display device 11 .
[0105] Step S806: Send a wake-up message to the display device.
[0106] In an embodiment of the present application, the display device wakes up the kernel in response to the wake-up message.
[0107] Step S807: start the second posture detection sensor.
[0108] Step S808, start the timer.
[0109] Step S809: turning off the second posture detection sensor after the timer reaches a preset time.
[0110] Step S810: sending the gesture information of the keyboard detected by the second gesture detection sensor to the display device.
[0111] In one embodiment of the present application, the display device obtains the posture information of the keyboard from the keyboard, and calculates the angle between the display device and the keyboard based on the posture information of the display device and the posture information of the keyboard. If the calculated angle is less than or equal to a preset angle, the state of the angle is determined to be an angle unlocked state; if the calculated angle is greater than the preset angle, the state of the angle is determined to be an angle locked state.
[0112] Step S811: Send an angle status query message to the display device.
[0113] In one embodiment of the present application, the display device responds to the query message and sends the state of the angle to the keyboard.
[0114] Step S812, determining whether the state of the angle is the angle locked state. In one embodiment of the present application, if the state of the angle is the angle locked state, execute step S813, otherwise, if the state of the angle is the angle unlocked state, execute step S814.
[0115] Step S813: discard the temporarily stored key value.
[0116] In one embodiment of the present application, if the state of the angle is the angle locked state, the microprocessor 121 will discard the temporarily stored key value, so that the key value of the key triggered by the user will not be reported to the display device, and the display device will not light up the screen. In this way, in the second usage scenario of the terminal device 10, the user is prevented from accidentally triggering the keyboard key and causing the tablet screen to light up.
[0117] Step S814: reporting the temporarily stored key value to the display device.
[0118] In one embodiment of the present application, if the state of the angle is the angle unlocked state, the microprocessor 121 reports the temporarily stored key value to the tablet, so as to report the key value of the key triggered by the user to the tablet, thereby satisfying the user's need to use the keyboard for operation in the first usage scenario.
[0119] In the embodiment of the present application, after the display device turns off the screen, it can respond to the wake-up message sent by the keyboard to wake up the kernel. The display device calculates the angle between the display device and the keyboard based on the posture information of the display device and the posture information of the keyboard, determines the state of the angle based on the result of the angle and the preset angle, and sends the state of the angle to the keyboard. If the state of the angle is determined to be the angle locked state, the keyboard will discard the temporarily stored key value. In this way, in the second use scenario of the terminal device, it can avoid the user accidentally triggering the keyboard key and causing the tablet screen to light up. Therefore, the method in this embodiment can identify the operation of the user accidentally triggering the keyboard, and avoid the interference of the accidentally triggered keyboard operation on the normal operation of the tablet, and avoid generating additional power consumption.
[0120] The electronic device 100 involved in the embodiment of the present application is introduced below. Fig. 9 FIG. 1 is a schematic diagram of the hardware structure of an electronic device 100 in an embodiment of the present application. The electronic device 100 may be Figure 1 The display device 11 or terminal device 10 in the embodiment.
[0121] In this embodiment, the 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, an earphone interface 170D, a sensor module 180, a keyboard 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air 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, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0122] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0123] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0124] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0125] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0126] In some embodiments, the processor 110 may include one or more interfaces. The interface 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.
[0127] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0128] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device 100 through the power management module 141.
[0129] The power management module 141 is used to connect 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, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0130] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0131] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0132] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0133] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0134] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0135] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0136] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0137] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0138] The internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).
[0139] Random access memory may include static random-access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM, for example, the fifth generation DDR SDRAM is generally referred to as DDR5 SDRAM), etc.
[0140] Non-volatile memory may include disk storage devices and flash memory.
[0141] Flash memory can be divided into NOR FLASH, NAND FLASH, 3D NAND FLASH, etc. according to the operating principle; single-level cell (SLC), multi-level cell (MLC), triple-level cell (TLC), quad-level cell (QLC), etc. according to the storage unit potential level; universal flash storage (UFS), embedded multi media card (eMMC), etc. according to the storage specification.
[0142] The random access memory can be directly read and written by the processor 110, and can be used to store executable programs (such as machine instructions) of the operating system or other running programs, and can also be used to store user and application data.
[0143] The non-volatile memory may also store executable programs and user and application data, etc., and may be loaded into the random access memory in advance for direct reading and writing by the processor 110 .
[0144] The external memory interface 120 can be used to connect to an external non-volatile memory to expand the storage capacity of the electronic device 100. The external non-volatile memory communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos are stored in the external non-volatile memory.
[0145] The internal memory 121 or the external memory interface 120 is used to store one or more computer programs. The one or more computer programs are configured to be executed by the processor 110. The one or more computer programs include multiple instructions. When the multiple instructions are executed by the processor 110, the anti-false touch identification method in the above embodiment can be executed on the electronic device 100 to implement the anti-false touch identification function of the electronic device 100.
[0146] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0147] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. The gyroscope sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyroscope sensor 180B can also be used for navigation and somatosensory game scenes.
[0148] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
[0149] 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 leather case. 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 according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover can be automatically unlocked.
[0150] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device 100 and is applied to applications such as horizontal and vertical screen switching and pedometers.
[0151] The distance sensor 180F is used to measure the distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
[0152] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.
[0153] The ambient light sensor 180L is used to sense the ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
[0154] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
[0155] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 performs a boost on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
[0156] The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.
[0157] The bone conduction sensor 180M can obtain a vibration signal. In some embodiments, the bone conduction sensor 180M can obtain a vibration signal of a vibrating bone block of the vocal part of the human body. The bone conduction sensor 180M can also contact the human pulse to receive a blood pressure beat signal. In some embodiments, the bone conduction sensor 180M can also be set in an earphone and combined into a bone conduction earphone. The audio module 170 can parse out a voice signal based on the vibration signal of the vibrating bone block of the vocal part obtained by the bone conduction sensor 180M to realize a voice function. The application processor can parse the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M to realize a heart rate detection function.
[0158] The keyboard 190 includes a power button, a volume button, etc. The keyboard 190 can be a mechanical keyboard or a touch keyboard. The electronic device 100 can receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100.
[0159] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0160] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0161] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. 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.
[0162] This embodiment further provides a computer storage medium, in which computer instructions are stored. When the computer instructions are executed on the electronic device 100, the electronic device 100 executes the above-mentioned related method steps to implement the anti-mistouch identification method in the above-mentioned embodiment.
[0163] This embodiment further provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the above-mentioned related steps to implement the anti-mistouch identification method in the above-mentioned embodiment.
[0164] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory so that the chip executes the anti-mistouch identification method in the above-mentioned method embodiments.
[0165] Among them, the electronic device 100, computer storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0166] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0167] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0168] The unit described as a separate component may or may not be physically separated, and the component shown as a unit may be one physical unit or multiple physical units, that is, it may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment.
[0169] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0170] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program code.
[0171] The above implementation modes are only used to illustrate the technical solutions of the present application and are not intended to limit the present application. Although the present application has been described in detail with reference to the above preferred implementation modes, a person skilled in the art should understand that the technical solutions of the present application may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present application.
Claims
1. A method for preventing accidental touches, applied in a keyboard, characterized in that: The keyboard is rotatably connected to a display device, the display device includes a processor, and the method includes: Receiving a screen-off notification sent by the display device, wherein the screen-off notification instructs the display device to turn off the screen; If it is detected that the user triggers a key on the keyboard, scan the key value of the triggered key and temporarily store the key value; Sending a wake-up message to the display device, where the wake-up message is used to wake up a core of the display device; Sending the posture information of the keyboard detected by the posture detection sensor of the keyboard to the display device, so that the processor of the display device determines the state of the angle between the display device and the keyboard according to the posture information of the keyboard and the posture information of the display device; receiving a state of an angle between the keyboard and the display device sent by the display device; If the state of the angle is an angle locking state, the temporarily stored key value is discarded, wherein the angle locking state indicates that the angle is greater than a preset angle.
2. The method for preventing accidental touches according to claim 1, wherein: The state of the angle between the keyboard and the display device received from the display device includes: Sending an angle status query message to the display device, wherein the angle status query message is used to instruct the display device to send the status of the angle between the keyboard and the display device to the keyboard; Receive the state of the angle sent by the display device.
3. The method for preventing accidental touches according to claim 1, wherein: The method further comprises: If the state of the angle is an angle unlock state, the temporarily stored key value is reported to the display device, wherein the angle unlock state indicates that the angle is less than or equal to the preset angle.
4. The method for preventing accidental touches according to claim 3, wherein: The method further comprises: According to the screen-off notification, the state of the angle is set to an unknown angle state, where the unknown angle state indicates that the state of the angle does not belong to the angle unlocked state or the angle locked state.
5. The method for preventing accidental touches according to claim 1, wherein: After receiving the screen-off notification sent by the display device, the method further includes: turning off the gesture detection sensor of the keyboard according to the screen-off notification; The sending of the keyboard posture information detected by the keyboard posture detection sensor to the display device includes: starting the keyboard posture detection sensor, and sending the keyboard posture information detected by the keyboard posture detection sensor to the display device.
6. The method for preventing accidental touches according to claim 5, wherein: After starting the gesture detection sensor of the keyboard, the method further includes: Turn on the timer; After the timer reaches a preset time, the gesture detection sensor of the keyboard is turned off.
7. The method for preventing accidental touches according to claim 1, wherein: The posture detection sensor of the keyboard includes an accelerometer sensor and a gyroscope, and sending the posture information of the keyboard detected by the posture detection sensor of the keyboard to the display device includes: sending the three-dimensional spatial coordinates and deflection angle of the keyboard detected by the accelerometer sensor and the gyroscope to the display device, wherein the deflection angle includes one or more of a roll angle, a pitch angle and a yaw angle.
8. A method for preventing accidental touches, applied in a display device, characterized in that: The display device is rotatably connected to the keyboard, the display device includes a processor, and the method includes: When detecting that the display device is turned off, sending a screen-off notification to the keyboard; Receiving a wake-up message sent by the keyboard, and waking up the kernel according to the wake-up message; Acquire the posture information of the display device detected by the posture detection sensor of the display device, and acquire the posture information of the keyboard sent by the keyboard; The processor of the display device calculates the angle between the display device and the keyboard according to the posture information of the display device and the posture information of the keyboard, and determines the state of the angle according to the comparison result of the angle and the preset angle; sending the state of the angle to the keyboard; If the key value reported by the keyboard is received, the screen is turned on.
9. The method for preventing accidental touches according to claim 8, wherein: The determining the state of the angle according to the comparison result between the angle and the preset angle includes: If the angle is less than or equal to the preset angle, determining that the state of the angle is an angle unlocked state; If the included angle is greater than the preset angle, it is determined that the state of the included angle is an angle locking state.
10. The method for preventing accidental touches according to claim 8, wherein: The method further comprises: When it is detected that the display device is turned off, the state of the angle is set to an unknown angle state, where the unknown angle state indicates that the state of the angle does not belong to the angle unlocked state or the angle locked state.
11. The method for preventing accidental touches according to claim 8, wherein: The posture detection sensor of the display device includes a first accelerometer sensor and a first gyroscope, and the acquiring of the posture information of the display device detected by the posture detection sensor of the display device includes: Acquire the three-dimensional spatial coordinates and the deflection angle of the display device detected by the first accelerometer sensor and the first gyroscope, wherein the deflection angle of the display device includes one or more of the roll angle, pitch angle and yaw angle of the display device; The acquiring the keyboard posture information sent by the keyboard comprises: The three-dimensional spatial coordinates and the deflection angle of the keyboard detected by the second accelerometer sensor and the second gyroscope of the keyboard are obtained, wherein the deflection angle of the keyboard includes one or more of the roll angle, pitch angle and yaw angle of the keyboard.
12. The method for preventing accidental touches according to claim 11, wherein: The step of calculating the angle between the display device and the keyboard according to the posture information of the display device and the posture information of the keyboard comprises: The angle is calculated according to the three-dimensional space coordinates of the display device, the deflection angle of the display device, the three-dimensional space coordinates of the keyboard, and the deflection angle of the keyboard.
13. The method for preventing accidental touches according to claim 8, wherein: The sending the state of the angle to the keyboard comprises: In response to the angle status query message sent by the keyboard, the state of the angle is sent to the keyboard.
14. A method for preventing accidental touches, applied in a terminal device, wherein the terminal device comprises a display device and a keyboard, wherein the display device is rotatably connected to the keyboard, and the display device comprises a processor, wherein: The method comprises: When detecting that the display device is turned off, the display device sends a screen-off notification to the keyboard; If it is detected that the user triggers a key on the keyboard, the keyboard scans the key value of the triggered key and temporarily stores the key value; The keyboard sends a wake-up message to the display device; The display device wakes up the kernel according to the wake-up message; The keyboard sends the keyboard posture information detected by the keyboard posture detection sensor to the display device; The processor of the display device acquires the posture information of the display device detected by the posture detection sensor of the display device, and acquires the posture information of the keyboard sent by the keyboard; The keyboard calculates the angle between the display device and the keyboard according to the posture information of the display device and the posture information of the keyboard, determines the state of the angle according to the comparison result between the angle and the preset angle, and sends the state of the angle to the keyboard; If the state of the angle is an angle lock state, the keyboard discards the temporarily stored key value, wherein the angle lock state indicates that the angle is greater than a preset angle; if the state of the angle is an angle unlock state, the keyboard reports the temporarily stored key value to the display device, wherein the angle unlock state indicates that the angle is less than or equal to the preset angle; If the display device receives the key value reported by the keyboard, the screen is turned on.
15. The method for preventing accidental touches according to claim 14, wherein: After the display device sends the screen-off notification to the keyboard, the method further includes: the keyboard turning off a gesture detection sensor of the keyboard according to the screen-off notification; The keyboard sending the keyboard posture information detected by the keyboard posture detection sensor to the display device includes: the keyboard starts the keyboard posture detection sensor, and sends the keyboard posture information detected by the keyboard posture detection sensor to the display device.
16. The method for preventing accidental touches according to claim 15, wherein: After the keyboard activates the gesture detection sensor of the keyboard, the method further includes: The keyboard turns on a timer; After the timer reaches a preset time, the gesture detection sensor of the keyboard is turned off.
17. A keyboard, characterized in that: The keyboard also includes a processor and a memory; wherein the processor is connected to the memory; The memory is used to store program instructions; The processor is used to read the program instructions stored in the memory to implement the anti-mistouch identification method according to any one of claims 1 to 7.
18. A display device, characterized in that: The display device further includes a processor and a memory; wherein the processor is connected to the memory; The memory is used to store program instructions; The processor is used to read the program instructions stored in the memory to implement the anti-mistouch identification method according to any one of claims 8 to 13.
19. A terminal device, comprising a display device and a keyboard, characterized in that: The display device is connected to the keyboard, and the terminal device further includes a processor and a memory; wherein the processor is connected to the memory; The memory is used to store program instructions; The processor is used to read the program instructions stored in the memory to implement the anti-mistouch identification method according to any one of claims 14 to 16.
20. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program instructions, and when the program instructions are executed on the terminal device, the terminal device executes the anti-mistouch identification method according to any one of claims 14 to 16.
