Control method and keyboard control system
By combining the keyboard usage signal and magnetic field sensing signal, the keyboard status is accurately controlled, and the problem of false triggering caused by the Bluetooth keyboard due to the error detection of magnetic field sensing signals is solved, improving user experience and power consumption management.
Patent Information
- Application Number
- CN202510400645.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-31
- Publication Date
- 2025-07-04
AI Technical Summary
In the prior art, external devices such as Bluetooth keyboards are easily paired with terminal devices due to false triggering, and the user experience is reduced, especially due to the frequent occurrence of false touch operations caused by the false detection of magnetic field induced signals.
By acquiring the first and second signals of the keyboard, the first signal represents whether the keyboard is used, and the second signal represents the magnetic field induced signal, combining the two to determine the target state of the keyboard to avoid false triggering. Specific methods include acquiring the duration and polarity characteristics of the induced voltage signal and configuring the sensing component to accurately control the keyboard state.
It effectively reduces the problem of accidentally triggering on the keyboard, improves the user experience effect, reduces power consumption, and ensures that the keyboard switches to the appropriate state more accurately during actual use.
Smart Images

Figure CN120255706A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of keyboards, and more specifically, to a control method and a keyboard control system. Background Art
[0002] Currently, it is quite common to use external devices with Bluetooth functions in combination with terminal devices such as tablet computers or mobile phones. For example, a Bluetooth keyboard is used to input characters with a tablet computer, and a computer uses a Bluetooth stylus for handwriting input. With the demand for the convenient use of external devices, external devices usually configure different modules. During actual use, these modules will affect each other, easily causing mis-triggering of the devices and reducing the user experience. Summary of the Invention
[0003] In view of this, this application provides the following technical solutions:
[0004] A control method includes:
[0005] Obtaining a first signal and a second signal of the keyboard; wherein, the first signal is different from the second signal, the first signal represents a signal indicating whether the keyboard is in use, and the second signal represents a magnetic field induction signal of the keyboard;
[0006] Based on the first signal and the second signal, controlling the keyboard to be in a target state; the target state includes a first state and a second state, and the first power consumption of the keyboard in the first state is less than the second power consumption of the keyboard in the second state.
[0007] Optionally, obtaining the second signal of the keyboard includes obtaining an induced voltage signal detected by a sensor of the keyboard under the action of a magnetic field induction signal; wherein, based on the first signal and the second signal, controlling the keyboard to be in a target state includes:
[0008] If the signal duration of the induced voltage signal is less than a target duration, controlling the keyboard to be in the second state;
[0009] If the signal duration of the induced voltage signal is not less than the target duration, based on the first signal, controlling the keyboard to be in a target state.
[0010] Optionally, obtaining the first signal includes at least one of the following combinations:
[0011] When the keyboard is connected to a target device, obtaining a first sub-signal of the user state through a collection component;
[0012] When the keyboard is connected to the target device, obtaining a second sub-signal of the usage state of the target device;
[0013] Obtain a third sub-signal of the touch input of the keyboard;
[0014] Among them, controlling the keyboard to be in a target state based on the first signal includes:
[0015] Based on the first signal, determine whether the target state of the keyboard being used is satisfied;
[0016] When the first signal satisfies the target usage state of the keyboard being used, control the keyboard to be in the second state;
[0017] When the first signal does not satisfy the target usage state of the keyboard being used, control the keyboard to be in the first state.
[0018] Optionally, obtaining the induction voltage signal of the sensing component of the keyboard includes:
[0019] Obtain a first induction voltage signal of the first sub-sensor of the sensing component, and obtain a second induction voltage signal of the second sub-sensor of the sensing component; the relative distance between the first sub-sensor and the second sub-sensor on the keyboard panel satisfies the target distance condition; among them, if the signal duration of the induction voltage signal is not less than the target duration, based on the first signal, determining the target state of the keyboard includes:
[0020] If the signal duration of the first induction voltage signal is not less than the target duration, and at the same time the signal duration of the second induction voltage signal is not less than the target duration, and the first signal does not satisfy the target usage state of the keyboard being used, control the keyboard to be in the first state;
[0021] If the signal duration of the first induction voltage signal is not less than the target duration, and at the same time the signal duration of the second induction voltage signal is not less than the target duration, and the first signal satisfies the target usage state of the keyboard being used, control the keyboard to be in the second state.
[0022] Optionally, if the signal duration of the induction voltage signal is less than the target duration, controlling the keyboard to be in the second state includes:
[0023] If the signal duration of the first induction voltage signal is less than the target duration and / or the signal duration of the second induction voltage signal is less than the target duration, control the keyboard to be in the second state.
[0024] Optionally, obtaining the second signal of the keyboard includes: obtaining an induction voltage signal based on the polarity characteristic of the sensing component of the keyboard; among them, controlling the keyboard to be in a target state based on the second signal includes:
[0025] If the magnetic field direction of the induced voltage signal detected by the sensing component matches the target magnetic field direction corresponding to the polarity feature, control the keyboard to be in the first state;
[0026] If the magnetic field direction of the induced voltage signal detected by the sensing component does not match the target magnetic field direction corresponding to the polarity feature, control the keyboard to be in the second state.
[0027] Optionally, the first signal includes an obtaining a covering state signal of the keyboard cover relative to the keyboard, wherein, based on the first signal, controlling the keyboard to be in a target state includes:
[0028] If the covering state signal indicates that the keyboard cover covers the input surface including the input keys of the keyboard, control the keyboard to be in the first state;
[0029] If the keyboard state signal indicates that the keyboard cover does not cover the input surface, control the keyboard to be in the second state.
[0030] A keyboard control system, comprising: a keyboard and a control device;
[0031] The control device is configured to obtain a first signal and a second signal of the keyboard; wherein, the first signal is different from the second signal, the first signal is a signal indicating whether the keyboard is in use, and the second signal is a magnetic field induction signal of the keyboard; based on the first signal and the second signal, control the keyboard to be in a target state; the target state includes a first state and a second state, and a first power consumption of the keyboard in the first state is less than a second power consumption of the keyboard in the second state.
[0032] Optionally, the keyboard includes a sensing component, and the sensing component is configured to obtain the second signal; the sensing component includes a first sub-sensor and a second sub-sensor, and a relative distance between the first sub-sensor and the second sub-sensor on the keyboard panel satisfies a target distance condition.
[0033] Optionally, further comprising: a keyboard cover;
[0034] The keyboard cover is provided with a target structure, and when the keyboard cover is connected to the keyboard in a target pose through the target structure, the keyboard cover does not affect the target state of the keyboard;
[0035] Wherein, the target structure includes at least one of the following:
[0036] A magnet having a target polarity feature, and the target polarity feature is determined based on the polarity feature of the sensing component;
[0037] A bent component provided with a magnetic field shielding material;
[0038] A bent component having a target bending angle, where the target bending angle characterizes that when the keyboard cover is bent, the magnets of the keyboard cover do not cause a second signal detected by the sensing component of the keyboard. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] To more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only the embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on the provided drawings.
[0040] Figure 1 A flowchart of a control method provided by an embodiment of the present application;
[0041] Figure 2 A flowchart of a method for controlling the keyboard state based on the induced voltage signal provided by an embodiment of the present application;
[0042] Figure 3 A structural diagram of a sensing component corresponding to a keyboard provided by an embodiment of the present application;
[0043] Figure 4 A flowchart of a method for controlling the keyboard state based on different sensors provided by an embodiment of the present application;
[0044] Figure 5 A flowchart of a method for controlling the keyboard state in an application scenario provided by an embodiment of the present application;
[0045] Figure 6 A schematic diagram of a scenario where a keyboard cover covers a keyboard provided by an embodiment of the present application;
[0046] Figure 7 A schematic diagram of a scenario where a keyboard cover supports a tablet computer connected to a keyboard provided by an embodiment of the present application;
[0047] Figure 8 A schematic diagram of a scenario where a keyboard cover is folded under a keyboard provided by an embodiment of the present application;
[0048] Figure 9 A flowchart of a method for controlling the keyboard state based on the polarity characteristics of a sensing component provided by an embodiment of the present application;
[0049] Figure 10 A structural diagram of a keyboard control system provided by an embodiment of the present application;
[0050] Figure 11Schematic diagrams of a keyboard cover and a keyboard provided by an embodiment of the present application;
[0051] Figure 12 Schematic diagram of a bent part of a keyboard cover provided by an embodiment of the present application. Detailed implementation manners
[0052] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0053] The terms "first" and "second" in the present application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may include steps or units that are not listed.
[0054] An embodiment of the present application provides a control method, which can be applied to a scenario of controlling the state of a keyboard. Usually, relevant sensing components are configured in the keyboard, and relevant signals are sensed through the sensing components to control the keyboard to present corresponding states. However, while the sensing components sense signals, they will also sense false touch signals generated due to misoperations, etc., so that the keyboard enters a false trigger state, affecting the user experience. Through the control method of the embodiment of the present application, it is possible to combine signals of different dimensions for the keyboard to more accurately control the keyboard to enter the corresponding target state, solve the problem of false triggering of the keyboard, and improve the user experience effect.
[0055] See Figure 1 , which is a schematic flow chart of a control method provided by an embodiment of the present application. The control method may include the following steps:
[0056] S101. Obtain a first signal and a second signal of the keyboard.
[0057] S102. Control the keyboard to be in a target state based on the first signal and the second signal.
[0058] In step S101, the first signal and the second signal of the keyboard obtained may be associated signals of the keyboard. For example, they may be signals obtained by detecting the components of the keyboard itself, or signals related to the keyboard detected by other devices connected to the keyboard. Correspondingly, the first signal is different from the second signal. The first signal and the second signal may be signals of different signal dimensions, or signals of different types, or signals obtained based on different acquisition components. In the embodiments of the present application, the first signal is a signal indicating whether the keyboard is in use. It may be a signal detected by the detection component of the keyboard itself to determine whether the keyboard is in use, or a signal detected by the device connected to the keyboard that requires potential use of the keyboard. For example, the first signal may include input signals generated by the keyboard, such as signals generated by a user clicking the physical keys of the keyboard, or signals generated by a user touching the virtual keys of the keyboard, or handwriting trajectory signals input in the handwriting area of the keyboard, etc. Correspondingly, the first signal may also include the demand signal of the target device connected to the keyboard for the keyboard. For example, when the keyboard is connected to a tablet computer or a display device through a wireless connection such as Bluetooth, the signals related to the tablet computer or the display device obtained can be used as the first signal. At this time, the first signal may be the use signal of the target device connected to the keyboard, or a signal indicating the connection state between the keyboard and the target device. In this way, the current use state or potential use state of the keyboard can be determined through the first signal. For example, although the keyboard does not generate an input signal, but the target device connected to it is in a working state, the keyboard can be recognized as a potential working state that may generate an input signal at any time.
[0059] In the embodiments of the present application, the second signal may represent the magnetic field induction signal of the keyboard. A corresponding sensing component is usually configured in the keyboard. By detecting the corresponding induced voltage signal under the condition of magnetic field change, the switching of the keyboard state can be realized. For example, when the keyboard is equipped with a keyboard cover, a magnet is built into the keyboard cover. When the keyboard cover covers the keyboard, the sensing component of the keyboard will determine that the magnetic field induction signal of the keyboard has changed according to the detected induced voltage signal, and will trigger the keyboard to enter the sleep mode to save the power consumption of the keyboard. However, in some scenarios, when the keyboard cover does not completely cover the keyboard, it will also cause the sensing component of the keyboard to detect relevant signals reflecting the magnetic field change. If the keyboard is controlled to enter the sleep mode at this time, it may affect the normal use of the keyboard.
[0060] Therefore, in step S102 of the embodiments of the present application, the keyboard is controlled to be in a target state based on the first signal and the second signal. Among them, the target state includes a first state and a second state, and the first power consumption of the keyboard in the first state is less than the second power consumption of the keyboard in the second state. For example, the first state may be the sleep mode, shutdown mode, sleep mode, standby mode, etc. of the keyboard; the second state may be the normal working state of the keyboard. If the target state of the keyboard is directly determined according to the first signal representing the magnetic induction signal of the keyboard, there may be a problem of mis-triggering, so the signal representing whether the keyboard is in use is combined to determine the target state of the keyboard. For example, when it is determined through the second signal that the keyboard needs to switch to the first state, the usage state of the keyboard will be determined according to the first signal again. If the first signal satisfies the state that the keyboard is not in use, the keyboard will be controlled to switch to the second state at this time; if the first signal does not satisfy the state that the keyboard is not in use, the keyboard will be controlled to switch to the first state at this time.
[0061] Generally, the keyboard can communicate and connect with the target device (such as a laptop computer) based on its communication module (such as a Bluetooth module), so that the keyboard can provide an input function for the target device. The keyboard is provided with a transmission component (such as a Hall sensor), and through this transmission component, the magnetic induction signal of the keyboard can be detected, and based on this magnetic induction signal, the keyboard can be controlled to reach the corresponding state, such as controlling the keyboard backlight to turn off, or controlling the keyboard to enter the corresponding low-power state (such as the sleep state), etc., so as to achieve the purpose of reducing the power consumption of the keyboard. During the connection process between the keyboard and the target device, touch input to the keyboard or the target device can also be realized through a stylus, and the keyboard can also be protected by adding a keyboard cover, etc. Generally, the stylus will add a magnet adsorption function, so that it can be adsorbed on the target device for easy carrying. However, if the user holds the magnetic stylus and types on the keyboard, or places the magnetic stylus near the keyboard; or when the keyboard is supported by the keyboard cover, or the keyboard cover is folded and placed under the keyboard; or when the user wears a magnetic bracelet or other magnetic objects close to the keyboard, because the transmission component in the keyboard can detect the magnetic induction signal or the electrical signal generated by the action of the magnetic induction signal, etc., the keyboard will be touched to enter the corresponding low-power state, such as controlling the keyboard to sleep. At this time, problems such as sudden interruption of signals during user input on the keyboard may occur.
[0062] Therefore, in the embodiments of the present application, after obtaining the first signal characterizing the magnetic field induction signal of the keyboard, it is also necessary to jointly determine the actual usage state of the keyboard with the second signal characterizing whether the keyboard is used, so as to control the keyboard to be in the target state. For example, when the first signal is detected, it indicates that the keyboard can be controlled to be in the first state currently. At this time, it is necessary to jointly determine the actual usage state of the keyboard with the second signal. For example, if it is detected that the keyboard is in the used state or the target device connected to the keyboard is in the used state, it means that the keyboard needs to continue to be used. At this time, it is necessary to control the keyboard to be in the second state, such as maintaining its working state. In this way, the usage state of the keyboard and the magnetic field induction signal can be combined to more accurately determine the actual target state of the keyboard, thereby solving the problem of mis-triggering of the keyboard target state and improving the user experience effect.
[0063] The control method in the embodiments of the present application will be described below in combination with actual application scenarios.
[0064] In an implementation manner of the embodiments of the present application, obtaining the second signal of the keyboard includes obtaining the induced voltage signal detected by the sensing component of the keyboard under the action of the magnetic field induction signal. The sensing component of the keyboard can be a sensor that can detect relevant induced voltage signals when the magnetic field where the keyboard is located changes. For example, the sensing component can be a Hall sensor (such as represented by hall sensor). The magnet in the device containing the magnet will generate a magnetic field signal, and its intensity, direction, and distribution characteristics will affect the output of the Hall sensor, that is, will affect the induced voltage signal output by the Hall sensor. The Hall sensor will generate a Hall voltage under the action of the magnetic field, and its magnitude is proportional to the magnetic field intensity and direction. Therefore, under the influence of the magnetic field, the sensing component can output a corresponding induced voltage signal. It is possible to determine whether the condition for controlling the keyboard to switch is satisfied according to the induced voltage signal. In order to more accurately control the target state of the keyboard, it is also necessary to jointly determine the target state of the keyboard with the first signal.
[0065] See Figure 2 , which shows a schematic flowchart of a method for controlling the keyboard state based on the induced voltage signal provided by the embodiments of the present application. The method may include the following steps:
[0066] S201. Obtain the induced voltage signal detected by the sensing component of the keyboard under the action of the magnetic field induction signal, and the first signal of the keyboard.
[0067] S202. Determine whether the duration of the induced voltage signal is less than the target duration. If so, execute step S203; if not, execute step S204.
[0068] S203. Control the keyboard to be in the second state.
[0069] S204. Control the keyboard to be in a target state based on the first signal.
[0070] In this embodiment, when a magnet in the environment where the keyboard is located approaches the keyboard, the sensing component will detect a corresponding induced voltage signal. Here, the magnet can come from relevant devices in the surrounding environment of the keyboard, such as a magnetic stylus, a magnetic bracelet, a keyboard cover including a magnet, or other magnetic objects. The magnetic field induction signal where the keyboard is located can be determined through this induced voltage signal. Usually, when the magnetic field induction signal is detected, the keyboard will be controlled to enter a low-power state such as sleep to save the power consumption of the keyboard. However, in some scenarios, false triggering operations may also cause the sensing component to detect a corresponding induced voltage signal, which is likely to cause incorrect control operations of the keyboard state. For example, a magnetic stylus can be adsorbed on an electronic device through its magnetic adsorption function. However, when the user holds the magnetic stylus and inputs relevant characters on the keyboard, since the sensing component on the keyboard detects the induced voltage signal, the keyboard will be controlled to enter the sleep state, affecting the user's continued input. To avoid the above-mentioned similar incorrect touch operations on the keyboard, in the embodiment of the present application, after detecting the induced voltage signal, it is also necessary to determine the signal duration of the induced voltage signal. If the signal duration is less than the target duration, it indicates that the signal duration is short and there may be a false triggering situation. The target duration can be determined according to the actual application scenario and the user's usage habits. At this time, the keyboard will be controlled to be in the second state, such as controlling the keyboard to be in the working state. Correspondingly, if the signal duration of the induced voltage signal is not less than the target duration, the target state of the keyboard will be jointly determined with the first signal characterizing whether the keyboard is being used, so as to control the keyboard to be in this target state. For example, if it is detected that the signal duration of the induced voltage signal is greater than the target duration and it is determined based on the first signal that the keyboard is in the used state, the keyboard will be controlled to be in the second state, such as controlling the keyboard to be in the working state. When it is detected that the signal duration of the induced voltage signal is greater than the duration and it is determined based on the first signal that the keyboard is not in the used state, the keyboard will be controlled to be in the first state, such as entering the sleep state. In this way, the target state of the keyboard can be more accurately determined through the signal duration of the induced voltage signal and whether the keyboard is being used, thereby reducing the problem of false triggering and improving the user experience effect.
[0071] In the embodiment of the present application, the first signal can be a signal directly acting on the keyboard or a relevant signal for the target device connected to the keyboard. In one embodiment, obtaining the first signal includes at least one of the following combinations:
[0072] When the keyboard is connected to the target device, obtain the first sub-signal of the user state through the acquisition component; when the keyboard is connected to the target device, obtain the second sub-signal of the usage state of the target device; obtain the third sub-signal of the touch input of the keyboard.
[0073] In this embodiment, the target device may be a device capable of displaying keyboard input characters, such as a display, a tablet computer, or a laptop computer. The keyboard can be connected to the target device through a wireless communication method (such as a Bluetooth connection method). In this way, the characters input through the keyboard can be presented on the target device, or relevant applications of the target device can be controlled. For example, document editing can be performed through the input characters on the keyboard, and the document editing interface can be presented on the target device; or the relevant application programs or display interfaces of the target document can be switched through the input of shortcut keys on the keyboard. When the keyboard is connected to the target device, a first sub-signal of the user state is obtained through the acquisition component. Among them, the acquisition component can be a component for acquiring user characteristic information. For example, the acquisition component can be an image acquisition component (such as a camera), and the first sub-signal acquired through the image acquisition component can be a user image signal; the acquisition component can also be an audio acquisition component, and the first sub-signal acquired through the audio acquisition component can be a user audio signal; correspondingly, the acquisition component can also be an infrared acquisition component, or a TOF (Time of Flight) sensor. In this way, by acquiring the user image signal or the user audio signal, it can be determined whether there is a corresponding user using the current target device and the keyboard, so as to determine whether the keyboard is being used. Correspondingly, the second sub-signal for obtaining the usage state of the target device can be the output signal of the display screen of the target device, or the current load signal of the target device, or the target device state signal obtained by reading the EC (Embedded Controller) of the target device, such as obtaining that the target device is in the S0 state (Power State 0, working state). Thus, it can be determined whether the keyboard is in a used state according to the above second sub-signal. Correspondingly, the third sub-signal for obtaining the touch input of the keyboard can be the input signal of the physical keys on the keyboard, or when the keys on the keyboard are virtual keys, obtaining its touch operation signal; it can also be obtaining the handwriting signal when there is a handwriting input area on the keyboard. In this way, it can be determined whether the keyboard is being used according to the third sub-signal. It should be noted that in some cases, the touch input on the keyboard may also be a false touch. At this time, it can be determined whether it is an input signal that meets the preset input rule according to the input signal, so as to determine the actual usage state of the keyboard.
[0074] After the first signal is obtained, it can be determined whether the keyboard is in a used state, and thus the keyboard can be controlled to be in the corresponding target state according to the first signal. Correspondingly, after it is determined that the signal duration of the induced voltage signal detected by the sensing component of the keyboard is greater than the target duration, the keyboard can be controlled to be in the target state according to the first signal. This processing process may include the following steps:
[0075] S301. Determine whether the target usage status of the keyboard being used is satisfied based on the first signal.
[0076] S302. When the first signal satisfies the target usage status of the keyboard being used, control the keyboard to be in the second state.
[0077] S303. When the first signal does not satisfy the target status of the keyboard being used, control the keyboard to be in the first state.
[0078] After the signal duration of the induction voltage signal is greater than the target duration, it indicates that the candidate state of the keyboard is to enter the relatively low-power first state. At this time, to eliminate the influence of false triggering problems, it is necessary to continue to determine whether the conditions for the keyboard to enter the first state are satisfied according to the first signal. The conditions for the target usage status can be determined according to the signal characteristics corresponding to the first signal. For example, if the first signal is the signal of the face image of the user of the target device connected to the keyboard, correspondingly, the condition for the target usage status can be continuously detecting the face of this user within the target time period. If the first signal is the usage signal of the target device connected to the keyboard, the condition for the target usage status can be that the usage signal indicates that the electronic device is in a working condition, such as the condition of continuous data transmission, etc.; another example is that the first signal is the input signal of the keyboard, and correspondingly, the condition for the target usage status can be the condition that indicates that the input signal is continuous and has a specific input rule to eliminate the operation of accidentally touching the physical keys or virtual keys on the keyboard. If the first signal satisfies the target usage status of the keyboard being used, it means that the keyboard is being used, or the target device connected to the keyboard is being used. At this time, the keyboard is in a state where it may be used at any time. In this state, it is necessary to control the keyboard to be in the second state, such as controlling the keyboard to be in a normal working state. If the first signal does not satisfy the target usage status of the keyboard being used, that is, it indicates that the keyboard will not be used in the next period of time, then the keyboard will be controlled to be in the first state, such as controlling the keyboard to enter the low-power state. This can achieve precise control of the keyboard state, avoid false touch problems, and at the same time reduce the power consumption of the keyboard and improve the user experience.
[0079] Taking the scenario of a keyboard communicating and connecting with a laptop as an example, the face image of the current laptop user can be collected through an image acquisition module (such as a camera) in the laptop. The face image signal is used as the first signal, and based on this face image signal, it can be determined whether the keyboard is in the target usage state of being used. When the sensing component set on the keyboard includes one sensor, if the duration of the induced voltage signal detected by this sensor is greater than the target duration, it indicates that the magnetic field induction signal around the keyboard exists, meeting the condition for triggering the keyboard to enter the first state based on the second signal. In the embodiments of this application, the keyboard will not directly enter the first state but will continue to determine the usage state of the keyboard according to the first signal. If the face image of this user is detected within the target time period, it can be determined that the user is using this laptop and may input relevant information using the keyboard at any time. At this time, when it is determined that the keyboard is in the target usage state of being used, the keyboard will be controlled to be in the second state. If the face image of the user is not detected or continuously detected within the target time period, it is determined that the user is not using this laptop. At this time, when it is determined that the keyboard is in the unused state, the keyboard will be controlled to be in the first state, such as controlling the keyboard to enter the sleep state, etc. Further, in order to accurately determine the usage state of the laptop, after detecting the user's face image, the line of sight can also be analyzed to determine whether the user is actually using this laptop, so as to determine the actual usage state of the keyboard.
[0080] Correspondingly, in the case where the transmission component of the keyboard includes two sensors (such as a first sub-sensor and a second sub-sensor) set at different positions on the keyboard, when the induced voltage signals of the first sub-sensor and the second sub-sensor are received simultaneously, if the signal duration of the induced voltage signal of any one of the sensors is less than the target duration (such as less than 5S), it indicates that the object generating the magnetic induction signal (such as a stylus) exists instantaneously. At this time, the keyboard will continue to be controlled to be in the second state (such as the working state). If it is detected that the signal durations of the induced voltage signals of these two sub-sensors are both greater than the target duration, at this time, according to the detected face image signal, it will be determined whether the keyboard is in the used state. If the keyboard is in the used state, the keyboard will be controlled to be in the second state; if the keyboard is in the unused state, the keyboard will be controlled to enter the first state, that is, the keyboard will be controlled to enter the low-power state. Further, the backlight of the keyboard can be controlled to turn off first, and then it will continue to monitor whether there is a face image signal, or a keyboard tapping signal, etc. If it indicates that the keyboard is in the unused state within the target time period (such as within two minutes), the keyboard will be further controlled to enter the sleep mode to achieve the purpose of more power saving of the keyboard. Then continue to monitor the usage state of the keyboard for subsequent switching of the keyboard state, so as to improve the user experience effect.
[0081] In the embodiments of the present application, the precise control of the keyboard state can also be achieved by configuring the layout of the sensing components. For example, referring to Figure 3 , which is a schematic structural diagram of a sensing component corresponding to a keyboard provided in the embodiments of the present application. The Figure 3 sensing component includes a first sub-sensor 401 and a second sub-sensor 402. The relative distance between the first sub-sensor 401 and the second sub-sensor 402 on the keyboard panel 40 satisfies the target distance condition. Among them, the target distance condition can be set according to the characteristics of the keyboard panel, such as the length and width of the keyboard panel, etc.; correspondingly, the target distance condition can also be set according to the detection accuracy of the corresponding sub-sensor. As Figure 3 shows, the first sub-sensor and the second sub-sensor can be respectively configured in the areas of the lower left corner and the upper right corner of the keyboard panel, so that the target state of the keyboard can be determined by the signal characteristics detected by the first sub-sensor and the second sub-sensor.
[0082] In Figure 3 the application scenario shown, obtaining the induced voltage signal of the sensing component of the keyboard includes: obtaining the first induced voltage signal of the first sub-sensor of the sensing component, and obtaining the second induced voltage signal of the second sub-sensor of the sensing component. In this embodiment, when both the first sub-sensor and the second sub-sensor detect the corresponding induced voltage signals, the processing flow of determining the target state of the keyboard will continue. If any one of the first sub-sensor and the second sub-sensor does not detect the induced voltage signal, the keyboard will be controlled to be in the second state, such as controlling the keyboard to be in the working state.
[0083] In this embodiment, in the process of determining the target state of the keyboard based on the first signal when the signal duration of the induced voltage signal is not less than the target duration, the following steps may be included:
[0084] If the signal duration of the first induced voltage signal is not less than the target duration, and at the same time the signal duration of the second induced voltage signal is not less than the target duration, and the first signal does not meet the target usage state of the keyboard being used, control the keyboard to be in the first state. When the corresponding induced voltage signals are detected by both the first sub-sensor and the second sub-sensor, and the detected duration of the induced voltage is relatively long, it indicates that the magnetic field around the keyboard has changed. At this time, the determination will continue according to the first signal. If the first signal indicates that the keyboard is in the unused state, the keyboard will be controlled to be in the first state, such as controlling the keyboard to be in the sleep state.
[0085] If the signal duration of the first induced voltage signal is not less than the target duration, and at the same time the signal duration of the second induced voltage signal is not less than the target duration, and the first signal meets the target usage state of the keyboard being used, control the keyboard to be in the second state. When the corresponding induced voltage signals are detected by both the first sub-sensor and the second sub-sensor, and the detected duration of the induced voltage is relatively long, it indicates that the magnetic field around the keyboard has changed. At this time, the determination will continue based on the first signal. If the first signal indicates that the keyboard is in the state of being used, the keyboard will be controlled to be in the second state, such as controlling the keyboard to be in the normal state.
[0086] Further, if the signal duration of the induced voltage signal is less than the target duration, controlling the keyboard to be in the second state includes: if the signal duration of the first induced voltage signal is less than the target duration and / or the signal duration of the second induced voltage signal is less than the target duration, control the keyboard to be in the second state.
[0087] See Figure 4 , which shows a schematic flowchart of a process for controlling the keyboard state based on different sensors provided by an embodiment of the present application. In Figure 4 the keyboard is provided with a first sub-sensor and a second sub-sensor, and the relative distance between the first sub-sensor and the second sub-sensor in the keyboard is relatively large. Figure 4 The corresponding embodiment may include the following steps:
[0088] S501. Obtain the first induced voltage signal of the first sub-sensor and the second induced voltage signal of the second sub-sensor.
[0089] S502. Determine whether there are both the first induced voltage signal and the second induced voltage signal at the same time. If so, execute step S503; if not, execute step S501.
[0090] S503. Determine whether the signal durations corresponding to the first induced voltage signal and the second induced voltage signal are both greater than the target duration. If so, execute step S504; if not, execute step S502.
[0091] S504. Determine whether the keyboard is in the state of being used. If so, execute step S503; if not, execute step S505.
[0092] S505. Control the keyboard to enter the first state.
[0093] In this embodiment, as long as the two sub-sensors do not simultaneously detect the induced voltage signal, that is, only one sensor detects the induced voltage signal and the other sensor does not detect the induced voltage signal, the keyboard will be controlled to be in the second state, such as controlling the keyboard to continue to be in the working state. In the case where both sub-sensors detect the induced voltage signal, as long as the signal duration of the induced voltage signal detected by one sub-sensor is less than the target duration, for example, as long as one sub-sensor does not detect the induced voltage signal; it can also be that as long as the signal duration of the induced voltage signal detected by one sub-sensor is less than 5 seconds (such as setting the target duration to 5 seconds), the keyboard can be controlled to be in the second state, such as controlling the keyboard to continue to be in the working state. In one implementation, it can be that when the signal duration of the first induced voltage signal is less than the target duration and the signal duration of the second induced voltage signal is not less than the target duration, the keyboard is controlled to be in the second state; it can also be that when the signal duration of the first induced voltage signal is not less than the target duration and the signal duration of the second induced voltage signal is less than the target duration, the keyboard is controlled to be in the second state; it can also be that when the signal duration of the first induced voltage signal is less than the target duration and the signal duration of the second induced voltage signal is also less than the target duration, the keyboard is controlled to be in the second state. If the signal durations of the induced voltage signals detected by the two sub-sensors are both greater than the target duration, it is necessary to combine the usage state of the keyboard to determine whether to control it to be in the first low-power state, such as determining whether the keyboard is in the used state by detecting whether there is a continuous input signal on the keyboard.
[0094] In this application scenario, by setting at least two sensors in the keyboard that detect the induced voltage signal generated by the change of the magnetic field signal by the user, since the relative distance between these two sensors is relatively far, a device including a magnet such as a stylus is not likely to trigger these two sensors simultaneously, thereby reducing the mis-touch determination and improving the accuracy of keyboard state control and the user experience effect.
[0095] See Figure 5, which shows a schematic flowchart of a keyboard state control method provided in an embodiment of the present application. In this application scenario, the keyboard includes a first sub-sensor and a second sub-sensor, and the first sub-sensor and the second sub-sensor are used to detect the induced voltage signal caused by the magnetic field change. If the first sub-sensor and the second sub-sensor can be Hall sensors. In this application scenario, the keyboard may include a Bluetooth communication module, and the keyboard is connected to the laptop through this Bluetooth communication module, so that relevant characters can be input through the keyboard and presented on the display of the laptop, or corresponding instructions can be input through the keyboard to control the laptop to switch relevant applications or interface and other information. Correspondingly, in this application scenario, the first signal can be realized by obtaining the working state signal of the Embedded Controller (EC) of the laptop, that is, through the signal recorded in the EC, it is determined whether the laptop is in the working state. If what is recorded is the S0 state, it can indicate that the laptop is in the working state. Further, the keyboard connected to it also needs to be in a state that can be used at any time, simply referred to as the keyboard being in the used state. In order to save the power consumption of the keyboard, in this application scenario, when controlling the keyboard to be in the target state, it can be controlled by a method of saving its power consumption step by step. For example, under the condition of meeting the corresponding conditions, first control components such as the keyboard light to turn off, and then if it is still determined during the continued determination process that the keyboard is in the unused state, the keyboard can be further controlled to enter the sleep state to save its power consumption more. Figure 5 may include the following steps:
[0096] S601. Monitor the associated signal of the keyboard when the laptop is powered on, the keyboard switch is turned on, and the laptop and the keyboard are paired and connected.
[0097] S602. Determine whether the induced voltage signals of the first sub-sensor and the second sub-sensor are detected simultaneously. If so, execute step S603; if not, execute step S601.
[0098] S603. Determine whether the signal duration of the induced voltage signals of the first sub-sensor and the second sub-sensor both lasts for 5 seconds. If so, execute step S604; if not, execute step S602;
[0099] S604. Based on the information recorded in the EC of the laptop, determine whether the laptop is being used. If so, execute step S601; if not, execute step S605.
[0100] If it is determined that the laptop is in use, the current working state of the keyboard will be maintained, and the relevant signals of the keyboard will continue to be monitored. If it is detected that the laptop is not in use, the keyboard will be directly controlled to enter the corresponding low-power state. In this application scenario, based on the duration of non-use, the keyboard can be gradually controlled to enter the sleep state.
[0101] S605. Time the unused state of the laptop and determine whether it exceeds 15 seconds. If so, execute step S606; if not, execute step S601.
[0102] In this step, the unused state of the laptop is timed. For example, if the time threshold is set to 15 seconds, and the laptop is still in an unused state after 15 seconds, it will be controlled to enter the corresponding low-power state. If the laptop is in use within 15 seconds, the keyboard will continue to be controlled to be in the working state, and the relevant signals of the keyboard will be monitored.
[0103] S606. Control the keyboard backlight to turn off.
[0104] At this time, first control the keyboard backlight to turn off to achieve the purpose of power saving.
[0105] S607. Monitor whether there is a click input signal on the keyboard. If so, execute step S601; if not, execute step S608.
[0106] S608. Monitor the usage status of the keyboard and determine whether the keyboard is used within 3 minutes. If so, execute step S606; if not, execute step S609.
[0107] If the keyboard is used within 3 minutes, the keyboard backlight will continue to be controlled to turn off after it is used. If the keyboard remains unused for more than 3 minutes, the keyboard will be controlled to enter a more power-saving state, such as the sleep state.
[0108] S609. Control the keyboard to enter the sleep state.
[0109] After controlling the keyboard to enter the sleep state, if the keyboard is not disconnected from the laptop, the usage status of the laptop and whether there is a click input signal on the keyboard will still be monitored, so as to make the control process of the keyboard status consistent with its actual required status, improving the accuracy of keyboard status control and the user experience.
[0110] In addition to the magnetic touch pen that can cause changes in the magnetic field around the keyboard, the magnetic material in the keyboard cover of the keyboard may also cause changes in the magnetic field around the keyboard. The keyboard cover can protect and support the keyboard, and the keyboard can also switch its status according to the status of the keyboard cover, reducing the power consumption of the keyboard while meeting the working requirements of the keyboard. SeeFigure 6 , which shows a schematic diagram of a keyboard case covering the keyboard. In Figure 6 , the keyboard case completely covers the side of the keyboard including the keys, so as to achieve the protection of the keyboard. In this state, it indicates that the user does not need to use the keyboard and can control the keyboard to enter the low-power sleep state. Refer to Figure 7 , which shows a schematic diagram of a keyboard case supporting a tablet computer connected to the keyboard. In Figure 7 In the shown scenario, the keyboard case plays a supporting role and the keyboard is in a state of being used, and it is necessary to control the keyboard to be in the working state. Refer to Figure 8 , which shows a schematic diagram of the keyboard case folded under the keyboard. In this scenario, the keyboard is also in a state of being used, and it is necessary to control the keyboard to be in the working state. However, if the state of the keyboard is determined based on the induced voltage signal detected by the sensing component of the keyboard, the states of the above-mentioned various keyboard cases may all cause the signal duration of the induced voltage signal detected by the keyboard to be greater than the target duration, that is, control the keyboard to be in the first state, such as controlling the keyboard to be in the sleep state. This will affect the actual use state of the keyboard and reduce the user experience effect.
[0111] To solve this problem, in the embodiments of the present application, a processing process for controlling the keyboard state according to the pose of the keyboard case is provided. In this processing process, the first signal includes obtaining a coverage state signal of the keyboard case relative to the keyboard. Among them, based on the first signal, controlling the keyboard to be in the target state may include the following steps:
[0112] S701: If the coverage state signal indicates that the keyboard case covers the input surface of the keyboard including the input keys, control the keyboard to be in the first state.
[0113] S702: If the coverage state signal indicates that the keyboard case does not cover the input surface, control the keyboard to be in the second state.
[0114] When the sensing component of the keyboard detects an induced voltage signal, if the signal duration of the induced voltage signal is short, in this application scenario, it may be an instantaneous operation of the user's pose of the keyboard case. At this time, the second state of the keyboard will continue to be maintained, such as controlling the keyboard to continue to be in the working state. If the signal duration of the induced voltage signal detected by the sensing component is relatively long, at this time, the state of the keyboard will be further determined based on the coverage state signal of the keyboard case relative to the keyboard. In some embodiments, it is also possible to directly determine whether the keyboard is in the use state based on the coverage state signal of the keyboard case relative to the keyboard.
[0115] Correspondingly, the light intensity change around the keyboard can be detected by a light sensor on the input surface of the keyboard including input keys, so as to determine whether the keyboard is blocked, and determine the coverage status signal of the keyboard cover relative to the keyboard. The pressure can also be detected by a pressure sensor arranged on the input surface of the keyboard. For example, when the keyboard cover covers the input surface, the pressure detected by the pressure sensor will exceed the threshold, and it is determined that the keyboard cover covers the input surface. The capacitance change when the keyboard cover approaches the keyboard can also be detected by a capacitance sensor, so as to determine whether the keyboard cover covers the input surface. In this way, based on the coverage status signal of the keyboard cover relative to the keyboard, it can be determined whether the keyboard cover covers the input surface of the keyboard including input keys, so as to determine whether the target state of the keyboard is the first state or the second state. For example, when the keyboard cover covers the input surface, as Figure 6 shown, the keyboard will be controlled to be in the first state. For example, the keyboard can be controlled to enter the sleep mode, etc.; if the keyboard cover does not cover the input surface, as Figure 7 or Figure 8 shown in the state, the keyboard can be controlled to be in the second state, such as controlling the keyboard to be in the normal working state. In this way, the influence of the mis-triggering of the keyboard state caused by different postures of the keyboard cover can be excluded, the state of the keyboard can be controlled more accurately, and the user experience effect can be improved.
[0116] In the embodiment of the present application, the problem of mis-triggering of the keyboard cover can also be solved by a sensing component with specific polarity characteristics in the keyboard. Refer to Figure 9 , which shows a schematic flow chart of a method for controlling the keyboard state based on the polarity characteristics of the sensing component provided by the embodiment of the present application. In the Figure 9 corresponding application scenario, obtaining the second signal of the keyboard includes obtaining an induced voltage signal based on the polarity characteristics of the sensing component of the keyboard. Correspondingly, the processing flow may include the following steps:
[0117] S801. Obtain an induced voltage signal based on the polarity characteristics of the sensing component of the keyboard.
[0118] S802. Determine whether the magnetic field direction of the induced voltage signal matches the target magnetic field direction corresponding to the polarity characteristics. If so, execute step S803; if not, execute step S804.
[0119] S803. Control the keyboard to be in the first state.
[0120] S804. Control the keyboard to be in the second state.
[0121] The polarity characteristic of the sensor component indicates that the sensor component is only sensitive to a single magnetic pole, such as the N pole, and has no induction to another magnetic pole (such as the S pole) or when there is no magnetic field. The sensor component is sensitive to the N pole. When the N pole of the magnet approaches the sensor component, the sensor component will output a high-level induced voltage signal, such as 3V; if the S pole is close or there is no magnet, the sensor component will output a low-level induced voltage signal, such as 0V. At this time, the magnetic field direction of the induced voltage signal detected by the sensor component matches the target magnetic field direction corresponding to the polarity characteristic, indicating that the magnetic field polarity detected by the sensor component matches the sensitive magnetic pole corresponding to its polarity characteristic, that is, at this time, the sensor component will output a high-level induced voltage signal, which will control the keyboard to be in the first state, such as controlling the keyboard to enter the standby state. Correspondingly, the magnetic field direction of the induced voltage signal detected by the sensor component does not match the target magnetic field direction corresponding to the polarity characteristic, indicating that the magnetic field polarity detected by the sensor component is opposite to the sensitive magnetic pole corresponding to its polarity characteristic. That is, the sensor component will output a low-level induced voltage signal (such as 0V) at this time, which will control the keyboard to be in the second state, such as controlling the keyboard to be in normal working state.
[0122] In this application scenario, the polarity characteristics of the magnet embedded in the edge of the keyboard cover are determined based on the polarity characteristics of the sensor component. For example, if the sensor component is sensitive to the N pole, a magnet with an N pole can be embedded in the edge of the keyboard cover. In this way, when the keyboard cover is closed, it can be precisely aligned with the unipolar sensor component of the keyboard (such as a unipolar Hall sensor), thereby triggering the keyboard to enter the first state and reducing the power consumption of the keyboard. When the keyboard cover is in Figure 7 or Figure 8 In the state shown, specific processing will be performed on the bending part of the keyboard cover, such as adding specific magnetic field shielding materials, so that the keyboard cover cannot generate the corresponding magnetic field when it is bent, that is, the sensor component cannot detect the corresponding induced voltage signal. At this time, the keyboard will be controlled to be in the second state, such as controlling the keyboard to be in a working state. Correspondingly, the keyboard cover can also be made to present a target angle when it is bent. The target angle will cause the magnet of the keyboard cover to be offset from the sensor component of the keyboard, so that the sensor component of the keyboard will not detect the induced voltage signal caused by the magnet of the keyboard cover when the keyboard cover is bent. In this way, the induced voltage signal generated by the magnet of the keyboard cover can be accurately detected according to the sensor component with a unipolar polarity characteristic, thereby improving the accuracy of controlling the keyboard state and the user experience.
[0123] In a scenario with a magnetic induction stylus, an induced voltage signal can also be obtained based on the polarity characteristics of the sensing component of the keyboard, so as to determine the target state of the keyboard. At this time, it is necessary to configure the magnet characteristics of the magnetic induction stylus according to the polarity characteristics of the sensing component of the keyboard. For example, if the sensing component pair is a unipolar component and it is sensitive to the N pole, the magnet of the magnetic induction stylus can be set to the S pole. In this way, when the magnetic induction stylus approaches the keyboard, its sensing component will not detect the induced voltage signal corresponding to this magnetic field, reducing the accidental trigger operation caused by the approach of the stylus and improving the user experience effect. Correspondingly, the magnetic bracelet can also be configured with a polarity matching the corresponding polarity characteristics of the sensing component, so that when the magnetic bracelet approaches the keyboard, no accidental trigger will occur, improving the accuracy of keyboard state control.
[0124] In an embodiment of the present application, a keyboard control system is further provided. Refer to Figure 10 , the keyboard control system may include a keyboard 901 and a control device 902. The control device may be provided on the keyboard panel where the keyboard is located, or when the keyboard is connected to a target device, the control device may be provided on the target device.
[0125] The control device 902 is configured to obtain a first signal and a second signal of the keyboard; wherein, the first signal is different from the second signal, the first signal is a signal indicating whether the keyboard is in use, and the second signal is a magnetic field induction signal of the keyboard; based on the first signal and the second signal, control the keyboard to be in a target state; the target state includes a first state and a second state, and the first power consumption of the keyboard in the first state is less than the second power consumption of the keyboard in the second state.
[0126] In one implementation, the keyboard includes a sensing component, and the sensing component is used by the user to obtain the second signal, that is, to obtain the induced voltage signal detected under the action of the magnetic field induction signal. Correspondingly, the sensing component may include a first sub-sensor and a second sub-sensor, and the relative distance between the first sub-sensor and the second sub-sensor on the keyboard panel satisfies the target distance condition.
[0127] In one implementation, the keyboard control system further includes: a keyboard cover. The keyboard cover is provided with a target structure, and when the keyboard cover is connected to the keyboard in a target pose through the target structure, the keyboard cover does not affect the target state of the keyboard. Wherein, the target pose represents the pose of the keyboard cover when it does not cover the input surface of the keyboard including the input keys. The target structure includes one of the following:
[0128] A magnet with target polarity characteristics, the target polarity characteristics are determined based on the polarity characteristics of the sensing component. For example, if the polarity characteristics of the sensing component indicate that the sensing component is sensitive to the N pole, the keyboard cover magnet can be set to the N pole on one side (such as its outer surface), and there is no magnet or magnetic field shielding on the inner layer (the surface in contact with the keyboard). In this way, when the keyboard cover is folded and raised (such as Figure 8As shown in the figure, the N pole of the magnet faces outwards away from the keyboard, and the sensor component cannot detect the N pole magnetic field of sufficient strength. Figure 6 As shown in the figure), when the N pole of the magnet is close to the sensing component of the keyboard, it will trigger the keyboard to enter the sleep state.
[0129] The target structure can also be a bent component provided with a magnetic field shielding material. For example, a high magnetic permeability material is added to the inner layer of the folded surface of the keyboard cover bent component to absorb or disperse the magnetic field of the magnet to prevent it from penetrating the sensor component. Figure 11 , which shows a schematic diagram of a keyboard cover, Figure 11 Magnetic field shielding material is added to the keyboard cover. When the keyboard cover is bent and placed under the keyboard, the magnetic field shielding material can shield the magnetic induction signal generated by the magnet at the corresponding position of the keyboard cover. Therefore, when the keyboard cover is bent and placed under the keyboard, the sensor component of the keyboard cannot detect the induced voltage signal generated by the magnetic induction signal, so that the keyboard can continue to work, thereby improving the accuracy of keyboard state control.
[0130] The target component may also be a bending component provided with a target bending angle, and the target bending angle indicates that when the keyboard cover is bent, the magnet of the keyboard cover will not cause the sensor component of the keyboard to detect the second signal. It should be noted that, in this embodiment, the target bending angle indicates that when the keyboard cover is bent, the magnet of the keyboard cover will not cause the sensor component of the keyboard to detect the second signal, which means that the sensor component cannot detect a valid induced voltage signal at the target bending angle, including failing to detect the induced voltage signal, or the detected induced voltage signal is small and can be ignored. For example, the target bending angle may cause the magnet of the keyboard cover to be offset from the vertical direction of the sensor component of the keyboard when the keyboard cover is folded, and the magnetic field cannot be effectively coupled, that is, the induced voltage signal cannot be effectively detected. For example, the magnetic field may be attenuated below the trigger threshold by setting the offset distance. It may also be as follows Figure 12 As shown, the keyboard cover is specially designed at the bending part, such as Figure 12 The width L2 of the bent portion is greater than the original designed width L1 during the bending, so that the magnets and transmission components are staggered in the Z-axis direction to avoid accidental touch, thereby improving the accuracy of keyboard status control and enhancing user experience.
[0131] It should be noted that the specific implementation of each device or component included in the keyboard control system in this embodiment can refer to the corresponding content in the previous text and will not be described in detail here.
[0132] In another embodiment of the present application, a readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the control method as described above is implemented.
[0133] In another embodiment of the present application, a keyboard is further provided, which may include:
[0134] A memory for storing an application program and data generated by the running of the application program;
[0135] A processor for executing the application program to implement the control method as described above.
[0136] It should be noted that the specific implementation of the processor in this embodiment can refer to the corresponding content in the previous text and will not be elaborated here.
[0137] In this specification, the various embodiments are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. The same or similar parts among the various embodiments can be referred to each other. For the devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple. For the relevant parts, refer to the description in the method section.
[0138] Those skilled in the art can further realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed in this article can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the composition and steps of the examples have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.
[0139] The steps of the methods or algorithms described in combination with the embodiments disclosed in this article can be directly implemented by hardware, software modules executed by a processor, or a combination of the two. The software modules can be placed in a random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the technical field.
[0140] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be obvious to those skilled in the art. The general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A control method, comprising: Obtaining a first signal and a second signal of a keyboard; wherein, the first signal is different from the second signal, the first signal represents a signal indicating whether the keyboard is in use, and the second signal represents a magnetic field induction signal of the keyboard; Based on the first signal and the second signal, controlling the keyboard to be in a target state; the target state includes a first state and a second state, and a first power consumption of the keyboard in the first state is less than a second power consumption of the keyboard in the second state.
2. According to the control method described in claim 1, the obtaining of the second signal of the keyboard includes obtaining an induced voltage signal detected by a sensing component of the keyboard under the action of a magnetic field induction signal; wherein, The controlling the keyboard to be in the target state based on the first signal and the second signal includes: If a signal duration of the induction voltage signal is less than a target duration, controlling the keyboard to be in the second state; If the signal duration of the induction voltage signal is not less than the target duration, based on the first signal, controlling the keyboard to be in the target state.
3. The control method according to claim 2, wherein the obtaining the first signal includes at least one of the following combinations: When the keyboard is connected to a target device, obtaining a first sub-signal of a user state through a collection component; When the keyboard is connected to the target device, obtaining a second sub-signal of a usage state of the target device; Obtaining a third sub-signal of a touch input of the keyboard; Wherein, The controlling the keyboard to be in the target state based on the first signal includes: Based on the first signal, determining whether a target usage state in which the keyboard is in use is satisfied; When the first signal satisfies the target usage state in which the keyboard is in use, controlling the keyboard to be in the second state; When the first signal does not satisfy the target usage state in which the keyboard is in use, controlling the keyboard to be in the first state.
4. The control method according to claim 2, wherein the obtaining an induction voltage signal of a sensing component of the keyboard includes: Obtaining a first induction voltage signal of a first sub-sensor of the sensing component and obtaining a second induction voltage signal of a second sub-sensor of the sensing component; a relative distance between the first sub-sensor and the second sub-sensor on a keyboard panel satisfies a target distance condition; wherein, when the signal duration of the induction voltage signal is not less than the target duration, based on the first signal, determining the target state of the keyboard includes: If the signal duration of the first induction voltage signal is not less than the target duration, and at the same time the signal duration of the second induction voltage signal is not less than the target duration, and the first signal does not satisfy the target usage state in which the keyboard is in use, controlling the keyboard to be in the first state; If the signal duration of the first induction voltage signal is not less than the target duration, and at the same time the signal duration of the second induction voltage signal is not less than the target duration, and the first signal satisfies the target usage state in which the keyboard is in use, controlling the keyboard to be in the second state.
5. The control method according to claim 4, wherein the controlling the keyboard to be in the second state if the signal duration of the induction voltage signal is less than the target duration includes: If the signal duration of the first induced voltage signal is less than the target duration and / or the signal duration of the second induced voltage signal is less than the target duration, control the keyboard to be in the second state.
6. The control method according to claim 1, wherein the obtaining of the second signal of the keyboard comprises: Obtain an induced voltage signal based on the polarity characteristic of the sensing component of the keyboard; wherein, based on the second signal, controlling the keyboard to be in the target state includes: If the magnetic field direction of the induced voltage signal detected by the sensing component matches the target magnetic field direction corresponding to the polarity characteristic, control the keyboard to be in the first state; If the magnetic field direction of the induced voltage signal detected by the sensing component does not match the target magnetic field direction corresponding to the polarity characteristic, control the keyboard to be in the second state.
7. According to the control method described in claim 1, the first signal includes a signal for obtaining the covering state of the keyboard cover relative to the keyboard, wherein, Based on the first signal, controlling the keyboard to be in the target state includes: If the covering state signal indicates that the keyboard cover covers the input surface of the keyboard including the input keys, control the keyboard to be in the first state; If the covering state signal indicates that the keyboard cover does not cover the input surface, control the keyboard to be in the second state.
8. A keyboard control system, comprising: Keyboard and control device; The control device is configured to obtain a first signal and a second signal of the keyboard; wherein, the first signal is different from the second signal, the first signal represents a signal indicating whether the keyboard is in use, and the second signal represents a magnetic field induction signal of the keyboard; based on the first signal and the second signal, control the keyboard to be in the target state; The target state includes a first state and a second state, and the first power consumption of the keyboard in the first state is less than the second power consumption of the keyboard in the second state.
9. The keyboard control system according to claim 8, wherein the keyboard includes a sensing component for obtaining the second signal; the sensing component includes a first sub-sensor and a second sub-sensor, and the relative distance between the first sub-sensor and the second sub-sensor on the keyboard panel satisfies a target distance condition.
10. The keyboard control system according to claim 8 further comprises: Keyboard cover; The keyboard cover is provided with a target structure, and when the keyboard cover is connected to the keyboard in a target pose through the target structure, the keyboard cover does not affect the target state of the keyboard; Wherein, the target structure includes at least one of the following: A magnet with a target polarity characteristic, the target polarity characteristic being determined based on the polarity characteristic of the sensing component; A bent member provided with a magnetic field shielding material; A bent member with a target bending angle, the target bending angle indicating that when the keyboard cover is bent, the magnet of the keyboard cover will not cause the second signal detected by the sensing component of the keyboard.