Detection method, protective sleeve, electronic device, storage medium, and program product

By combining signals from position detection sensors and opening/closing detection sensors, the problem of accidental screen display triggered by magnetic devices has been solved, resulting in more accurate screen control and a better user experience.

CN122284841APending Publication Date: 2026-06-26BEIJING XIAOMI MOBILE SOFTWARE CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
BEIJING XIAOMI MOBILE SOFTWARE CO LTD
Filing Date
2024-12-26
Publication Date
2026-06-26

AI Technical Summary

Technical Problem

Magnetic cooling back clips or magnetic charging devices for electronic devices may accidentally trigger detection sensors, causing abnormal screen display and affecting user experience.

Method used

The system combines a position detection sensor and an opening/closing detection sensor for the electronic device. The first detection signal determines the relative position between the protective case and the electronic device, and the second detection signal determines the opening/closing state of the protective case, thereby controlling the screen display.

Benefits of technology

It improves the accuracy of screen display, reduces the occurrence of false triggering of detection sensors, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122284841A_ABST
    Figure CN122284841A_ABST
Patent Text Reader

Abstract

This disclosure relates to a detection method, a protective case, an electronic device, a storage medium, and a program product. The detection method includes: detecting a magnetic component of a protective case of an electronic device to obtain a first detection signal and a second detection signal; wherein the first detection signal is used to at least determine the relative position between the protective case and the electronic device, and the second detection signal is used to determine the open / closed state of the protective case; and controlling the screen of the electronic device to display based on the first detection signal and the second detection signal. Embodiments of this disclosure can reduce the occurrence of accidental activation of the detection sensor.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of electronic device displays, and more particularly to a testing method, a protective sleeve, an electronic device, a storage medium, and a program product. Background Technology

[0002] With the continuous development of technology, protective cases for electronic devices not only serve to protect the devices but can also be equipped with magnetic components to allow the devices to detect and perform corresponding functions. For example, an presence sensor in the electronic device can detect whether it is covered by a protective case. Another example is an opening / closing sensor in the electronic device, which can detect the open / closed state of the protective case to control the display on the electronic device.

[0003] However, other external magnetic accessories of electronic devices, such as magnetic cooling back clips or magnetic charging devices, may accidentally trigger the in-situ detection sensor or opening / closing detection sensor in the electronic device, which may cause abnormal display on the screen of the electronic device and affect the user experience. Summary of the Invention

[0004] To overcome the problems existing in related technologies, this disclosure provides a detection method, protective cover, electronic device, storage medium, and program product that can reduce the occurrence of accidental activation of detection sensors.

[0005] According to a first aspect of the present disclosure, a detection method is provided, comprising:

[0006] The magnetic components of the protective case of the electronic device are detected to obtain a first detection signal and a second detection signal; wherein, the first detection signal is used to determine at least the relative position between the protective case and the electronic device, and the second detection signal is used to determine the open / closed state of the protective case;

[0007] Based on the first detection signal and the second detection signal, the screen of the electronic device is controlled to display.

[0008] In some embodiments, controlling the screen of the electronic device to display based on the first detection signal and the second detection signal includes:

[0009] Based on the first detection signal, it is determined whether the electronic device is covered by the protective case;

[0010] When the electronic device is covered by the protective case, if the protective case is in a fastened state, the screen is controlled to be in a screen-off state; if the protective case is in an unfolded state, the screen is controlled to be in a screen-on state.

[0011] In some embodiments, determining whether the electronic device is covered by the protective case based on the first detection signal includes:

[0012] Based on the first detection signal, the polarity of the magnetic component of the back cover in the protective case is determined;

[0013] When the polarity of the magnetic component of the back cover facing the inside of the back cover is the first polarity, it is determined that the protective cover is a first protective cover with a keyboard assembly and the electronic device is covered by the first protective cover.

[0014] When the polarity of the magnetic component of the back cover facing the inside of the back cover is the second polarity, it is determined that the protective cover is a second protective cover without the keyboard assembly and the electronic device is covered by the second protective cover.

[0015] The first polarity is different from the second polarity.

[0016] In some embodiments, the method further includes:

[0017] If the protective cover is determined to be the first protective cover, an interrupt signal is generated;

[0018] Based on the interrupt signal, a communication signal is generated to be sent to the keyboard component;

[0019] Based on the communication signal, a communication connection is established between the electronic device and the keyboard assembly.

[0020] In some embodiments, detecting the magnetic components of the protective case of the electronic device to obtain a first detection signal and a second detection signal includes:

[0021] The first detection signal is obtained by detecting the magnetic component of the back cover in the protective case using the position detection sensor of the electronic device.

[0022] The second detection signal is obtained by detecting the magnetic components of the cover in the protective case using the opening and closing detection sensor of the electronic device.

[0023] According to a second aspect of the present disclosure, a protective sleeve is provided, comprising:

[0024] Back cover;

[0025] The front cover is movably connected to the back cover and can be unfolded or snapped open relative to the back cover;

[0026] A magnetic component is disposed on the back cover and the front cover, and is used for electronic equipment to detect and obtain a first detection signal and a second detection signal;

[0027] The first detection signal and the second detection signal are used to control the screen of the electronic device to display information.

[0028] In some embodiments, the protective cover includes a first protective cover, wherein the first polarity of the magnetic element of the back cover in the first protective cover faces the inside of the back cover;

[0029] or,

[0030] The protective cover includes a second protective cover, wherein the second polarity of the magnetic element of the back cover in the second protective cover faces the inside of the back cover;

[0031] The first polarity is different from the second polarity.

[0032] In some embodiments, the back cover has a camera hole; the camera hole is used to expose the camera of the electronic device;

[0033] The magnetic component of the back cover is positioned near the camera hole.

[0034] According to a third aspect of the present disclosure, an electronic device is provided, comprising:

[0035] The detection module is configured to detect the magnetic components of the protective case of an electronic device to obtain a first detection signal and a second detection signal; wherein the first detection signal is used to determine at least the relative position between the protective case and the electronic device, and the second detection signal is used to determine the open / closed state of the protective case;

[0036] The control module is configured to control the screen of the electronic device to display based on the first detection signal and the second detection signal.

[0037] According to a fourth aspect of the present disclosure, an electronic device is provided, comprising:

[0038] processor;

[0039] Memory used to store computer programs or instructions;

[0040] The processor executes the computer program or instructions to implement the steps of the method described in the first aspect.

[0041] According to a fifth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, the storage medium storing a computer program or instructions that, when executed by a processor, implement the steps of the method described in the first aspect.

[0042] According to a sixth aspect of the present disclosure, a computer program product is provided, including a computer program or instructions, which, when executed by a processor, implement the steps of the method described in the first aspect.

[0043] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects:

[0044] In this embodiment, the screen of the electronic device is controlled to display information based on a first detection signal and a second detection signal. The first detection signal is used to determine at least the relative position between the protective case and the electronic device, and the second detection signal is used to determine the open / closed state of the protective case. In other words, this embodiment no longer controls the screen display based on the open / closed state of the protective case, but rather based on the results of two detections from different functions. This takes into account the influence of different detection signals on the display, making screen control more accurate, reducing the possibility of accidental touches on the detection sensors, and improving the user experience.

[0045] Furthermore, the embodiments disclosed herein do not require additional hardware, meaning they do not affect the hardware design of electronic devices. This not only enables more accurate screen control without increasing costs, but also provides universal applicability to electronic devices that support magnetic protective cases.

[0046] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0047] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0048] Figure 1 This is a flowchart illustrating a detection method according to an exemplary embodiment. Figure 1 .

[0049] Figure 2 This is a top view of a dual-magnetic polarity Hall sensor according to an exemplary embodiment.

[0050] Figure 3 This is a bottom view of a dual-magnetic polarity Hall sensor according to an exemplary embodiment.

[0051] Figure 4 This is a flowchart illustrating a detection method according to an exemplary embodiment. Figure 2 .

[0052] Figure 5 This is a schematic diagram of the structure of a protective sleeve according to an exemplary embodiment.

[0053] Figure 6 This is a block diagram illustrating an electronic device according to an exemplary embodiment.

[0054] Figure 7 This is a structural diagram of an electronic device according to an exemplary embodiment. Detailed Implementation

[0055] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0056] In related technologies, a single detection sensor within the electronic device is typically used to detect and control the device's display. For example, an opening / closing detection sensor can be used to detect whether the device's protective case is in a fastened or unfolded state, and then the screen of the electronic device can be controlled based on the fastened or unfolded state of the protective case.

[0057] However, when magnetic accessories such as magnetic cooling back clips or magnetic charging cups cause magnetic interference to electronic devices, the state of these accessories on the user side is unknown. Therefore, screen control using related technologies can still be accidentally triggered, leading to abnormal screen lighting or screen off, which affects the user experience.

[0058] Based on this, this disclosure proposes a detection method that can control the screen of an electronic device to display information by using two detection signals together. This reduces the chance of the detection sensors in the electronic device being falsely triggered, thereby enabling better control of the screen display and improving the user experience.

[0059] Figure 1 This is a flowchart illustrating a detection method according to an exemplary embodiment. Figure 1 .like Figure 1 As shown, the detection method is applied to an electronic device. The electronic device performs this detection method by including the following steps:

[0060] S101. Detect the magnetic components of the protective case of the electronic device to obtain a first detection signal and a second detection signal; wherein, the first detection signal is used to determine at least the relative position between the protective case and the electronic device, and the second detection signal is used to determine the open / closed state of the protective case;

[0061] S102. Based on the first detection signal and the second detection signal, control the screen of the electronic device to display.

[0062] In this embodiment of the disclosure, the detection method described above is applied to a scenario where the detection of a protective case on an electronic device is used to control the screen display. For example, this detection method can be used to determine whether the electronic device is covered by a protective case and the open / closed state of the protective case, thereby controlling the screen of the electronic device to be in a lit or off state.

[0063] It should be noted that the aforementioned electronic devices include tablet computers, smartphones, or laptops, etc., and this disclosure does not limit the scope of these devices.

[0064] In step S101, the first detection signal is used at least to determine the relative position between the protective case and the electronic device. That is, the first detection signal can be used to determine whether the electronic device is covered by the protective case, i.e., whether the protective case of the electronic device is in place.

[0065] In this embodiment of the disclosure, the electronic device may be equipped with a position detection sensor. In some embodiments, the position detection sensor detects the magnetic component of the back cover in the protective case to obtain a first detection signal.

[0066] In other words, the back cover of the protective case is equipped with a magnetic component. By detecting the magnetic component of the back cover, the first detection signal determines the relative position between the back cover and the electronic device. Since the electronic device is mounted on and fixed relative to the back cover of the protective case, the relative position between the back cover and the electronic device can be detected to determine whether the protective case for the electronic device is in place.

[0067] Here, the position detection sensor may include a Hall sensor.

[0068] It should be noted that when the relative position between the back cover and the electronic device in the protective case is detected by the Hall sensor, the relative position between the protective case and the electronic device is determined based on the detected magnetic field strength indicated by the first detection signal.

[0069] For example, when the magnetic field strength of the first detection signal is the first magnetic field strength, the relative position between the back cover and the electronic device in the protective case is determined to be that the electronic device is covered by the protective case, that is, the protective case of the electronic device is in place.

[0070] When the magnetic field strength of the first detection signal is greater than that of the second magnetic field strength, the relative position indicator between the back cover and the electronic device in the protective case is determined to be that the electronic device is not covered by the protective case, that is, the protective case of the electronic device is not in place; wherein, the first magnetic field strength is greater than the second magnetic field strength.

[0071] In this embodiment of the disclosure, the electronic device may further be provided with an opening / closing detection sensor, which is disposed at different locations on the electronic device than the position detection sensor. In some embodiments, the opening / closing detection sensor of the electronic device detects the magnetic components of the cover in the protective case to obtain a second detection signal.

[0072] It should be noted that the opening / closing detection sensor may also include a Hall effect sensor. Here, the opening / closing state of the protective case can be determined by detecting changes in the magnetic field between the electronic device and the inner cover of the protective case using a Hall effect sensor.

[0073] In step S102, after determining the first detection signal and the second detection signal, the screen of the electronic device can be controlled to display based on the first detection signal and the second detection signal.

[0074] In other words, the embodiments of this disclosure no longer control the screen display based on a single detection result, but rather based on two detection results together. Thus, by adding detection results with different functions, the embodiments of this disclosure enable more accurate screen control.

[0075] In this embodiment of the disclosure, controlling the screen of the electronic device to display based on the first detection signal and the second detection signal may include: acquiring a third detection signal, wherein the third detection signal and the first detection signal may be detection signals from different types of detection sensors; or, the third detection signal and the second detection signal may be detection signals from different types of detection sensors; and controlling the screen of the electronic device to display based on the first detection signal, the second detection signal and the third detection signal together.

[0076] It is understood that, in this embodiment of the present disclosure, the relative position between the protective case and the electronic device is detected to obtain a first detection signal; the open / closed state of the protective case is detected to obtain a second detection signal; and the screen of the electronic device is controlled to display based on the first and second detection signals.

[0077] In other words, the embodiments of this disclosure no longer control the screen display based on the detection results of the opening and closing state of the protective case, but control the screen display based on the detection results of two different functions together. This takes into account the influence of different detection signals on the display, making the screen control more accurate, reducing the situation of the detection sensor being accidentally touched, and improving the user experience.

[0078] Furthermore, the embodiments disclosed herein do not require additional hardware, meaning they do not affect the hardware design of electronic devices. This not only enables more accurate screen control without increasing costs, but also provides universal applicability to electronic devices that support magnetic protective cases.

[0079] In some embodiments, controlling the screen of the electronic device to display based on the first detection signal and the second detection signal includes:

[0080] Based on the first detection signal, it is determined whether the electronic device is covered by the protective case;

[0081] When the electronic device is covered by the protective case, if the protective case is in a fastened state, the screen is controlled to be in a screen-off state; if the protective case is in an unfolded state, the screen is controlled to be in a screen-on state.

[0082] In this embodiment of the disclosure, if the detection value of the first detection signal is greater than a preset threshold, it indicates that the relative position is close and the electronic device is covered by a protective case, i.e., the protective case of the electronic device is in place. If the detection value of the first detection signal is less than or equal to the preset threshold, it indicates that the relative position is far and the electronic device is not covered by a protective case, i.e., the protective case of the electronic device is not in place.

[0083] It should be noted that when the protective case of an electronic device is not in place, the position detection sensor of the electronic device will continuously detect the magnetic components on the back cover of the protective case.

[0084] In this embodiment of the disclosure, when the detected value of the first detection signal is greater than a preset threshold and the protective cover is in a fastened state, it indicates that the protective cover of the electronic device is in place and the panel in the protective cover is fastened relative to the back cover. At this time, the screen does not need to display anything and can be controlled to be in a screen-off state.

[0085] If the detected value of the first detection signal is greater than a preset threshold, and the protective case is in the unfolded state, it indicates that the protective case of the electronic device is in place, and the panel inside the protective case is unfolded relative to the back cover. At this time, the screen needs to be displayed, and the screen can be controlled to be in the on state.

[0086] It is understood that the embodiments of this disclosure can control the screen display based on whether the protective case of the electronic device is in place and the fastening state of the protective case. This allows for more accurate screen control, reduces the possibility of accidental touches on the detection sensors, and improves the user experience.

[0087] In some embodiments, the method further includes:

[0088] Based on the first detection signal, the polarity of the magnetic component of the back cover in the protective case is determined;

[0089] When the polarity of the magnetic component of the back cover facing the inside of the back cover is the first polarity, it is determined that the protective cover is a first protective cover with a keyboard assembly and the electronic device is covered by the first protective cover.

[0090] When the polarity of the magnetic component of the back cover facing the inside of the back cover is the second polarity, it is determined that the protective cover is a second protective cover without the keyboard assembly and the electronic device is covered by the second protective cover.

[0091] The first polarity is different from the second polarity.

[0092] In this embodiment, different protective cases correspond to different polarities of the magnetic components on the back cover facing inwards. Thus, when the electronic device is covered by a protective case, the polarity of the magnetic components in the back cover can be detected to identify whether the protective case is the first or second protective case.

[0093] It should be noted that the first protective cover and the second protective cover have different functions.

[0094] The aforementioned first protective cover not only provides protection and includes magnetic components, but also features a keyboard assembly. This keyboard assembly allows the user to input data.

[0095] The aforementioned second protective cover is a cover with magnetic elements but without a keyboard assembly. This second protective cover can be a plastic cover with magnetic elements.

[0096] For example, when the electronic device is covered by a first protective cover, the south pole of the magnetic component of the back cover in the first protective cover faces the inside of the back cover; when the electronic device is covered by a second protective cover, the north pole of the magnetic component of the back cover in the second protective cover faces the inside of the back cover.

[0097] Thus, when the location is determined to be Antarctica based on the first detection signal, the protective sleeve can be identified as the first protective sleeve; when the location is determined to be Arctic based on the first detection signal, the protective sleeve can be identified as the second protective sleeve.

[0098] For example, the first protective cover typically has a magnetic component, so the electronic device can detect the magnetic component of the first protective cover to determine whether the first protective cover is in place. However, the second protective cover typically does not have a magnetic component, so the electronic device cannot detect the second protective cover to determine whether the second protective cover is in place.

[0099] Based on this, the embodiments of this disclosure propose adding magnetic components to both the first and second protective covers, wherein the polarity of the magnetic component on the back cover of the first protective cover facing inwards is different from that of the magnetic component on the back cover of the second protective cover. Furthermore, the polarity of the magnetic component on the back cover of the protective cover is detected in the judgment logic. Thus, by comparing the polarity of the magnetic component on the back cover with the first polarity and the second polarity respectively, the protective cover can be identified as either the first or second protective cover.

[0100] Understandably, the first detection signal can be used to detect the polarity of the magnetic components on the back cover, in addition to detecting the relative position between the protective cover and the electronic device, thereby enabling the detection that the protective cover is either the first or the second protective cover.

[0101] In some embodiments, the method further includes:

[0102] If the protective cover is determined to be the first protective cover, an interrupt signal is generated;

[0103] Based on the interrupt signal, a communication signal is generated to be sent to the keyboard component;

[0104] Based on the communication signal, a communication connection is established between the electronic device and the keyboard assembly.

[0105] In this embodiment of the disclosure, a first interrupt signal is generated when it is determined that the protective cover is the first protective cover. Here, the POGO_VDD_EN port of the electronic device can be enabled to generate an interrupt signal.

[0106] It should be noted that after generating an interrupt signal, the electronic device will trigger the POGO_VDD power supply to be powered on, which in turn causes the electronic device to generate a communication signal in order to attempt to establish communication with the keyboard component.

[0107] In this embodiment of the disclosure, establishing a communication connection between the electronic device and the keyboard component based on a communication signal includes: sending a communication signal to the control chip of the keyboard component; receiving a signal returned by the keyboard component based on the communication signal; and establishing a communication connection between the electronic device and the keyboard component based on the returned signal, thereby outputting that the keyboard component has been successfully connected.

[0108] It should be noted that the electronic device can also identify whether the keyboard component is the target keyboard component based on the identification information carried in the returned signal and output the corresponding information. Furthermore, if the electronic device does not receive the returned signal, it can output that the keyboard component connection has failed.

[0109] In this embodiment of the disclosure, information such as keyboard component connection failure, keyboard component connection success, and identification of whether the keyboard component is the target keyboard component can all be output in the form of pop-up boxes, and this embodiment of the disclosure does not limit this.

[0110] To better understand the above one or more embodiments, examples of embodiments of this disclosure are as follows:

[0111] Figure 2 This is a top view of a dual-magnetic polarity Hall sensor according to an exemplary embodiment. Figure 3 This is a bottom view of a dual-magnetic-field polarity Hall sensor according to an exemplary embodiment. Figure 2 and Figure 3As shown, the dual magnetic field polarity Hall sensor has a first output terminal OUT1 and a second output terminal OUT2. When the south pole of the magnetic element is detected, the first output terminal OUT1 outputs VDD, and when the north pole of the magnetic element is detected, the second output terminal OUT2 outputs VDD.

[0112] It should be noted that, in the embodiments of this disclosure, both the position detection sensor and the opening / closing detection sensor can be composed of a dual-magnetic polarity Hall sensor.

[0113] Figure 4 This is a flowchart illustrating a detection method according to an exemplary embodiment. Figure 2 .like Figure 4 As shown, the detection method performed by the electronic device includes:

[0114] S201. A first detection signal is obtained by detecting the magnetic component of the back cover in the protective case using a position detection sensor;

[0115] S202. A second detection signal is obtained by detecting the magnetic components of the cover in the protective case using an opening and closing detection sensor.

[0116] S203. Determine whether the protective cover is in a fastened state based on the second detection signal; if yes, proceed to step 204; if no, proceed to step 205.

[0117] S204, The control screen is in the off state;

[0118] S205, The control screen is in the on state;

[0119] S206. Determine whether the polarity of the magnetic component of the back cover is the first polarity based on the first detection signal; if yes, proceed to step S207; if no, proceed to step S208.

[0120] S207. Determine that the protective cover is the first protective cover and that the electronic equipment is fitted into the first protective cover;

[0121] S208. Determine that the protective cover is the second protective cover and that the electronic equipment is fitted into the second protective cover;

[0122] S209. Generate an interrupt signal and generate a communication signal to be sent to the keyboard component based on the interrupt signal;

[0123] S210. Based on communication signals, establish a communication connection between the electronic device and the keyboard assembly.

[0124] It should be noted that for the first protective case, a pop-up window can be displayed, showing information such as keyboard connection failure, target keyboard identification, or successful keyboard connection, to improve the user experience. For the second protective case, the pop-up window may not be displayed.

[0125] In this embodiment of the present disclosure, when the protective cover is in the fastened state, if the electronic device is covered by the first protective cover or the second protective cover, the control screen is in the off state; when the protective cover is in the unfolded state, if the electronic device is covered by the first protective cover or the second protective cover, the control screen is in the on state.

[0126] It should be noted that condition 1: whether the polarity of the magnetic component of the back cover is the first polarity; far indicates that the electronic device is not covered by the first protective cover, and near indicates that the electronic device is covered by the first protective cover.

[0127] Condition 2: Whether the polarity of the magnetic component on the back cover is the second polarity; far indicates that the electronic device is not covered by the second protective cover, and near indicates that the electronic device is covered by the second protective cover;

[0128] Condition 3: Conditions 1 and 2 are ORed to output a logic; far indicates that the electronic device is not covered by the first protective cover or the electronic device is not covered by the second protective cover, and near indicates that the electronic device is covered by the first protective cover or the electronic device is covered by the second protective cover.

[0129] Condition 4: The open / closed state of the protective cover; far indicates no magnet is connected, near indicates a magnet is connected;

[0130] Condition 5: Conditions 3 and 4 are ANDed with the output logic; near indicates that both the position detection sensor and the opening / closing detection sensor have magnets connected; far indicates that the position detection sensor has no magnet connected and / or the opening / closing detection sensor has no magnet connected.

[0131] Condition 6: Screen status; screen status includes whether the screen is on or off.

[0132] Below is a table showing the correspondence between condition 1, condition 2, condition 3, condition 4, condition 5, and remarks.

[0133] Condition 1 Condition 2 Condition 3 Condition 4 Condition 5 Condition 6 Remark far far far near far Screen on The position sensor does not trigger screen-off when no magnet is connected. far near near far far Screen on The opening / closing sensor has no magnet connected, so it does not trigger screen-off. near far near near near Screen off With the first protective case fastened, the screen off as expected. near near near far far Screen on The opening / closing sensor has no magnet connected, so it does not trigger screen-off. far far far far far Screen on No magnets are connected, so the screen does not turn off. far near near near near Screen off With the second protective case fastened, the screen off as expected. near far near far far Screen on The opening / closing sensor has no magnet connected, so it does not trigger screen-off. near near near near near Screen off It doesn't actually exist; keep the screen off.

[0134] This disclosure also proposes a protective sleeve. Figure 5 This is a schematic diagram of the structure of a protective sleeve according to an exemplary embodiment. Figure 5 As shown, the protective case includes:

[0135] Back cover 11;

[0136] The front cover 12 is movably connected to the back cover 11 and can be unfolded or fastened relative to the back cover 11;

[0137] Magnetic component 13 is disposed on the back cover 11 and the front cover 12, and is used for the detection module of the electronic device to detect and obtain a first detection signal and a second detection signal;

[0138] The first detection signal and the second detection signal are used to control the screen of the electronic device to display information.

[0139] In this embodiment, the protective cover has a fastened state and an unfolded state. When the protective cover is in the fastened state, the front cover is fastened relative to the back cover. At this time, if an electronic device is fitted onto the protective cover, the electronic device, the back cover, and the front cover are stacked, with the electronic device located between the back cover and the front cover.

[0140] Both the back cover and the front cover of the aforementioned protective case are equipped with magnetic components. This allows the position detection sensor of the electronic device to detect the magnetic components of the back cover and obtain a first detection signal; the opening and closing sensor of the electronic device can also detect the magnetic components of the front cover and obtain a second detection signal.

[0141] In this embodiment of the present disclosure, the magnetic components provided on the back cover and the front cover of the protective case are used for the detection module of the electronic device to detect and obtain a first detection signal and a second detection signal, and then the screen of the electronic device can be controlled to display based on the first detection signal and the second detection signal.

[0142] In other words, the embodiments of this disclosure can control the screen display based on the detection results of two different detection functions, taking into account the influence of different detection signals on the display, making the screen control more accurate, reducing the situation of the detection sensor being accidentally touched, and improving the user experience.

[0143] In some embodiments, the protective cover includes a first protective cover, wherein the first polarity of the magnetic element of the back cover in the first protective cover faces the inside of the back cover;

[0144] or,

[0145] The protective cover includes a second protective cover, wherein the second polarity of the magnetic element of the back cover in the second protective cover faces the inside of the back cover;

[0146] The first polarity is different from the second polarity.

[0147] In this embodiment of the disclosure, the magnetic component of the back cover in the first protective cover may include a first magnetic component, and the magnetic component of the back cover in the second protective cover may include a second magnetic component. Since the first polarity of the first magnetic component faces the inside of the back cover, and the second polarity of the second magnetic component faces the inside of the back cover, the position detection sensor (such as a Hall sensor) in the electronic device detects different polarities for different protective covers, and thus can determine whether the protective cover is the first protective cover or the second protective cover based on the different polarities.

[0148] It should be noted that the orientation of the first magnetic component differs from that of the second magnetic component. Here, the orientation of the first magnetic component can be S / N; the orientation of the second magnetic component can be N / S.

[0149] For example, the south pole of the first magnetic component faces the inside of the back cover, and the north pole of the second magnetic component faces the inside of the back cover. If the Hall sensor of the electronic device detects the south pole, triggering a south pole interruption, the protective cover can be identified as the first protective cover; if the Hall sensor of the electronic device detects the north pole, triggering a north pole interruption, the protective cover can be identified as the second protective cover.

[0150] It is understood that the embodiments of this disclosure propose to make differentiated designs for the first protective cover and the second protective cover, so that the polarity of the magnetic components in the two protective covers facing the inside of the back cover is different, thereby enabling better identification of the first protective cover or the second protective cover.

[0151] In some embodiments, such as Figure 5 As shown, the back cover 11 has a camera hole 14; the camera hole 14 is used to expose the camera of the electronic device.

[0152] The magnetic element 13 of the back cover 11 is positioned near the camera hole 14.

[0153] In this embodiment, the camera hole provided on the back cover is used to expose the camera of the electronic device. The shape and size of the camera hole are set according to the shape and size of the camera, and this embodiment does not limit this.

[0154] For example, the shape of the camera can be set to be the same as or similar to the shape of the camera hole; the size of the camera can be set to be smaller than or equal to the size of the camera hole.

[0155] In this embodiment, the magnetic component of the back cover is positioned near the camera hole.

[0156] For example, the camera hole includes a first side and a second side arranged adjacent to each other. Both the first side and the second side are sides away from the edge of the back cover. The magnetic component of the back cover can be arranged close to the first side or close to the second side.

[0157] Figure 6 This is a block diagram illustrating an electronic device according to an exemplary embodiment. Figure 6 As shown, the electronic device mainly includes:

[0158] The detection module 1001 is configured to detect the magnetic components of the protective case of an electronic device and obtain a first detection signal and a second detection signal; wherein, the first detection signal is used to at least determine the relative position between the protective case and the electronic device, and the second detection signal is used to determine the open / closed state of the protective case;

[0159] The control module 1002 is configured to control the screen of the electronic device to display based on the first detection signal and the second detection signal.

[0160] In some embodiments, the control module 1002 is further configured to determine whether the electronic device is covered by the protective case based on the first detection signal; if the protective case is in a fastened state when the electronic device is covered by the protective case, the screen is controlled to be in a screen-off state; if the protective case is in an unfolded state, the screen is controlled to be in a screen-on state.

[0161] In some embodiments, the control module 1002 is further configured to determine the polarity of the magnetic component of the back cover in the protective case based on the first detection signal;

[0162] When the polarity of the magnetic component of the back cover facing the inside of the back cover is the first polarity, it is determined that the protective cover is a first protective cover with a keyboard assembly and the electronic device is covered by the first protective cover.

[0163] When the polarity of the magnetic component of the back cover facing the inside of the back cover is the second polarity, it is determined that the protective cover is a second protective cover without the keyboard assembly and the electronic device is covered by the second protective cover.

[0164] The first polarity is different from the second polarity.

[0165] In some embodiments, the apparatus further includes:

[0166] An interrupt module is configured to generate an interrupt signal when it is determined that the protective cover is the first protective cover;

[0167] The generation module is configured to generate a communication signal to be sent to the keyboard component based on the interrupt signal;

[0168] A module is configured to establish a communication connection between the electronic device and the keyboard component based on the communication signal.

[0169] In some embodiments, the detection module 1001 is further configured to detect the magnetic component of the back cover in the protective case using the position detection sensor of the electronic device to obtain the first detection signal;

[0170] The second detection signal is obtained by detecting the magnetic components of the cover in the protective case using the opening and closing detection sensor of the electronic device.

[0171] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0172] Figure 7 This is a structural diagram of an electronic device according to an exemplary embodiment. For example, the electronic device 700 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.

[0173] Reference Figure 7 The electronic device 700 may include one or more of the following components: processing component 702, memory 704, power supply component 706, multimedia component 708, audio component 710, input / output (I / O) interface 712, sensor component 714, and communication component 716.

[0174] Processing component 702 typically controls the overall operation of electronic device 700, such as operations associated with at least one of display, telephone call, data communication, camera operation, and recording operation. Processing component 702 may include one or more processors 720 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 702 may include one or more modules to facilitate interaction between processing component 702 and other components. For example, processing component 702 may include a multimedia module to facilitate interaction between multimedia component 708 and processing component 702.

[0175] Memory 704 is configured to store various types of data to support operation on electronic device 700. Examples of such data include at least one of the following: instructions for any application or method operating on electronic device 700, contact data, phonebook data, messages, pictures, and videos. Memory 704 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0176] Power supply component 706 provides power to various components of electronic device 700. Power supply component 706 may include at least one of the following: a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 700.

[0177] Multimedia component 708 includes a screen that provides an output interface between electronic device 700 and user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a Touch Panel, the screen may be implemented as a touchscreen to receive input signals from the user. The Touch Panel includes one or more touch sensors to sense touches, swipes, and gestures on the Touch Panel. The touch sensors may sense not only the boundaries of touch or swipe actions but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 708 includes a front-facing camera and / or a rear-facing camera. When electronic device 700 is in an operating mode, such as a shooting mode or video mode, the front-facing camera and / or rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0178] Audio component 710 is configured to output and / or input audio signals. For example, audio component 710 includes a microphone (MIC) configured to receive external audio signals when electronic device 700 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 704 or transmitted via communication component 716. In some embodiments, audio component 710 also includes a speaker for outputting audio signals.

[0179] I / O interface 712 provides an interface between processing component 702 and peripheral interface modules, such as keyboards, click wheels, and buttons. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0180] Sensor assembly 714 includes one or more sensors for providing state assessments of various aspects of electronic device 700. For example, sensor assembly 714 may detect the on / off state of electronic device 700, the relative positioning of components such as the display and keypad of electronic device 700, changes in position of electronic device 700 or one of its components, the presence or absence of user contact with electronic device 700, orientation or acceleration / deceleration of electronic device 700, and temperature changes of electronic device 700. Sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 714 may also include an optical sensor, such as a complementary metal-oxide-semiconductor (CMOS) or charge-coupled device (CCD) image sensor, for use in imaging applications. In some embodiments, sensor assembly 714 may also include, but is not limited to, at least one of the following: an accelerometer, a gyroscope, a magnetometer, a pressure sensor, and a temperature sensor.

[0181] Communication component 716 is configured to facilitate wired or wireless communication between electronic device 700 and other devices. Electronic device 700 can access wireless networks based on communication standards, such as Wi-Fi, 4G, 5G, or combinations thereof. In one exemplary embodiment, communication component 716 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 716 also includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID), Infrared Data Association (IrDA), Ultra Wide Band (UWB), Bluetooth (BT), and other technologies.

[0182] In an exemplary embodiment, the electronic device 700 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components.

[0183] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 704 including executable instructions or a computer program, which can be executed by a processor 720 of an electronic device 700 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device, etc.

[0184] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform any of the detection methods described above in the embodiments of this disclosure. For example, the detection method includes:

[0185] The magnetic components of the protective case of the electronic device are detected to obtain a first detection signal and a second detection signal; wherein, the first detection signal is used to determine at least the relative position between the protective case and the electronic device, and the second detection signal is used to determine the open / closed state of the protective case;

[0186] Based on the first detection signal and the second detection signal, the screen of the electronic device is controlled to display.

[0187] This disclosure provides a computer program product comprising a computer program or executable instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer program or executable instructions from the computer-readable storage medium and executes the computer program or executable instructions, causing the computer device to perform any of the detection methods described above in this disclosure.

[0188] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the claims.

[0189] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A detection method, characterized in that, include: The magnetic components of the protective case of the electronic device are detected to obtain a first detection signal and a second detection signal; wherein, the first detection signal is used to determine at least the relative position between the protective case and the electronic device, and the second detection signal is used to determine the open / closed state of the protective case; Based on the first detection signal and the second detection signal, the screen of the electronic device is controlled to display.

2. The method according to claim 1, characterized in that, The step of controlling the screen of the electronic device to display based on the first detection signal and the second detection signal includes: Based on the first detection signal, it is determined whether the electronic device is covered by the protective case; When the electronic device is covered by the protective case, if the protective case is in a fastened state, the screen is controlled to be in a screen-off state; if the protective case is in an unfolded state, the screen is controlled to be in a screen-on state.

3. The method according to claim 2, characterized in that, The step of determining whether the electronic device is covered by the protective case based on the first detection signal includes: Based on the first detection signal, the polarity of the magnetic component of the back cover in the protective case is determined; When the polarity of the magnetic component of the back cover facing the inside of the back cover is the first polarity, it is determined that the protective cover is a first protective cover with a keyboard assembly and the electronic device is covered by the first protective cover. When the polarity of the magnetic component of the back cover facing the inside of the back cover is the second polarity, it is determined that the protective cover is a second protective cover without the keyboard assembly and the electronic device is covered by the second protective cover. The first polarity is different from the second polarity.

4. The method according to claim 3, characterized in that, The method further includes: If the protective cover is determined to be the first protective cover, an interrupt signal is generated; Based on the interrupt signal, a communication signal is generated to be sent to the keyboard component; Based on the communication signal, a communication connection is established between the electronic device and the keyboard assembly.

5. The method according to any one of claims 1 to 4, characterized in that, The detection of the magnetic components of the protective case of the electronic device to obtain a first detection signal and a second detection signal includes: The first detection signal is obtained by detecting the magnetic component of the back cover in the protective case using the position detection sensor of the electronic device. The second detection signal is obtained by detecting the magnetic components of the cover in the protective case using the opening and closing detection sensor of the electronic device.

6. A protective case, characterized in that, include: Back cover; The front cover is movably connected to the back cover and can be unfolded or snapped open relative to the back cover; A magnetic component is disposed on the back cover and the front cover, and is used for electronic equipment to detect and obtain a first detection signal and a second detection signal; The first detection signal and the second detection signal are used to control the screen of the electronic device to display information.

7. The protective sleeve according to claim 6, characterized in that, The protective cover includes a first protective cover, wherein the first polarity of the magnetic element of the back cover in the first protective cover faces the inside of the back cover; or, The protective cover includes a second protective cover, wherein the second polarity of the magnetic element of the back cover in the second protective cover faces the inside of the back cover; The first polarity is different from the second polarity.

8. The protective sleeve according to claim 6, characterized in that, The back cover has a camera hole; the camera hole is used to expose the camera of the electronic device; The magnetic component of the back cover is positioned near the camera hole.

9. An electronic device, characterized in that, include: The detection module is configured to detect the magnetic components of the protective case of an electronic device to obtain a first detection signal and a second detection signal; wherein the first detection signal is used to determine at least the relative position between the protective case and the electronic device, and the second detection signal is used to determine the open / closed state of the protective case; The control module is configured to control the screen of the electronic device to display based on the first detection signal and the second detection signal.

10. An electronic device, characterized in that, include: processor; Memory used to store computer programs or instructions; The processor executes the computer program or instructions to implement the steps of the method according to any one of claims 1 to 5.

11. A non-transitory computer-readable storage medium storing a computer program or instructions, characterized in that, When the computer program or instructions in the storage medium are executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

12. A computer program product, comprising a computer program or instructions, characterized in that, When the computer program or instructions are executed by a processor, they implement the steps of the method according to any one of claims 1 to 5.