Screen-off control method, electronic equipment, protective sleeve and screen-off control device
Through the electromagnetic wave signal coupling degree detection method, the problems of false touch and inconsistency in screen off control in the magnet and Hall element solutions are solved, and more stable and accurate judgment of the opening and closing status of the protective cover is achieved, thereby improving the user experience.
Patent Information
- Application Number
- CN202510773892.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-11
- Publication Date
- 2025-09-16
AI Technical Summary
In the prior art, the screen-off control solution relying on magnets and Hall elements has the problem of failure to trigger or false touch, resulting in inconsistent judgment of the opening and closing status of the protective cover.
The electromagnetic wave signal coupling degree detection method is adopted. The electronic device transmits and receives electromagnetic wave signals of resonant frequency, and uses the resonant circuit to generate electromagnetic wave signals of equal frequency in the protective cover. The coupling degree of the electromagnetic wave signal is analyzed to determine the opening and closing state of the protective cover, thereby controlling the working state of the electronic device.
The accuracy and stability of screen-off control are improved, the sensitivity to the displacement and deformation of the protective cover is reduced, and the user experience is enhanced.
Smart Images

Figure CN120656395A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of electronic device control, and specifically relates to a screen-off control method, electronic device, protective cover, and screen-off control device. Background Art
[0002] In order to prevent the screen of the electronic device from being damaged by the external environment, users will equip the electronic device with a flip-type protective cover. For ease of use, the electronic device can identify the open and closed status of the protective cover and perform screen-off control.
[0003] In the related technology, the opening and closing status is identified by magnetic induction to trigger the screen off control: a Hall element is set in the electronic device, and a magnet is set at a position corresponding to the Hall element in the protective cover. When the protective cover is closed or opened, the magnet will be close to or away from the Hall element. Due to the Hall effect, different voltages are generated on the Hall element of the electronic device, so that the electronic device can identify the opening and closing status of the protective cover and execute the corresponding screen off control logic.
[0004] However, since most protective covers are manufactured by third-party manufacturers, the location of the magnets and the strength of the magnets vary, resulting in problems such as failure to trigger or false touches, which affects the consistency of the Hall element's judgment of the open and closed status of the protective cover. Summary of the Invention
[0005] The purpose of the embodiments of the present invention is to provide a screen-off control method, electronic device, protective cover and screen-off control device, which can solve the problem of failure to trigger or false touch in related technologies that rely on magnets and Hall elements.
[0006] In a first aspect, an embodiment of the present invention provides a screen off control method, the method comprising:
[0007] transmitting a first electromagnetic wave signal of a target frequency;
[0008] receiving a second electromagnetic wave signal emitted by a resonant circuit in a protective cover of the electronic device; the second electromagnetic wave signal is emitted by the resonant circuit after receiving the first electromagnetic wave signal of the target frequency, the target frequency being equal to the resonant frequency of the resonant circuit;
[0009] acquiring a first opening and closing state of the protective cover based on a coupling degree between the first electromagnetic wave signal and the second electromagnetic wave signal;
[0010] The working state of the electronic device is controlled according to the first opening and closing state of the protective cover.
[0011] In a second aspect, an embodiment of the present invention provides an electronic device for executing the screen off control method described in the first aspect. The electronic device includes:
[0012] Transmitter: used for transmitting a first electromagnetic wave signal of a target frequency;
[0013] A receiver configured to receive a second electromagnetic wave signal emitted by a resonant circuit in the protective cover of the electronic device; the second electromagnetic wave signal is emitted by the resonant circuit after receiving the first electromagnetic wave signal of the target frequency, wherein the target frequency is equal to the resonant frequency of the resonant circuit;
[0014] a processor, configured to obtain a first opening and closing state of the protective cover based on the first electromagnetic wave signal and the second electromagnetic wave signal;
[0015] The processor is further configured to control an operating state of the electronic device according to the first opening and closing state of the protective cover.
[0016] In a third aspect, an embodiment of the present invention provides a protective cover, wherein the protective cover is configured with a resonant circuit;
[0017] The resonant circuit is used to send out a second electromagnetic wave signal of the target frequency after receiving a first electromagnetic wave signal of the target frequency; the target frequency is equal to the resonant frequency of the resonant circuit;
[0018] The first electromagnetic wave signal and the second electromagnetic wave signal are used to obtain a first opening and closing state of the protective cover.
[0019] In a fourth aspect, an embodiment of the present invention provides a screen off control device, the device comprising:
[0020] Transmitter module: used for transmitting a first electromagnetic wave signal of a target frequency;
[0021] A receiving module is configured to receive a second electromagnetic wave signal emitted by a resonant circuit in the protective cover of the electronic device; the second electromagnetic wave signal is emitted by the resonant circuit after receiving the first electromagnetic wave signal of the target frequency, wherein the target frequency is equal to the resonant frequency of the resonant circuit;
[0022] A state acquisition module: configured to acquire a first opening and closing state of the protective cover based on the first electromagnetic wave signal and the second electromagnetic wave signal;
[0023] A control execution module is used to control the working state of the electronic device according to the first opening and closing state of the protective cover.
[0024] In an embodiment of the present invention, an electronic device broadcasts a first electromagnetic wave signal, and a resonant circuit is configured in the protective cover of the electronic device. After receiving the first electromagnetic wave signal with the same resonant frequency, the resonant circuit resonates and emits a second electromagnetic wave signal with the same resonant frequency. After receiving the second electromagnetic wave signal, the electronic device analyzes the degree of coupling between the first electromagnetic wave signal and the second electromagnetic wave signal to deduce the distance between the protective cover and the electronic device, thereby obtaining the open and closed state of the protective cover relative to the electronic device, further controlling the operating state of the electronic device screen, and ensuring the stability of the screen off control trigger. Because electromagnetic waves cover a wider space, during the electromagnetic wave coupling process, the change in the coupling degree is less sensitive to the electromagnetic wave emission position than the Hall effect, where the Hall element voltage change is less sensitive to the relative position of the Hall element and the magnet. Therefore, compared with related technologies, this solution has a greater tolerance for displacement and deformation of the protective cover, is less likely to cause false touches of the screen operating state control, ensures the accuracy of the screen off control, and improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 This is a flowchart of a method for controlling a screen off provided by an embodiment of the present invention;
[0026] Figure 2 It is a structural schematic diagram of a protective cover and an electronic device in the related art;
[0027] Figure 3 This is a schematic diagram of the relative position relationship between a protective cover and an electronic device in the related art;
[0028] Figure 4 is a schematic structural diagram of a resonant circuit provided by an embodiment of the present invention;
[0029] Figure 5 is a flowchart of another screen off control method provided by an embodiment of the present invention;
[0030] Figure 6 is a block diagram of an electronic device provided by an embodiment of the present invention;
[0031] Figure 7 is a block diagram of a protective cover provided by an embodiment of the present invention;
[0032] Figure 8 This is a flowchart of steps for detecting the opening and closing status of a protective cover provided by an embodiment of the present invention;
[0033] Figure 9 This is a block diagram of a screen off control device provided by an embodiment of the present invention;
[0034] Figure 10 is a schematic structural diagram of another electronic device provided by an embodiment of the present invention;
[0035] Figure 11 It is a schematic diagram of the hardware structure of another electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0036] The following will be combined with the accompanying drawings in the embodiments of the present invention to clearly describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of the present invention.
[0037] The terms "first," "second," and the like in the specification and claims of the present invention are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of the present invention can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects. For example, the first object can be one or more. In addition, the term "and / or" in the specification and claims indicates at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.
[0038] The frequency adjustment method provided by the embodiment of the present invention is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios.
[0039] like Figure 1 As shown, Figure 1 This is a flowchart of a screen off control method provided by an embodiment of the present invention, comprising the following steps:
[0040] Step 101: transmit a first electromagnetic wave signal of a target frequency.
[0041] The screen of an electronic device is a key component for realizing human-computer interaction. With the popularity of portable electronic devices such as tablets and mobile phones, more and more users prefer to equip their electronic devices with protective cases. The side of the protective case facing the screen of the electronic device is movable. When the user uses the electronic device, the protective case can be opened to interact with the electronic device through the screen. When the user pauses using the electronic device, the protective case can be closed so that the protective case covers the screen of the electronic device, thereby achieving a protective effect. Based on this, the electronic device is configured to detect the opening and closing status of the protective case, and perform screen off control according to the opening and closing status: when the user opens the protective case, the electronic device automatically turns on the screen, and when the user closes the protective case, the electronic device automatically turns off the screen. On the one hand, it can reduce the user's active screen lighting operation steps and improve the user experience. On the other hand, it can instantly turn off the screen, reduce power consumption, and improve the battery life of the electronic device.
[0042] In the related art, the opening and closing state of the protective cover is generally detected by magnetic induction to trigger the screen off control; Figure 2 As shown, Figure 2 This is a schematic diagram of the structure of a protective cover and electronic device in the related art; a Hall element is set in the electronic device, and a magnet is set at a corresponding position on the protective cover. When the magnet in the protective cover approaches or moves away from the Hall element in the electronic device along a preset trajectory, different voltages are generated on the Hall element due to the Hall effect. By detecting these voltages, the electronic device can determine the open or closed state of the protective cover. However, in practice, the applicant found that the above magnetic induction solution has the following problems:
[0043] Since most protective covers are made of soft materials, when the protective cover is closed, the protective cover will shift relative to the screen, causing the relative position of the Hall element and the magnet to shift, which will change the magnetic induction intensity of the Hall element, thereby affecting the voltage generated by the Hall effect, and further affecting the detection and judgment of the opening and closing status of the protective cover. Figure 3 As shown, Figure 3 The paper illustrates the relationship between a protective cover and an electronic device when the cover is closed. When the cover is closed, if the magnet and the Hall element are offset far enough, the voltage generated by the Hall element will be small or even undetectable, preventing the screen off control from being triggered. Furthermore, since protective covers are often manufactured by third-party manufacturers independent of electronic device manufacturers and lack unified standards, there are variations in the placement of the magnets within the cover. For example, the placement of the magnets within the cover may not correspond to the Hall element within the electronic device, resulting in an offset between the relative positions of the magnets and the Hall element when the cover is closed, affecting the determination of the cover's open or closed state. Alternatively, the strong magnetic force of the magnets within the cover may generate a high voltage across the Hall element, triggering the screen off when the cover is not closed and causing false touches. Furthermore, since other digital accessories in electronic devices, such as headphones and electronic pens, also contain magnets, these accessories can also cause false touches when they are close to the Hall element. In summary, magnetic induction solutions are subject to false touches or non-triggering issues due to the fact that most protective covers are manufactured by third parties and made of soft materials.
[0044] In order to solve the above problems, the present invention provides a screen off control method, an electronic device, a protective cover and a screen off control device; the present invention first provides a screen off control method, which is applied to an electronic device, and the steps of the method first include: emitting a first electromagnetic wave signal of a target frequency.
[0045] The present invention triggers screen off control by detecting electromagnetic wave signals; first, a first electromagnetic wave signal of a target frequency is continuously emitted outward by an electronic device; at one end of the electronic device, an electromagnetic wave transmitter can be set in the body of the electronic device to emit the first electromagnetic wave signal, for example, an oscillation circuit drives a miniature high-frequency inductor coil to generate an alternating electromagnetic field, thereby generating the first electromagnetic wave signal.
[0046] For example, the target frequency may be any value between 1 and 10 MHz.
[0047] Step 102: Receive a second electromagnetic wave signal of a target frequency emitted by a resonant circuit in a protective cover of the electronic device; the second electromagnetic wave signal is emitted by the resonant circuit after receiving the first electromagnetic wave signal of the target frequency, and the target frequency is equal to the resonant frequency of the resonant circuit.
[0048] A passive resonant circuit is implanted in the movable part of the protective cover to sense the first electromagnetic wave signal, and after sensing the first electromagnetic wave signal, a second electromagnetic wave signal is emitted outwards. Figure 4 , Figure 4 It shows a basic inductor-capacitor resonant circuit (LC resonant circuit), which is composed of an inductor component and a capacitor component connected in parallel. The inductor component can be used to sense electromagnetic wave signals outside the resonant circuit; the energy of the external electromagnetic wave signal received by the inductor component generates current in the resonant circuit; in the above process, the change of current causes electromagnetic oscillation of the inductor component, causing the inductor component to emit electromagnetic wave signals outward; when the frequency of the electromagnetic wave signal received from the outside by the resonant circuit is equal to its resonant frequency, the resonant circuit will resonate, making the resonant circuit as a whole resistive. At this time, in the resonant circuit, the electric field energy in the capacitor component and the magnetic field energy in the inductor component are converted into each other, one increasing and the other decreasing, compensating each other, and the current change in the resonant circuit makes the frequency of the electromagnetic wave signal generated by the inductor component equal to the resonant frequency. Figure 3 The resonant frequency of the LC resonant circuit shown can be obtained by f=1 / (2π√(LC)), where f represents the resonant frequency, L represents the inductance of the inductor component, and C represents the capacitance of the capacitor component.
[0049] Therefore, when the resonant circuit in the protective cover receives a first electromagnetic wave signal equal to its resonant frequency, it will send out a second electromagnetic wave signal equal to its resonant frequency; the electronic device is configured to receive the second electromagnetic wave signal, and the second electromagnetic wave signal can be received by setting an electromagnetic wave receiver in the body of the electronic device, for example, by receiving the second electromagnetic wave signal through an inductor coil.
[0050] Step 103: Acquire a first opening and closing state of the protective cover based on the coupling degree between the first electromagnetic wave signal and the second electromagnetic wave signal.
[0051] After the electronic device receives the second electromagnetic wave signal, the coupling degree between the first electromagnetic wave signal and the second electromagnetic wave signal is detected (since electromagnetic waves are a form of motion of their corresponding electromagnetic fields, this step can also be expressed as detecting the coupling degree between the electromagnetic field corresponding to the first electromagnetic wave signal and the electromagnetic field corresponding to the second electromagnetic wave signal). Based on the strength of the coupling degree, the distance between the protective cover and the electronic device is judged, thereby further judging whether the protective cover is in an open state or a closed state relative to the electronic device, that is, the first open-closed state.
[0052] For example, the coupling degree between the first electromagnetic wave signal and the second electromagnetic wave signal can be characterized by the electromagnetic coupling coefficient between the first electromagnetic wave signal and the second electromagnetic wave signal, and the coupling degree between the first electromagnetic wave signal and the second electromagnetic wave signal can be determined by the magnitude of the electromagnetic coupling coefficient.
[0053] The stronger the coupling degree between the first electromagnetic wave signal and the second electromagnetic wave signal, the closer the distance between the electronic device and the protective cover is. The weaker the coupling degree between the first electromagnetic wave signal and the second electromagnetic wave signal, the farther the distance between the electronic device and the protective cover is. For example, if the coupling degree between the first electromagnetic wave signal and the second electromagnetic wave signal is high, it indicates that the distance between the protective cover and the electronic device is close, and the protective cover is more likely to be in a covered state.
[0054] Step 104: Control the operating state of the electronic device according to the first opening and closing state of the protective cover.
[0055] After obtaining the first covering state, the working state of the electronic device can be controlled accordingly according to the first opening and closing state of the protective cover, including the control of the working state of the screen of the electronic device, thereby realizing screen-off control of the electronic device.
[0056] For example, when the first opening and closing state represents that the protective cover is in an open state, the screen of the electronic device can be controlled to turn on, and when the first opening and closing state represents that the protective cover is in a closed state, the screen of the electronic device can be controlled to turn off.
[0057] In terms of protective case standardization, electronic device manufacturers only need to publish a target frequency. Third-party protective case manufacturers can design, produce, or purchase resonant circuits based on the target frequency, ensuring that the resonant circuit's resonant frequency matches the target frequency published by the electronic device manufacturer. This ensures that the electronic device is compatible with the protective case produced, and the protective case can trigger the electronic device's screen-off control. This also avoids the problem of the original magnetic induction solution, where different protective case manufacturers use different magnet settings, resulting in the protective case failing to trigger or accidentally triggering the electronic device's screen-off control, and solves the compatibility issue of protective cases from third-party protective case manufacturers.
[0058] In an embodiment of the present invention, an electronic device broadcasts a first electromagnetic wave signal, and a resonant circuit is configured in a protective cover of the electronic device. After receiving the first electromagnetic wave signal having the same resonant frequency as the resonant circuit, the resonant circuit resonates and emits a second electromagnetic wave signal having the same resonant frequency. After receiving the second electromagnetic wave signal, the electronic device analyzes the degree of coupling between the first electromagnetic wave signal and the second electromagnetic wave signal to deduce the distance between the protective cover and the electronic device, thereby obtaining the open and closed state of the protective cover relative to the electronic device, further controlling the operating state of the electronic device screen, and ensuring the stability of the screen off control trigger. Because electromagnetic waves cover a wider range of space than the magnetic field of a magnet, during the electromagnetic wave coupling process, the change in the degree of coupling is less sensitive to the electromagnetic wave emission position than the Hall effect, where the Hall element voltage change is less sensitive to the relative position of the Hall element and the magnet. Therefore, compared with related technologies, this solution has a greater tolerance for displacement and deformation of the protective cover, is less likely to cause false touches of the screen operating state control, ensures the accuracy of the screen off control, and improves the user experience.
[0059] Reference Figure 5 , Figure 5 A flowchart of another method for controlling the screen off provided by an embodiment of the present invention is shown in FIG. Figure 5 As shown, the method includes:
[0060] Step 201: Transmit a first electromagnetic wave signal of a target frequency.
[0061] This step may refer to the above step 101 and will not be described again here.
[0062] Step 202: Based on the background interference recognition model, identify a noise electromagnetic wave signal from the third electromagnetic wave signal received by the electronic device.
[0063] To reduce interference from ambient electromagnetic signals on the electromagnetic waves in this solution, the present invention also filters a third electromagnetic wave signal received by the electronic device using a background interference recognition model. The third electromagnetic wave signal can be the electromagnetic wave signal currently being received by the electronic device. By identifying the currently received electromagnetic wave signal and filtering out noise electromagnetic wave signals unrelated to the second electromagnetic wave signal, the second electromagnetic wave signal can be obtained.
[0064] Optionally, the background interference recognition model in step 202 can be obtained by training through the following sub-steps:
[0065] Sub-step 2021: output second guidance information; the second guidance information is used to instruct the user to trigger an execution instruction for a background data collection operation when the electronic device is not equipped with the protective cover.
[0066] Sub-step 2022: In response to the background data collection operation, record the third electromagnetic wave signal received by the electronic device, and add a corresponding second tag to the third electromagnetic wave signal; the second tag includes a noise electromagnetic wave signal;
[0067] Sub-step 2023: Use the correspondence between the third electromagnetic wave signal and the second label as training data, and train the second initial model to obtain a background interference recognition model.
[0068] This solution also provides a training method for the background interference recognition model in the above step 202, and its step flow is shown in the above sub-steps 2021 to 2023. The electronic device first sends a second guidance message to instruct the user to trigger the execution instruction of the background data collection operation in the electronic device when the electronic device is not equipped with a protective cover. During the execution of the background data collection instruction, the electronic device collects the third electromagnetic wave signal received by the electronic device. Since the electronic device is not equipped with a protective cover with a resonant circuit at this time, the third electromagnetic wave signal does not include the second electromagnetic wave signal. The third electromagnetic wave signal at this time can be regarded as a noise electromagnetic wave signal. Based on this, the electromagnetic wave signal received by the electronic device at this time is marked as a noise electromagnetic wave signal, that is, a second label is added to the third electromagnetic wave signal, and the second label is used to represent the noise electromagnetic wave signal. The correspondence between the third electromagnetic wave signal and the second label is used as training data to train the second initial model, and a background interference recognition model can be obtained.
[0069] Exemplarily, the second guidance information may include audio-visual information, that is, instructing the user to perform corresponding operations through sound prompts and / or screen pop-up prompts.
[0070] Exemplarily, the second guidance information can guide the user to leave the electronic device still for a target period of time after triggering the background data collection operation of the electronic device, so that the electronic device can collect and label electromagnetic wave signal data sufficient to train and obtain a background interference recognition model during the background data collection operation.
[0071] Exemplarily, the second initial model for training the background interference recognition model may be a Long Short Term Memory (LSTM) model.
[0072] Step 203: Delete the noise electromagnetic wave signal from the third electromagnetic wave signal to obtain the second electromagnetic wave signal.
[0073] The background interference recognition model can be used to identify noise-drying electromagnetic wave signals. After the electronic device is equipped with a protective case, the noise-drying electromagnetic wave signals are removed from the third electromagnetic wave signal received by the electronic device to obtain the second electromagnetic wave signal. The receiver of the electronic device can be configured with a signal processing circuit including a bandpass filter to remove the noise-drying electromagnetic wave signals from the received third electromagnetic wave signal.
[0074] Step 204: Obtain the electromagnetic coupling coefficient between the first electromagnetic wave signal and the second electromagnetic wave signal.
[0075] The degree of coupling between the first electromagnetic wave signal and the second electromagnetic wave signal can be represented by an electromagnetic coupling coefficient. A larger electromagnetic coupling coefficient indicates a higher degree of coupling between the first electromagnetic wave signal and the second electromagnetic wave signal, and a smaller electromagnetic coupling coefficient indicates a lower degree of coupling between the first electromagnetic wave signal and the second electromagnetic wave signal.
[0076] Optionally, step 204 may specifically include:
[0077] Sub-step 2041: obtaining a first amplitude value of the first electromagnetic wave signal and a second amplitude value of the second electromagnetic wave signal respectively;
[0078] Sub-step 2042: Determine the ratio of the second amplitude value to the first amplitude value as the electromagnetic coupling coefficient.
[0079] Sub-steps 2041 and 2042 describe a method for obtaining an electromagnetic coupling coefficient, namely, obtaining a first amplitude value of the first electromagnetic wave signal and a second amplitude value of the second electromagnetic wave signal, and taking the ratio of the second amplitude value to the first amplitude value as the electromagnetic coupling coefficient between the first electromagnetic wave signal and the second electromagnetic wave signal.
[0080] The first amplitude value of the first electromagnetic wave signal may be the largest amplitude value among the first electromagnetic wave signals. Since the first electromagnetic wave signal may be emitted by an oscillation circuit driving an inductor coil, the first amplitude value of the first electromagnetic wave signal may be calculated by detecting the electrical signal input into the inductor coil by the oscillation circuit. The second amplitude value of the second electromagnetic wave signal may be the largest amplitude value among the second electromagnetic wave signals. Since the second electromagnetic wave signal needs to be converted into a digital signal through an analog-to-digital converter before further processing, the second amplitude value of the second electromagnetic wave signal may be extracted through a digital demodulation algorithm.
[0081] For example, the first amplitude value is V transmitted , the second amplitude value is V received , then the electromagnetic coupling coefficient between the first electromagnetic wave signal and the second electromagnetic wave signal K = V received ÷V transmittedAfter obtaining the electromagnetic coupling coefficient between the first electromagnetic wave signal and the second electromagnetic wave signal, the first opening and closing state of the protective cover can be confirmed based on the electromagnetic coupling coefficient.
[0082] Step 205: When the electromagnetic coupling coefficient is greater than or equal to a first threshold, confirm that the first opening and closing state of the protective cover is a closed state; when the electromagnetic coupling coefficient is less than the first threshold, confirm that the first opening and closing state of the protective cover is an open state.
[0083] By comparing the first threshold value with the first opening / closing state of the protective cover, the first opening / closing state of the protective cover can be confirmed. The first threshold value can be used to represent the degree of coupling between the first electromagnetic wave signal and the second electromagnetic wave signal when the protective cover is in the closed state. When the electromagnetic coupling coefficient is greater than or equal to the first threshold value, it indicates that the current degree of coupling between the first electromagnetic wave signal and the second electromagnetic wave signal is strong, that is, the distance between the signal source (resonant circuit) in the protective cover and the receiving end in the electronic device is close, and the protective cover is in the closed state. Conversely, when the electromagnetic coupling coefficient is less than the first threshold value, it indicates that the current degree of coupling between the first electromagnetic wave signal and the second electromagnetic wave signal is weak, that is, the distance between the signal source in the protective cover and the receiving end in the electronic device is far, and the protective cover is in the open state.
[0084] Step 206: When the first opening and closing state is the open state, control the screen of the electronic device to turn on;
[0085] When the electromagnetic coupling coefficient characterizes that the protective cover is in the open state, that is, when the first opening and closing state is the open state, the screen of the electronic device is controlled to light up, thereby realizing the control of lighting up the screen of the electronic device.
[0086] Step 207: When the first opening and closing state is a covered state, a second opening and closing state is obtained according to the current trigger information of the electronic device and the opening and closing state correction model, and based on the first opening and closing state and the second opening and closing state, the working state of the screen of the electronic device is controlled.
[0087] When the electromagnetic coupling coefficient indicates that the protective cover is in the closed state, i.e., the first opening and closing state is the closed state, the opening and closing state calibration model can be used to further confirm the first opening and closing state to rule out abnormal closing of the protective cover. By inputting trigger information from the current electronic device, the opening and closing state calibration model outputs the second opening and closing state of the protective cover. Based on the first opening and closing state confirmed by the electromagnetic coupling coefficient and the second opening and closing state output by the opening and closing state calibration model, a more precise screen-off control process can be achieved.
[0088] The trigger information includes the current state information of the electronic device, such as the inclination information of the electronic device, the ambient light information received by the electronic device, etc. Through the opening and closing state correction model, it can be verified whether the state information of the electronic device is consistent with the state information of the protective cover in the normal closed state when the electromagnetic coupling coefficient characterizes that the protective cover is in the closed state. For example, it can be verified whether the placement inclination angle of the electronic device is consistent with the posture of the protective cover when it is in the closed state, or whether the ambient light intensity received by the electronic device is consistent with the ambient light intensity received by the electronic device when the protective cover is in the closed state.
[0089] The second opening and closing state output by the opening and closing state correction model can be expressed by the probability that the protective cover is in the covering state. When the probability of the covering state output by the opening and closing state correction model is 1 or greater than or equal to the set threshold, the second opening and closing state predicted by the opening and closing state correction model can be determined to be the covering state. When the probability of the covering state output by the opening and closing state correction model is 0 or lower than the set threshold, the second opening and closing state output by the opening and closing state correction model can be determined to be the open state.
[0090] It is understandable that in other embodiments, the second opening and closing state can be represented by the probability of the protective cover being in the open state. The probability Ja of the protective cover being in the open state and the probability Jb of the protective cover being in the closed state satisfy Ja+Jb=1.
[0091] Optionally, the second opening and closing state includes a probability that the protective cover is in the closed state, and the probability of the closed state has a first weight. Step 207 may include:
[0092] Sub-step 2071: acquiring an electromagnetic coupling coefficient between the first electromagnetic wave signal and the second electromagnetic wave signal when the first opening and closing state is the closed state; the electromagnetic coupling coefficient has a second weight;
[0093] Sub-step 2072: Obtain a weighted sum of the first open-closed state and the second open-closed state according to the second weight of the electromagnetic coupling coefficient and the first weight of the probability of the closed state;
[0094] Sub-step 2073: If the weighted sum is greater than or equal to a second threshold, confirm that the protective cover is in a closed state, and control the screen of the electronic device to turn off;
[0095] Sub-step 2074: When the weighted sum is less than the second threshold, confirm that the protective cover is in the open state, and control the screen of the electronic device to turn on.
[0096] After obtaining the probability that the protective cover is in the closed state output by the opening and closing state correction model, a weighted summation can be performed in combination with the electromagnetic coupling coefficient to correct the first opening and closing state through the weighted result, and the screen of the electronic device can be controlled to be off based on the correction result.
[0097] Substeps 2071 to 2074 describe the correction process for the first open / close state: the first open / close state is characterized by the electromagnetic coupling coefficient, and the second open / close state is characterized by the probability that the protective cover is in the closed state. Based on their respective weights (i.e., the second weight of the electromagnetic coupling coefficient) and the first weight of the probability of the closed state, a weighted sum of the first and second open / close states is performed to make a final decision. For example, if the weight of the first open / close state is 0.6, the weight of the second open / close state is 0.4, the electromagnetic coupling coefficient between the first and second electromagnetic wave signals is K1, and the frequency J1 of the protective cover in the closed state output by the open / close state correction model is J1, then the final weighted sum is A = 0.6 × K1 + 0.4 × J1.
[0098] After the weighted sum is obtained, the weighted sum may be compared with a second threshold.
[0099] When the weighted sum is less than the second threshold, it indicates that there is a large deviation between the first opening and closing state and the second opening and closing state. At this time, although the electromagnetic coupling coefficient is in a higher range (greater than the first threshold), the trigger information of the electronic device indicates that the current state of the electronic device is very different from the state of the electronic device when the protective cover is in a normal covering state. At this time, the protective cover may not be covered normally (for example, when the protective cover is covered, the user's hand reaches into the space between the protective cover and the screen of the electronic device). At this time, the user still needs to continue to use the electronic device, and the conclusion of the first opening and closing state is wrong. For this reason, it is necessary to control the screen of the electronic device to continue to be on.
[0100] Exemplarily, the second threshold is 0.75. When the weighted sum A1 is less than 0.75, the screen of the electronic device is controlled to be bright.
[0101] When the weighted sum is greater than or equal to the second threshold, it indicates that the deviation between the first opening and closing state and the second opening and closing state is small. At this time, the trigger information of the electronic device indicates that the current state of the electronic device is highly consistent with the state of the electronic device when the protective cover is in a normal covering state. The protective cover is covered normally, and the result of the first opening and closing state is correct. Therefore, the screen of the electronic device is controlled to perform a screen-off operation.
[0102] Exemplarily, the second threshold is 0.75, and when the weighted sum A2 ≥ 0.75, the screen of the electronic device is controlled to turn off and enter sleep mode.
[0103] Optionally, the second weight of the electromagnetic coupling coefficient is greater than the first weight of the probability of the covering state.
[0104] When configuring the weights for the first open / closed state and the second open / closed state, the weight for the first open / closed state can be configured to be greater than the weight for the second open / closed state, i.e., the second weight for the electromagnetic coupling coefficient is greater than the first weight for the probability of the closed state (understandably, the probability of the closed state here refers to the probability that the protective cover is in the closed state). When making the final decision, configuring the weight on the hardware side (i.e., the electromagnetic coupling coefficient) to be higher than the weight on the model side (i.e., the output of the open / closed state correction model) can ensure that the decision value obtained from the final weighted summation is more consistent with the current state of the electronic device, thereby improving the accuracy of the correction for the first open / closed state.
[0105] Optionally, the opening and closing state correction model in step 207 can be obtained by training through the following sub-steps:
[0106] Sub-step 2075: outputting first guidance information; the first guidance information is used to instruct the user to perform a standardized opening and closing action of the protective cover;
[0107] Sub-step 2076: When the electromagnetic coupling coefficient changes, collecting trigger information of the electronic device, and adding a corresponding first tag to each of the trigger information; the first tag includes the closed state or the open state;
[0108] Sub-step 2077: Use the correspondence between the trigger information and the first label as training data, and train the first initial model to obtain an opening and closing state correction model.
[0109] This solution also provides a training method for the opening and closing state model in the above step 207, and its step flow is shown in the above sub-steps 2075-sub-step 2077. The electronic device first sends a first guidance message to instruct the user to perform a standardized opening and closing action of the protective cover; the standardized opening and closing action includes covering the protective cover and opening the protective cover;. During the process of the user performing the standardized opening and closing action of the protective cover, the electronic device will detect a gradual change in the electromagnetic coupling coefficient. During the time period when the electromagnetic coupling coefficient changes, the trigger information of the electronic device is collected, and a first label is added to the trigger information respectively, and the first label includes a covering state or an open state; by using the correspondence between the trigger information and the first label as training data, the first initial model is trained to obtain an opening and closing state correction model.
[0110] Exemplarily, the first guidance information may include audio-visual information, that is, instructing the user to perform corresponding operations through sound prompts and / or screen pop-up prompts.
[0111] Exemplarily, the first guidance information can guide the user to open and close the protective cover continuously for a target number of times, with a target time interval each time; when the electronic device detects that the electromagnetic coupling coefficient changes following the target time and target number of times, the electronic device records the changes in the trigger information in the process; the electronic device can control the screen to turn on or off according to a preset rule, and in the process of switching between turning on and off the screen, guide the user to perform an opening and closing action of the protective cover, and reverse-label the recorded trigger information by turning on or off the screen, such as when the screen is on, marking the collected trigger information as the open state, and when the screen is off, marking the collected trigger information as the closed state.
[0112] Exemplarily, the first initial model for training the opening and closing state correction model may be a Long Short Term Memory (LSTM) model.
[0113] Optionally, the trigger information includes at least one of the electromagnetic coupling coefficient, the posture information of the electronic device, and the ambient light information received by the electronic device; the trigger information has a corresponding trigger time, and the trigger information in the training data is arranged in the order of the trigger time.
[0114] The trigger information mainly includes the electromagnetic coupling coefficient, the posture information of the electronic device, and the ambient light information received by the electronic device. The electromagnetic coupling coefficient will change with the execution of the standardized opening and closing action. It is understandable that the value of the electromagnetic coupling coefficient will be different when the protective cover changes between the open state and the closed state. The posture information of the electronic device mainly includes the inclination angle of the electronic device. The gyroscope inside the electronic device can obtain the angle of the electronic device relative to the target axis, that is, the inclination angle of the electronic device. It is understandable that the inclination angle of the electronic device will change during the process of closing or opening the protective cover. The ambient light information received by the electronic device mainly includes the ambient light intensity received by the electronic device (the light intensity received by the screen of the electronic device). It is understandable that the ambient light intensity received by the screen of the electronic device is different when the protective cover is in the open state and the closed state. For example, when the protective cover is in the open state and the electronic device is located indoors, the ambient light intensity received by the screen of the electronic device is about 100 lux, while when the protective cover is in the closed state, the ambient light intensity received by the screen of the electronic device is less than 5 lux.
[0115] The trigger information has a corresponding trigger time, and the trigger information in the training data is arranged in the order of the trigger time, that is, the relationship between the time sequence of the trigger information and the first label is used as the training data.
[0116] In addition, in terms of protective case standardization, this solution also builds a set of third-party protective case standardization processes, including
[0117] Step Q1: Build a cloud database;
[0118] The cloud database uses the parameters of the resonant circuit to identify third-party protective cases. For example, the resonant frequency and quality factor of the resonant circuit are used to identify third-party protective cases and compatible electronic devices. This allows users to query the cloud database based on the resonant frequency to obtain other detailed information about the third-party protective case (such as manufacturer, model, and other parameters).
[0119] Step Q2: dynamic learning on the user side;
[0120] Due to differences in production process levels among third-party manufacturers, the resonant frequencies of some resonant circuits produced according to the published target frequencies may differ from the target frequencies. These resonant frequencies with errors are not recorded in the cloud database.
[0121] When the frequency of the second electromagnetic wave signal emitted by the protective cover and received by the electronic device does not match any resonant frequency in the cloud database, but the difference between the frequency of the second electromagnetic wave signal and a target resonant frequency recorded in the cloud database is within the target error frequency range, a third guidance information can be sent by the electronic device to instruct the user to perform a standardized opening and closing action. When a change in the electromagnetic coupling coefficient is detected, the trigger information of the electronic device matching the current protective cover is recorded, and these trigger information are used as the collected data for training the opening and closing state correction model, and the corresponding first label is added. The opening and closing state model is used to output the second opening and closing state of the protective cover with the resonant frequency of the resonant circuit being the target resonant frequency; the protective cover will be uploaded to the sub-database that records the protective cover corresponding to the target resonant frequency for user query.
[0122] Through the above steps, the characteristics of these resonant circuits with errors are incorporated into the training data of the open-close state correction model, so that the open-close state correction model can identify the protective cover configured with the resonant circuit with errors, thereby improving the compatibility of the electronic device with the third protective cover.
[0123] In an embodiment of the present invention, an electronic device broadcasts a first electromagnetic wave signal, and a resonant circuit is configured in the protective cover of the electronic device. After receiving the first electromagnetic wave signal with the same resonant frequency, the resonant circuit resonates and emits a second electromagnetic wave signal with the same resonant frequency. After receiving the second electromagnetic wave signal, the electronic device analyzes the degree of coupling between the first electromagnetic wave signal and the second electromagnetic wave signal to deduce the distance between the protective cover and the electronic device, thereby obtaining the open and closed state of the protective cover relative to the electronic device, further controlling the operating state of the electronic device screen, and ensuring the stability of the screen off control trigger. Because electromagnetic waves cover a wider space, during the electromagnetic wave coupling process, the change in the coupling degree is less sensitive to the electromagnetic wave emission position than the Hall effect, where the Hall element voltage change is less sensitive to the relative position of the Hall element and the magnet. Therefore, compared with related technologies, this solution has a greater tolerance for displacement and deformation of the protective cover, is less likely to cause false touches of the screen operating state control, ensures the accuracy of the screen off control, and improves the user experience.
[0124] In a second aspect, the present invention provides an electronic device for executing the screen off control method provided in the first aspect of the present invention, such as Figure 6 As shown, Figure 6 This is a block diagram of an electronic device 30 provided in an embodiment of the present invention. The electronic device 30 may include:
[0125] Transmitter 301: used to transmit a first electromagnetic wave signal of a target frequency;
[0126] Receiver 302: configured to receive a second electromagnetic wave signal emitted by a resonant circuit in the protective cover of the electronic device; the second electromagnetic wave signal is emitted by the resonant circuit after receiving the first electromagnetic wave signal, and the target frequency is equal to the resonant frequency of the resonant circuit;
[0127] The processor 303 is configured to obtain a first opening and closing state of the protective cover based on the first electromagnetic wave signal and the second electromagnetic wave signal;
[0128] The processor 303 is further configured to control the working state of the screen of the electronic device according to the first opening and closing state of the protective cover.
[0129] The transmitter 301 can be configured as a miniature inductor coil with a diameter of 5-10 mm and an inductance of 0.5-2 μH; it is driven by an oscillating circuit that outputs an electrical signal of a specific frequency to generate a first electromagnetic wave signal of a target frequency.
[0130] The receiver 302 may be configured as another miniature inductive coil, which is arranged in an orthogonal direction to the inductive coil of the transmitter 301 to reduce crosstalk between the transmitter 301 and the receiver 302 .
[0131] The processor 303 can be configured as multiple signal processing circuits. On the one hand, it processes the electrical signal generated when the transmitter 301 transmits the first electromagnetic wave signal to obtain relevant information of the first electromagnetic wave signal. On the other hand, it processes the second electromagnetic wave signal received by the receiver 302 through components such as a bandpass filter, a low-noise amplifier, and an analog-to-digital converter to obtain relevant information of the second electromagnetic wave signal.
[0132] The electronic device 30 can be implemented as follows Figure 1 or Figure 5 To avoid repetition, the various processes implemented in the method embodiment are not described here.
[0133] The electronic device may be a terminal or other device other than a terminal. For example, the electronic device may be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a mobile internet device (MID), an augmented reality (AR) / virtual reality (VR) device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), any electronic device equipped with a screen and capable of being equipped with a protective case, and the embodiments of the present invention do not specifically limit this.
[0134] In a third aspect, an embodiment of the present invention provides a protective cover, which is equipped on the electronic device described in the second aspect. Figure 7 As shown, Figure 7 This is a block diagram of a protective cover 40 provided in an embodiment of the present invention. The protective cover 40 is configured with a resonant circuit 401; the resonant circuit is used to send a second electromagnetic wave signal of the target frequency after receiving a first electromagnetic wave signal of the target frequency; the target frequency is equal to the resonant frequency of the resonant circuit; the first electromagnetic wave signal and the second electromagnetic wave signal are used to obtain a first open and closed state of the protective cover.
[0135] The material of the protective cover includes but is not limited to leather, rubber, plastic, etc.; the size of the protective cover matches the electronic device; the protective cover has a movable part for covering the screen of the electronic device, and the resonant circuit is disposed in the movable part;
[0136] The above resonant circuit can be configured as follows Figure 4 The basic LC resonant circuit shown; the resonant frequency of the above resonant circuit is equal to the frequency of the first electromagnetic wave signal emitted by the electronic device.
[0137] The protective cover 40 can be matched with the electronic device 30 to achieve the following Figure 1 or Figure 5 To avoid repetition, the various processes implemented in the method embodiment are not described here.
[0138] Reference Figure 8 , Figure 8 The present invention shows a process flow for detecting the opening and closing status of a protective cover according to an embodiment of the present invention, including:
[0139] Step S1: Hardware deployment; this step provides electronic equipment and protective cases.
[0140] Step S2: signal acquisition; this step is equivalent to the above steps 202 and 203.
[0141] Step S3, calibrating interaction;
[0142] Step S4: feature extraction;
[0143] Step S5: AI model inference;
[0144] Step S6: Redundancy verification;
[0145] Step S7: Status output.
[0146] Steps S3 to S7 are equivalent to step 207 above, wherein the feature is equivalent to the trigger information above, the AI model is equivalent to the opening and closing state correction model above, the redundant verification of step S6 is equivalent to sub-steps 2071 and 2072 above, and step S7 is equivalent to sub-steps 2073 and 2074 above. The state output is to confirm whether the protective cover is in the closed state or the open state.
[0147] In an embodiment of the present invention, an electronic device broadcasts a first electromagnetic wave signal, and a resonant circuit is configured in the protective cover of the electronic device. After receiving the first electromagnetic wave signal with the same resonant frequency, the resonant circuit resonates and emits a second electromagnetic wave signal with the same resonant frequency. After receiving the second electromagnetic wave signal, the electronic device analyzes the degree of coupling between the first electromagnetic wave signal and the second electromagnetic wave signal to deduce the distance between the protective cover and the electronic device, thereby obtaining the open and closed state of the protective cover relative to the electronic device, further controlling the operating state of the electronic device screen, and ensuring the stability of the screen off control trigger. Because electromagnetic waves cover a wider space, during the electromagnetic wave coupling process, the change in the coupling degree is less sensitive to the electromagnetic wave emission position than the Hall effect, where the Hall element voltage change is less sensitive to the relative position of the Hall element and the magnet. Therefore, compared with related technologies, this solution has a greater tolerance for displacement and deformation of the protective cover, is less likely to cause false touches of the screen operating state control, ensures the accuracy of the screen off control, and improves the user experience.
[0148] Fourthly, refer to Figure 9 The present invention provides a screen protection device 50, the device 50 comprising:
[0149] Transmitting module 501: used to transmit a first electromagnetic wave signal of a target frequency;
[0150] Receiving module 502: configured to receive a second electromagnetic wave signal emitted by a resonant circuit in a protective cover of the electronic device; the second electromagnetic wave signal is emitted by the resonant circuit after receiving the first electromagnetic wave signal of the target frequency, wherein the target frequency is equal to the resonant frequency of the resonant circuit;
[0151] A state acquisition module 503 is configured to acquire a first opening and closing state of the protective cover based on the first electromagnetic wave signal and the second electromagnetic wave signal;
[0152] The control execution module 504 is configured to control the working state of the electronic device according to the first opening and closing state of the protective cover.
[0153] Optionally, the status acquisition module 503 may include:
[0154] a coupling coefficient submodule, configured to obtain an electromagnetic coupling coefficient between the first electromagnetic wave signal and the second electromagnetic wave signal;
[0155] a closing confirmation submodule, configured to confirm that the first opening and closing state of the protective cover is a closing state when the electromagnetic coupling coefficient is greater than or equal to a first threshold;
[0156] The opening confirmation submodule is configured to confirm that the first opening and closing state of the protective cover is an open state when the electromagnetic coupling coefficient is less than the first threshold value.
[0157] Optionally, the coupling coefficient submodule may include:
[0158] an amplitude value unit, configured to respectively obtain a first amplitude value of the first electromagnetic wave signal and a second amplitude value of the second electromagnetic wave signal;
[0159] The coefficient determining unit is configured to determine a ratio of the second amplitude value to the first amplitude value as the electromagnetic coupling coefficient.
[0160] Optionally, the control execution module 504 may include:
[0161] a screen-lighting submodule, configured to control the screen of the electronic device to light up when the first opening and closing state is the open state;
[0162] The correction submodule is used to obtain the second opening and closing state according to the electronic device trigger information and the opening and closing state correction model when the first opening and closing state is the covering state, and control the working state of the screen of the electronic device based on the first opening and closing state and the second opening and closing state.
[0163] Optionally, the second opening and closing state includes a probability that the protective cover is in the closed state, and the probability of the closed state has a first weight; the correction submodule may include:
[0164] a second weighting unit, configured to obtain an electromagnetic coupling coefficient between the first electromagnetic wave signal and the second electromagnetic wave signal when the first opening and closing state is a closed state; the electromagnetic coupling coefficient having a second weight;
[0165] a weighting unit, configured to obtain a weighted sum of the first open and closed state and the second open and closed state according to a second weight of the electromagnetic coupling coefficient and a first weight of the probability of the covering state;
[0166] a cover confirmation unit, configured to confirm that the protective cover is in a covered state when the weighted sum is greater than or equal to a second threshold, and control the screen of the electronic device to turn off;
[0167] The opening confirmation unit is used to confirm that the protective cover is in the open state and control the screen of the electronic device to turn on when the weighted sum is less than the second threshold.
[0168] Optionally, the device 50 may further include:
[0169] A first guidance module, configured to output first guidance information; the first guidance information is used to instruct the user to perform a standardized opening and closing action of the protective cover;
[0170] a first label module, configured to collect trigger information of the electronic device when the electromagnetic coupling coefficient changes, and add a corresponding first label to each of the trigger information; the first label includes the closed state or the open state;
[0171] The opening and closing state training module is used to use the corresponding relationship between the trigger information and the first label as training data, and train the first initial model to obtain the opening and closing state correction model.
[0172] Optionally, the trigger information includes at least one of the electromagnetic coupling coefficient, the posture information of the electronic device, and the ambient light information received by the electronic device; the trigger information has a corresponding trigger time, and the trigger information in the training data is arranged in the order of the trigger time.
[0173] Optionally, the second weight of the electromagnetic coupling coefficient is greater than the first weight of the probability of the covering state.
[0174] Optionally, the device 50 may further include:
[0175] a noise recognition module, configured to recognize a noise electromagnetic wave signal from a third electromagnetic wave signal received by the electronic device based on a background interference recognition model;
[0176] The noise removal module is configured to remove the noise electromagnetic wave signal from the third electromagnetic wave signal to obtain the second electromagnetic wave signal.
[0177] Optionally, the device 50 further includes:
[0178] The second guiding module is used to output second guiding information; the second guiding information is used to instruct the user to trigger the execution instruction of the background data collection operation when the electronic device is not equipped with the protective cover.
[0179] a second labeling module, configured to record a third electromagnetic wave signal received by the electronic device in response to the background data collection operation, and add a corresponding second label to the third electromagnetic wave signal; the second label includes a noise electromagnetic wave signal;
[0180] The second training module is used to use the correspondence between the third electromagnetic wave signal and the second label as training data, and train the second initial model to obtain a background interference recognition model.
[0181] In an embodiment of the present invention, an electronic device broadcasts a first electromagnetic wave signal, and a resonant circuit is configured in the protective cover of the electronic device. After receiving the first electromagnetic wave signal with the same resonant frequency, the resonant circuit resonates and emits a second electromagnetic wave signal with the same resonant frequency. After receiving the second electromagnetic wave signal, the electronic device analyzes the degree of coupling between the first electromagnetic wave signal and the second electromagnetic wave signal to deduce the distance between the protective cover and the electronic device, thereby obtaining the open and closed state of the protective cover relative to the electronic device, further controlling the operating state of the electronic device screen, and ensuring the stability of the screen off control trigger. Because electromagnetic waves cover a wider space, during the electromagnetic wave coupling process, the change in the coupling degree is less sensitive to the electromagnetic wave emission position than the Hall effect, where the Hall element voltage change is less sensitive to the relative position of the Hall element and the magnet. Therefore, compared with related technologies, this solution has a greater tolerance for displacement and deformation of the protective cover, is less likely to cause false touches of the screen operating state control, ensures the accuracy of the screen off control, and improves the user experience.
[0182] The screen off control device in the embodiment of the present invention can be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or a device other than a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a mobile Internet device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc. It can also be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), an ATM or a self-service machine, etc., and the embodiment of the present invention does not specifically limit it.
[0183] The screen off control device in the embodiment of the present invention may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present invention.
[0184] The screen off control device provided by the embodiment of the present invention can achieve Figure 1 as well as Figure 5 To avoid repetition, the various processes implemented in the method embodiment are not described here.
[0185] Alternatively, as Figure 10 As shown, an embodiment of the present invention also provides another electronic device 900, including a processor 901 and a memory 902, wherein the memory 902 stores a program or instruction that can be run on the processor 901, and when the program or instruction is executed by the processor 901, the various steps of the above-mentioned screen off control method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.
[0186] It should be noted that the electronic devices in the embodiments of the present invention include the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0187] Figure 11 A schematic diagram of the hardware structure of another electronic device implementing an embodiment of the present invention.
[0188] The electronic device 1000 includes but is not limited to components such as a radio frequency unit 1001 , a network module 1002 , an audio output unit 1003 , an input unit 1004 , a sensor 1005 , a display unit 1006 , a user input unit 1007 , an interface unit 1008 , a memory 1009 , and a processor 1010 .
[0189] Those skilled in the art will understand that the electronic device 1000 may also include a power source (such as a battery) to power each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system. Figure 10 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be repeated here.
[0190] An electronic device broadcasts a first electromagnetic wave signal, and a resonant circuit is configured in the protective cover of the electronic device. After receiving the first electromagnetic wave signal with the same resonant frequency, the resonant circuit resonates and emits a second electromagnetic wave signal with the same resonant frequency. After receiving the second electromagnetic wave signal, the electronic device analyzes the degree of coupling between the first electromagnetic wave signal and the second electromagnetic wave signal to deduce the distance between the protective cover and the electronic device, thereby determining the open and closed state of the protective cover relative to the electronic device, further controlling the operating state of the electronic device screen, and ensuring the stability of the screen off control trigger. Because electromagnetic waves cover a wider space, during the electromagnetic wave coupling process, the change in the coupling degree is less sensitive to the electromagnetic wave emission position than the Hall effect, where the Hall element voltage change is less sensitive to the relative position of the Hall element and the magnet. Therefore, compared with related technologies, this solution has a greater tolerance for displacement and deformation of the protective cover, is less likely to cause false touches of the screen operating state control, ensures the accuracy of the screen off control, and improves the user experience.
[0191] It should be understood that in an embodiment of the present invention, the input unit 1004 may include a graphics processing unit (GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and at least one of other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and an operating stick, which will not be repeated here.
[0192] The memory 1009 can be used to store software programs and various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 1009 may include a volatile memory or a non-volatile memory, or the memory 1009 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM). The memory 609 in the embodiment of the present invention includes, but is not limited to, these and any other suitable types of memory.
[0193] Processor 1010 may include one or more processing units. Optionally, processor 610 integrates an application processor and a modem processor. The application processor primarily handles operations related to the operating system, user interface, and application programs, while the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into processor 610.
[0194] An embodiment of the present invention also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned screen off control method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0195] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0196] An embodiment of the present invention further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned screen off control method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0197] It should be understood that the chip mentioned in the embodiment of the present invention can also be called a system-on-chip, a system-on-chip, a chip system, or a system-on-chip chip, etc.
[0198] An embodiment of the present invention provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned screen off control method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0199] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present invention is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0200] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better embodiment. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0201] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are protected by the present invention.
Claims
1. A screen off control method, applied to an electronic device, characterized in that: The method comprises: transmitting a first electromagnetic wave signal of a target frequency; receiving a second electromagnetic wave signal emitted by a resonant circuit in a protective cover of the electronic device; the second electromagnetic wave signal is emitted by the resonant circuit after receiving the first electromagnetic wave signal of the target frequency, the target frequency being equal to the resonant frequency of the resonant circuit; acquiring a first opening and closing state of the protective cover based on a coupling degree between the first electromagnetic wave signal and the second electromagnetic wave signal; The working state of the electronic device is controlled according to the first opening and closing state of the protective cover.
2. The method according to claim 1, characterized in that The acquiring the first opening and closing state of the protective cover based on the coupling degree between the first electromagnetic wave signal and the second electromagnetic wave signal includes: Acquiring an electromagnetic coupling coefficient between the first electromagnetic wave signal and the second electromagnetic wave signal; When the electromagnetic coupling coefficient is greater than or equal to a first threshold, confirming that the first opening and closing state of the protective cover is a covering state; When the electromagnetic coupling coefficient is less than the first threshold, it is determined that the first opening and closing state of the protective cover is an open state.
3. The method according to claim 2, characterized in that The acquiring the electromagnetic coupling coefficient between the first electromagnetic wave signal and the second electromagnetic wave signal includes: respectively acquiring a first amplitude value of the first electromagnetic wave signal and a second amplitude value of the second electromagnetic wave signal; The ratio of the second amplitude value to the first amplitude value is determined as the electromagnetic coupling coefficient.
4. The method according to claim 1, wherein The controlling the working state of the electronic device according to the first opening and closing state of the protective cover includes: When the first opening and closing state is the open state, controlling the screen of the electronic device to light up; When the first opening and closing state is a covering state, a second opening and closing state is obtained according to the electronic device trigger information and the opening and closing state correction model, and the working state of the screen of the electronic device is controlled based on the first opening and closing state and the second opening and closing state.
5. The method according to claim 4, characterized in that The second opening and closing state includes a probability that the protective cover is in the closed state, and the probability of the closed state has a weight corresponding to the first weight; and controlling the working state of the screen of the electronic device based on the first opening and closing state and the second opening and closing state includes: acquiring an electromagnetic coupling coefficient between the first electromagnetic wave signal and the second electromagnetic wave signal when the first opening and closing state is the covering state; the electromagnetic coupling coefficient having a weight corresponding to the second weight; Obtaining a weighted sum of the first open and closed state and the second open and closed state according to a second weight of the electromagnetic coupling coefficient and a first weight of the probability of the closed state; If the weighted sum is greater than or equal to a second threshold, confirming that the protective cover is in a closed state, and controlling the screen of the electronic device to turn off; When the weighted sum is less than the second threshold, it is determined that the protective cover is in the open state, and the screen of the electronic device is controlled to turn on.
6. The method according to claim 4 or 5, characterized in that The method further comprises: Outputting first guidance information; the first guidance information is used to instruct the user to perform a standardized opening and closing action of the protective cover; When the electromagnetic coupling coefficient changes, trigger information of the electronic device is collected, and a corresponding first tag is added to each of the trigger information; the first tag includes the closed state or the open state; The corresponding relationship between the trigger information and the first label is used as training data, and the first initial model is trained to obtain an opening and closing state correction model.
7. The method according to claim 6, characterized in that The trigger information includes at least one of the electromagnetic coupling coefficient, the posture information of the electronic device, and the ambient light information received by the electronic device; the trigger information has a corresponding trigger time, and the trigger information in the training data is arranged in the order of the trigger time.
8. The method according to claim 5, characterized in that The second weight of the electromagnetic coupling coefficient is greater than the first weight of the probability of the covering state.
9. The method according to claim 1, characterized in that The method further comprises: identifying a noise electromagnetic wave signal from a third electromagnetic wave signal received by the electronic device based on a background interference recognition model; The noise electromagnetic wave signal is deleted from the third electromagnetic wave signal to obtain the second electromagnetic wave signal.
10. The method according to claim 8, characterized in that The method further comprises: Outputting second guidance information; the second guidance information is used to instruct the user to trigger an execution instruction of a background data collection operation when the electronic device is not equipped with the protective cover. In response to the background data collection operation, recording a third electromagnetic wave signal received by the electronic device and adding a corresponding second tag to the third electromagnetic wave signal; the second tag includes a noise electromagnetic wave signal; The corresponding relationship between the third electromagnetic wave signal and the second label is used as training data, and the second initial model is trained to obtain a background interference recognition model.
11. An electronic device, characterized in that: The electronic device is configured to execute the screen off control method according to any one of claims 1 to 10, and the electronic device comprises: Transmitter: used for transmitting a first electromagnetic wave signal of a target frequency; A receiver configured to receive a second electromagnetic wave signal emitted by a resonant circuit in the protective cover of the electronic device; the second electromagnetic wave signal is emitted by the resonant circuit after receiving the first electromagnetic wave signal of the target frequency, wherein the target frequency is equal to the resonant frequency of the resonant circuit; a processor, configured to obtain a first opening and closing state of the protective cover based on the first electromagnetic wave signal and the second electromagnetic wave signal; The processor is further configured to control an operating state of the electronic device according to the first opening and closing state of the protective cover.
12. A protective cover, characterized in that: The protective cover configuration includes a resonant circuit; The resonant circuit is used to send out a second electromagnetic wave signal of the target frequency after receiving a first electromagnetic wave signal of the target frequency; the target frequency is equal to the resonant frequency of the resonant circuit; The first electromagnetic wave signal and the second electromagnetic wave signal are used to obtain a first opening and closing state of the protective cover.
13. A screen protection device, characterized in that: The device comprises: Transmitter module: used for transmitting a first electromagnetic wave signal of a target frequency; A receiving module is configured to receive a second electromagnetic wave signal emitted by a resonant circuit in the protective cover of the electronic device; the second electromagnetic wave signal is emitted by the resonant circuit after receiving the first electromagnetic wave signal of the target frequency, wherein the target frequency is equal to the resonant frequency of the resonant circuit; A state acquisition module: configured to acquire a first opening and closing state of the protective cover based on the first electromagnetic wave signal and the second electromagnetic wave signal; A control execution module is used to control the working state of the electronic device according to the first opening and closing state of the protective cover.