Control method and electronic equipment
By setting detection modules on the first and second bodies of the electronic device, the target trigger event is detected and combined with the event characteristics and relative position relationship. The controller drives the body to rotate to the target device mode, which solves the problems of high complexity and poor flexibility in electronic device mode switching and realizes convenient device mode switching.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-30
- Publication Date
- 2026-03-31
AI Technical Summary
Switching between different device modes is complex and inflexible for electronic devices.
By setting detection modules on the first and second bodies of the electronic device, target triggering events are detected and the target body is determined. Combining the characteristics of the target triggering events and the relative positional relationship, the target controller is used to control the body to rotate to the target device mode.
It achieves convenience and flexibility in switching electronic device modes, allowing users to switch to the target device mode without manually adjusting the device itself, thus improving the user experience.
Smart Images

Figure CN121764338A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and more particularly to a control method and electronic device. Background Technology
[0002] In an electronic device comprising a first body and a second body, the first and second bodies can have various relative positional relationships, enabling the electronic device to operate in multiple modes to meet different user needs. However, adjusting the mode of an electronic device is complex and lacks flexibility. Summary of the Invention
[0003] On the one hand, this application provides a control method applied to an electronic device, including:
[0004] Based on the target triggering event detected by the target detection module, the target body where the target detection module is located is determined. The target body is either the first body or the second body of the electronic device. The first body is provided with a first detection module, and the second body is provided with a second detection module. The target detection module is either the first detection module or the second detection module.
[0005] Determine the first relative positional relationship between the first body and the second body;
[0006] Based on the target body corresponding to the target triggering event and the first relative position relationship, the target device mode to which the electronic device is to be switched is determined. In the target device mode, the first body and the second body have a second relative position relationship, which is different from the first relative position relationship.
[0007] Control the first body and the second body to be in the second relative position relationship.
[0008] In one possible implementation, the control method further includes: determining the event characteristics of the target triggering event, wherein the event characteristics are used to characterize the number of input actions corresponding to the target triggering event;
[0009] The step of determining the target device mode to which the electronic device should switch based on the target body corresponding to the target triggering event and the first relative positional relationship includes:
[0010] Based on the target entity and event characteristics corresponding to the target triggering event and the first relative positional relationship, the target device mode to which the electronic device is to be switched is determined.
[0011] Another possible implementation includes: determining the first power state mode of the electronic device;
[0012] The step of determining the target device mode to which the electronic device should switch based on the target body corresponding to the target triggering event and the first relative positional relationship includes:
[0013] Based on the target body corresponding to the target triggering event, the first relative position relationship, and the first power state mode, determine the target device mode and the second power state mode to which the electronic device is to be switched;
[0014] The control method further includes: controlling the electronic device to switch to the second power state mode.
[0015] In another possible implementation, the electronic device includes a target controller that is capable of operating when the electronic device is powered off and can control the power module to continuously supply power to the first detection module and the second detection module.
[0016] The first power state mode and the second power state mode are one of the multiple power state modes that the electronic device has.
[0017] In another possible implementation, a first display unit is provided on the first surface of the first body, and the first body is capable of a first rotation and a second rotation relative to the second body, wherein the first rotation and the second rotation are spatial rotations of different types.
[0018] Determining the first relative positional relationship between the first body and the second body includes:
[0019] Determine a first relative positional relationship between the first surface and / or the second surface of the first body and the first surface of the second body, wherein the second surface of the first body is parallel to the first surface of the first body;
[0020] In the target device mode, the first surface and / or the second surface of the first body has a second relative positional relationship with the first surface of the second body;
[0021] The control of the first body and the second body in the second relative position relationship includes:
[0022] Control the first surface and / or the second surface of the first body to have a second relative positional relationship with the first surface of the second body.
[0023] In another possible implementation, the electronic device includes: a target controller, and a drive motor capable of driving the first body to perform a first rotation and a second rotation relative to the second body;
[0024] The control of the first surface and / or the second surface of the first body to have a second relative positional relationship with the first surface of the second body includes:
[0025] The target controller controls the drive motor to drive the first body to perform a first rotation and / or a second rotation, so that the first surface and / or the second surface of the first body has a second relative positional relationship with the first surface of the second body.
[0026] In another possible implementation, the control method further includes: obtaining the audio signal sensed by the audio detection module;
[0027] The step of determining the target entity where the target detection module is located based on the target triggering event detected by the target detection module includes:
[0028] In response to the target detection module detecting a target triggering event and the audio signal indicating the presence of the target triggering event, the target body where the target detection module is located is determined.
[0029] In yet another possible implementation, the control method further includes:
[0030] Obtain the acceleration data detected by the first detection module and / or the second detection module;
[0031] The device attitude of the electronic device is determined based on the acceleration data;
[0032] The step of determining the target entity where the target detection module is located based on the target triggering event detected by the target detection module includes:
[0033] In response to the device posture indicating that the electronic device is in a stationary state or a target device posture, and the target detection module detects a target trigger event, the target body where the target detection module is located is determined, and the target device posture indicates that the electronic device is placed on a supporting plane or a supporting inclined plane.
[0034] In another aspect, this application also provides an electronic device, comprising:
[0035] first ontology;
[0036] Second entity;
[0037] The first detection module is installed on the first body;
[0038] The second detection module is installed on the second body;
[0039] And a target controller connected to the first detection module and the second detection module;
[0040] The target controller is configured to: determine the target entity where the target detection module is located based on a target triggering event detected by the target detection module, wherein the target entity is either the first entity or the second entity, and the target detection module is either the first detection module or the second detection module; determine a first relative positional relationship between the first entity and the second entity; determine a target device mode to which the electronic device is to be switched based on the target entity corresponding to the target triggering event and the first relative positional relationship, wherein the first entity and the second entity have a second relative positional relationship, which is different from the first relative positional relationship; and control the first entity and the second entity to be in the second relative positional relationship.
[0041] In yet another possible implementation, the electronic device further includes: a power module;
[0042] The target controller is capable of operating when the electronic device is powered off;
[0043] The target controller is also used to control the power module to continuously supply power to the first detection module and the second detection module. Attached Figure Description
[0044] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.
[0045] Figure 1 A flowchart illustrating the control method provided in this application;
[0046] Figure 2 Another flowchart illustrating the control method provided in this application;
[0047] Figure 3 Another flowchart illustrating the control method provided in this application;
[0048] Figure 4 A schematic diagram of the structure of the electronic device provided in this application in one device mode;
[0049] Figure 5 A schematic diagram of the structure of the electronic device provided in this application in yet another device mode;
[0050] Figure 6 This is a schematic diagram of the first body of the electronic device of this application undergoing a second rotation relative to the second body;
[0051] Figure 7This is a schematic diagram of the structure of the electronic device of this application in another device mode;
[0052] Figure 8 Another flowchart illustrating the control method provided in this application;
[0053] Figure 9 Another flowchart illustrating the control method provided in this application;
[0054] Figure 10 A schematic diagram of the component architecture of the electronic device provided in this application. Detailed Implementation
[0055] The embodiments of this application are described below with reference to the accompanying drawings. The terminology used in the implementation section of this application is only for explaining specific embodiments and is not intended to limit the application. Those skilled in the art will recognize that, with technological advancements and the emergence of new scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.
[0056] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such terms are interchangeable where appropriate; this is merely a way of distinguishing objects with the same attributes in the embodiments of this application. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion, so that a process, method, system, product, or apparatus that comprises a series of elements is not necessarily limited to those elements, but may include other elements not explicitly listed or inherent to those processes, methods, products, or apparatuses.
[0057] like Figure 1 This illustration shows a flowchart of a control method provided in this application. The method of this embodiment can be applied to an electronic device having a first body and a second body. A first detection module is disposed on the first body, and a second detection module is disposed on the second body. The method of this embodiment may include:
[0058] S101, Based on the target triggering event detected by the target detection module, determine the target body where the target detection module is located.
[0059] The target detection module can be either a first detection module or a second detection module.
[0060] In this application, the target trigger event is a pre-defined target type trigger event, which can be specifically set as needed. For example, the target trigger event may include one or more combinations of tap events, click events, press events, and touch events of a set type.
[0061] Both the first and second detection modules can be used to detect target trigger events. The specific types of the first and second detection modules will differ depending on the type of target trigger event detected. For example, if the target trigger event includes a tapping event, then both the first and second detection modules need to include a gravity sensor; if the target trigger event is a click or touch event, then both the first and second detection modules need to include a touch sensing unit; if the target trigger event is a press event, then both the first and second detection modules need to include a pressure sensor.
[0062] It is understood that the target entity is the entity in the electronic device that generates the target triggering event. For ease of distinction, in this application, the entity where the target detection module that currently detects the target triggering event is located is referred to as the target entity. Therefore, the target entity is either the first entity or the second entity of the electronic device.
[0063] In this application, at least one display unit may also be provided on the first body of the electronic device. Of course, a display unit may also be provided on the second body, and there is no limitation thereto.
[0064] S102, determine the first relative positional relationship between the first body and the second body.
[0065] The first relative positional relationship refers to the relative positional relationship between the first body and the second body when a target triggering event is detected. The first relative positional relationship is one of many relative positional relationships that the first body and the second body can have in an electronic device. When the relative positional relationship between the first body and the second body is different, the device mode (or device form) of the electronic device is also different.
[0066] For example, the relative positional relationship between the first body and the second body in an electronic device may include, but is not limited to: the first body and the second body being attached together; the angle between the first body and the second body being greater than a first threshold and not greater than a second threshold; and the angle between the first body and the second body being greater than the second threshold. The first threshold is less than the second threshold; for example, the first threshold may be 60 degrees and the second threshold may be 135 degrees.
[0067] When the first and second bodies are attached, the electronic device can be in a closed device mode. For example, if the electronic device is a laptop, it is in a closed-lid mode when the first and second bodies are attached. Alternatively, if the electronic device is a mobile phone with a foldable screen, the foldable screen is folded when the first and second bodies are attached, and the phone is in a closed mode (or folded mode).
[0068] When the angle between the first body and the second body is greater than the first threshold and not greater than the second threshold, the electronic device is in unfolded device mode. For example, when the electronic device is a laptop, if the angle between the first body and the second body is greater than the first threshold and not greater than the second threshold, then the electronic device is in laptop operation mode, also known as open-lid mode.
[0069] When the angle between the first and second bodies is greater than a second threshold, it can be a tiled device mode of the electronic device. Compared with the unfolded device mode of the electronic device, in this tiled mode, the tilt angle of the first body is greater, and the first and second bodies can even be approximately horizontal, so as to present the form of the first and second bodies laid flat on the table.
[0070] Accordingly, the first relative positional relationship is one of the many relative positional relationships that may exist between the first body and the second body in an electronic device.
[0071] Of course, the above are just examples. The relative positional relationship between the first body and the second body in an electronic device can also be other possibilities, and there are no restrictions on this.
[0072] In this application, there are various ways to determine the first relative positional relationship between the first body and the second body, and no limitation is imposed on this method. For example, the electronic device can determine the first relative positional relationship between the first body and the second body based on the rotation angle of the rotatable component connecting the first body and the second body. Alternatively, one or more sensing components such as Hall sensors or magnetic induction switches can be provided on the first body and the second body, and the relative positional relationship between the first body and the second body can be determined based on the sensing values detected by the sensing components.
[0073] It should be noted that in practical applications, the order of determining the target entity and step S102 can be interchanged. To improve efficiency, they can also be executed simultaneously without restriction.
[0074] S103, based on the target body corresponding to the target triggering event and the first relative position relationship, determine the target device mode to which the electronic device is to be switched.
[0075] In the target device mode, the first body and the second body of the electronic device have a second relative positional relationship. This second relative positional relationship differs from the first relative positional relationship.
[0076] In this application, if the target entities that generate the target triggering event are different under the same first relative positional relationship, then the target device mode that the user expects to switch to will also be different; similarly, if the target entities of the product target triggering event remain unchanged, but the first relative positional relationship between the first entity and the second entity is different, then the target device mode that the user expects the electronic device to switch to will also be different.
[0077] For example:
[0078] Assuming the electronic device is in unfolded device mode, the angle between the first body and the second body is greater than a first threshold and not greater than a second threshold.
[0079] Under this assumption, if the user inputs a target trigger event on the second body, then in this mode, it can be determined that the user needs to switch the electronic device to a closed device mode, that is, the relative positional relationship between the first body and the second body is that the first body is attached to the second body.
[0080] Under this assumption, if the user inputs a target trigger event on the first body, it can be determined that the user needs to switch the electronic device to tiled device mode, that is, the relative positional relationship between the first body and the second body is that the angle between the first body and the second body is greater than the second threshold.
[0081] In this application, there are several possible methods for determining the target device mode. For example, in one possible implementation, to reduce the complexity of determining the target device mode, this application can pre-configure multiple sets of correspondences. Each set of correspondences includes corresponding entities, relative positional relationships, and device modes, and the entities, relative positional relationships, and device modes are not completely identical in different correspondences. Based on this, the target device mode corresponding to the target entity and the first relative positional relationship is determined based on the multiple sets of correspondences. Alternatively, this application can pre-train a mode prediction model, and based on the target entity and the first relative positional relationship, use the prediction model to predict the target device mode that the electronic device is suitable to switch to.
[0082] Of course, there are other ways to determine the target device mode, and there are no restrictions on this.
[0083] S104, control the first body and the second body to be in a second relative position relationship.
[0084] For example, the electronic device may include a drive motor capable of driving the first body to rotate relative to the second body. Based on this, the electronic device controls the drive motor to drive the first body to rotate until the first body and the second body are in a second relative position relationship.
[0085] In this application, the electronic device may include a target controller, which can be used to perform the relevant operations of steps S101 to S104.
[0086] The target controller can have various possibilities. Considering that users need to switch the device mode of an electronic device, which can occur in any power state mode of the electronic device, such as, but not limited to, power-on state (working state S0), standby state (S1 state), light sleep state (S2 state), sleep state (S3 state, also known as deep sleep), hibernation state (S4 state), and power-off state. Therefore, in order to execute the solution of this application in any power state mode of the electronic device, in this application, the target controller can operate in the power-off state of the electronic device and can control the power module to continuously supply power to the first detection module and the second detection module.
[0087] It is understandable that if the target controller can operate when the electronic device is powered off, then the target controller must also be able to operate when the electronic device is powered on, or in other power states. For example, the target controller can be an embedded controller or any other type of controller; there are no restrictions on this.
[0088] As can be seen from the above, in this application, if the target detection module detects a target trigger event, it determines the first relative positional relationship between the target body where the target detection module is located and the first and second bodies in the electronic device. Since a detection module is provided on each of the two bodies in the electronic device, determining the target body where the target detection module is located is essentially determining the target body that generated the target trigger event. Based on this, this application can combine the target body that generated the target trigger event with the first relative positional relationship to determine the target device mode to which the electronic device is to switch, and control the first and second bodies to be in the second relative positional relationship corresponding to the target device mode. This allows the user to simply select the target body and input the target trigger event based on the current device mode of the electronic device to trigger the electronic device to switch to the corresponding target device mode, without requiring the user to manually adjust the first and second bodies, thus improving the convenience and flexibility of device mode switching.
[0089] It is understandable that as electronic devices support an increasing variety of device modes, determining the target device mode to which the electronic device should switch based solely on the target entity that generates the target trigger event may not cover the multiple device modes that the user might wish to switch to under that device mode. Therefore, to more flexibly and reliably control the switching of device modes, this application can further combine the event characteristics of the target trigger event to determine the target device mode to switch to. The event characteristics of the target trigger event can be varied, and will differ depending on the type of target trigger event. For example, the event characteristics of the target event can be one or more of the following: duration of the target trigger event, pressure applied, number of input actions, etc.
[0090] The following example uses one scenario of the target event's characteristics, combined with... Figure 2 Please provide an explanation. For example... Figure 2 This illustration shows another flowchart of the control method provided in this application. The method of this embodiment can be applied to electronic devices. For electronic devices, please refer to the relevant descriptions of other embodiments of this application, which will not be repeated here.
[0091] The method in this embodiment may include:
[0092] S201, Based on the target triggering event detected by the target detection module, determine the target body where the target detection module is located.
[0093] As mentioned above, the target body is either the first body or the second body of an electronic device. The first body is equipped with a first detection module, and the second body is equipped with a second detection module. The target detection module is either the first detection module or the second detection module.
[0094] S202, Determine the event characteristics of the target triggering event.
[0095] In this embodiment, the event feature is used to characterize the number of input actions corresponding to the target triggering event.
[0096] In this application, the event characteristics of the target triggering event can be detected and determined by the electronic device through the target detection module; or the target detection module can report the event information of the detected target triggering event to the electronic device (such as the target controller), and the electronic device can determine the event characteristics of the target triggering event. There is no limitation on this.
[0097] For example, in one possible scenario, the target triggering event is a tapping event on the electronic device itself. In this case, the event characteristic could be the number of taps. Considering that a single tapping event is prone to misjudgment, in this application, the target triggering event can be a tapping event involving two or more taps. For example, the tapping event could be a two-tap event or a three-tap event, etc.
[0098] In this case, the target detection module can be a detection module such as a gravity sensor that can detect the knocking event. When the knocking event is detected, the detection module such as the gravity sensor can determine the number of knocks. Therefore, the electronic device can obtain the knocking event reported by the gravity sensor and the number of knocks.
[0099] Of course, if the number of consecutive taps in a tapping event is too large, the gravity sensor may interpret it as multiple tapping events. For example, the gravity sensor may only be able to detect two or three tapping events. In this case, the gravity sensor can report the number of taps for each tapping event separately. The electronic device can determine the actual number of taps for a tapping event based on the tapping events and the number of taps reported by the gravity sensor within a set time period.
[0100] In another possible scenario, the target triggering event is a press event. In this case, the event characteristic of the press event can be the number of presses. The target detection module can be a detection component such as a pressure sensor. The pressure sensor can report the sensed pressure value to the electronic device, which then determines the number of presses based on the pressure value.
[0101] S203, determine the first relative positional relationship between the first body and the second body.
[0102] This step can be found in the relevant descriptions of other embodiments of this application, and will not be repeated here.
[0103] It should be noted that the execution order of determining the target entity, steps S202, and S203 is not limited to... Figure 2 As shown, in practical applications, the order of these execution steps can be interchanged or executed synchronously.
[0104] S204, based on the target body corresponding to the target triggering event, the event characteristics, and the first relative positional relationship, determine the target device mode to which the electronic device is to be switched.
[0105] For example, this application can pre-configure the correspondence between different ontologies, event features, and relative positional relationships with device modes to obtain multiple sets of correspondences. Each set of correspondences includes a corresponding ontology, an event feature, a relative positional relationship, and a device mode. Based on this, a target device mode can be determined according to the pre-configured multiple sets of correspondences, corresponding to the target ontology, the event feature of the target triggering event, and the first relative positional relationship.
[0106] Of course, this application may use a pre-trained prediction model to predict the mode of the target device, without any specific restrictions.
[0107] In this embodiment, by combining the target entity and event characteristics corresponding to the target triggering event, as well as the current first relative position relationship between the first entity and the second entity in the electronic device, the target device mode that the electronic device needs to switch to can be determined more reasonably and flexibly, thereby further improving the flexibility and reliability of device mode switching.
[0108] To better understand the benefits of this embodiment, the following examples illustrate the point:
[0109] It is still assumed that the electronic device is in the unfolded device mode, that is, the angle between the first body and the second body is greater than the first threshold and not greater than the second threshold.
[0110] Under this assumption, if the user inputs a target trigger event on the first entity, the user may want to switch the electronic device from unfolded device mode to closed device mode, or it may want to switch to tiled device mode. Therefore, determining the target device mode based solely on the target entity where the target trigger event is located may result in misjudgment or fail to switch to the target device mode desired by the user.
[0111] In this embodiment, the user can also indicate different target device modes by varying the number of input actions for the target trigger event. For example, if the target trigger event is on the first body and the number of input actions is two, the target trigger event can be determined to be a tiled device event; if the target trigger event is on the first body and the number of input actions is three, the target trigger event can be determined to be a device closure mode. This allows the user to more flexibly control the target device mode to which they want to switch.
[0112] S205, control the first body and the second body to be in the second relative position relationship.
[0113] This step can be referred to in the relevant description of the previous embodiments, and will not be repeated here.
[0114] In any of the above embodiments of this application, considering that the appropriate power mode for an electronic device varies depending on its device mode, and in order to enable users to use or control the electronic device more conveniently, this application can also combine the current power state mode of the electronic device to switch the power state mode while controlling the switching of the electronic device's device mode. The following is in conjunction with... Figure 3 Please provide an explanation. For example... Figure 3 This illustrates another flowchart of the control method provided in this application. The method in this embodiment may include:
[0115] S301, based on the target triggering event detected by the target detection module, determine the target body where the target detection module is located.
[0116] The target body is either the first body or the second body of the electronic device, and the target detection module is either the first detection module on the first body or the second detection module on the second body.
[0117] S302, determine the first power state mode of the electronic device.
[0118] The first power state mode is one of the various power state modes supported by the electronic device. As mentioned above, the power state modes of the electronic device may include, but are not limited to, power-on state, power-off state, hibernation state, and standby state.
[0119] S303, determine the first relative positional relationship between the first body and the second body.
[0120] It is understandable that determining the target entity and the execution order of steps S302 and S303 are not limited to... Figure 2 As shown, in practical applications, the order of these execution steps can be interchanged or executed synchronously.
[0121] S304, based on the target body corresponding to the target triggering event, the first relative position relationship, and the first power state mode, determine the target device mode and the second power state mode to which the electronic device is to be switched.
[0122] The second power state mode is the power mode that the electronic device is suitable to use under the target device mode.
[0123] This second power state mode is one of several power state modes supported by the electronic device. In this application, the second power state mode may be different from the first power state mode, or it may be the same as the first power state mode.
[0124] For details on determining the target device mode, please refer to the relevant descriptions in the preceding embodiments.
[0125] There are several possibilities for determining the second power supply state mode.
[0126] For example, the second power state mode can be determined by using the prediction mode mentioned above or a separately trained power prediction model for predicting power state modes, combined with the target body, the first relative position relationship and the first power state mode prediction.
[0127] For example, multiple sets of correspondences between different bodies, relative position relationships, initial power state modes and device modes and target power state modes can be pre-configured. Based on the multiple sets of correspondences, the target power state mode corresponding to the target body, the first relative position relationship and the first power state mode can be determined, and the matched target power state mode can be determined as the second power state mode.
[0128] Of course, the second power state mode may also be related only to the first power state mode and the target device mode. Therefore, the second power state mode can also be determined based on the first power state mode and the target device mode. For example, according to the correspondence between different power state modes and the target device mode and the target power state mode, the target power state mode corresponding to the first power state mode and the target device mode is determined, and the determined target power state mode is defined as the second power state mode.
[0129] Furthermore, in order to more flexibly and accurately determine the target device mode that the electronic device should switch to, this application can also determine the event type of the target triggering event before step S304. Based on this, this embodiment can determine the target device mode and the second power state mode to which the electronic device should switch, based on the target body corresponding to the target triggering event, the first relative positional relationship and the event type, and the first power state mode.
[0130] S305, control the first body and the second body to be in the second relative position relationship.
[0131] S306, control the electronic device to switch to this second power state mode.
[0132] Specifically, if the second power state mode is the same as the first power state mode, the electronic device can be controlled to switch from the first power state mode to the second power state mode. If the second power state mode is the same as the first power state mode, the electronic device can remain in the first power state mode.
[0133] It is understandable that the order of steps S305 and S306 is not limited to... Figure 3 As shown, in practical applications, these two steps can be performed simultaneously or in reverse order, without any restrictions.
[0134] In one possible implementation, considering that the first power state mode and the second power state mode in this embodiment can be any power state mode supported by the electronic device, in order to enable the electronic device to execute the method of this embodiment in different power state modes, the electronic device can execute the operation through the aforementioned target controller in this embodiment. Since the target controller can operate when the electronic device is powered off and can control the power module to continuously supply power to the first detection module and the second detection module, it can be ensured that the electronic device can execute the operation of this embodiment in any first power state mode.
[0135] In this embodiment, when a target triggering event is detected, in addition to obtaining the target body where the target detection module for detecting the target triggering event is located and the current first relative position relationship between the first body and the second body in the electronic device, the current first power state mode of the electronic device is also determined. Based on this, this application not only determines the target device mode to which the electronic device is to be switched, but also determines the second power state mode suitable for the electronic device under the target device mode. Thus, while controlling the electronic device to switch device modes, the power state mode switching of the electronic device can be controlled synchronously, thereby eliminating the need for the user to adjust the power state mode of the electronic device separately, further improving the flexibility and convenience of the user in operating the electronic device.
[0136] To better understand the benefits of this embodiment, examples are provided:
[0137] For ease of description, we will use a tapping event as an example to illustrate the concept.
[0138] Assuming the electronic device is currently powered on (working) and in unfolded mode, meaning the angle between the first and second components is between a first and a second threshold (e.g., a laptop computer), the unfolded mode is the open-lid mode, allowing users to input information and view images on the screen. For clarity, assuming the first component has a screen, if the user taps the second component, the electronic device detects the tap. Based on this, it determines it needs to switch to closed mode and power off. The user's tapping action on the second component triggers the device to power off and snap the first component into place (in closed mode), improving convenience and flexibility.
[0139] In any of the above embodiments of this application, a first display unit may be provided on the first body of the electronic device. Furthermore, the first body of the electronic device is capable of rotating relative to the second body.
[0140] It is understandable that there can be multiple ways in which the first body rotates relative to the second body. When an electronic device supports different ways in which the first body rotates relative to the second body, the types and number of device modes that the electronic device can have will also be different.
[0141] For example, in one possible scenario, a first display unit is disposed on a first surface of the first body, and the first body is capable of a first rotation relative to the second body. This first rotation is a rotation of the first body around the second body, which changes the angle (i.e., opening / closing angle) between the first and second bodies. In other words, the first rotation is a rotation of the first body about a first axis parallel to the bottom side of the first body, which is the side where the first and second bodies are connected. For example, the bottom side is the side of the first body containing the connector used to connect to the second body.
[0142] To facilitate understanding the first rotation, the following will combine... Figure 4 The electronic device shown will be described.
[0143] Depend on Figure 4 As can be seen, the electronic device includes a first body 41 and a second body 42, wherein a first display unit 411 is provided on the first surface 410 of the first body 41.
[0144] In this application, the electronic device may have a first display unit disposed only on the first surface of the first body. Of course, this application may also have a second display unit disposed simultaneously on the second surface of the first body; there is no specific limitation. The first surface and the second surface of the first body are mutually parallel planes.
[0145] The second body also has a first surface and a second surface, and the first surface and the second surface of the second body are two parallel and opposite surfaces of the second body.
[0146] In one alternative embodiment, an interactive device may be provided on the first surface 420 of the second body 42 for realizing human-computer interaction. For example, Figure 4 Taking the keyboard 421 as an example, the interactive device can also include a keyboard and a touchpad in practical applications. The interactive device can also be a device that supports touch input and display functions; for example, it can be a display device that supports touch input and display, and this display device, as an interactive device, can support multiple functions such as a handwriting tablet and a drawing tablet. Of course, the interactive device can have other possibilities, and there are no limitations on this.
[0147] The second surface of the second body is the back shell of the second body.
[0148] exist Figure 4 In this configuration, the first axis can be an axis parallel to the lower side of the first body. Based on this, as the first body rotates around the first axis, the opening angle between the first body 41 and the second body 42 can be increased or decreased.
[0149] For example, in Figure 4 In the illustrated electronic device, the first surface 410 of the first body 41 can be made to fit against the first surface 420 of the second body 42 by rotating the first body around the first axis, such as... Figure 5 As shown. By Figure 5 It can be clearly seen that when the first surface of the first body 41 is attached to the first surface of the second body 42, the first display unit disposed on the first surface of the first body is not visible, and the user can see the second surface 412 of the first body 41.
[0150] Specifically, if a second display unit is provided on the second surface of the first body, when the electronic device is in... Figure 5 In the device mode shown, a second display unit is disposed on the second surface of the first body and can be seen by the user. Figure 5 The example below illustrates the situation where the second surface of the first body does not have a second display unit.
[0151] In another possible scenario, a first display unit is disposed on a first surface of the first body, and the first body is capable of a second rotation relative to the second body. The first rotation and the second rotation represent different types of spatial rotation.
[0152] In this application, the second rotation can be a rotation of the first body about a second axis. This second axis is perpendicular to the first axis and parallel to the first plane containing the first body (or, in other words, parallel to the first body). Through this second rotation of the first body about the second axis, either the first surface or the second surface of the first body can be made to face the first surface of the second body. Therefore, the second rotation of the first body about the second axis can be considered a rotational operation that flips the first and second surfaces of the first body.
[0153] To facilitate understanding and combination Figure 4 and Figure 6 To explain, Figure 6 for Figure 4 An example diagram of an electronic device in which the first body undergoes a second rotation relative to the second body.
[0154] exist Figure 4 and Figure 6 In this context, the second axis can be considered as an axis perpendicular to the bottom side of the first body and parallel to the first body.
[0155] exist Figure 4Based on, by Figure 6 It can be seen that by rotating the first body 41 around the second axis, the bottom side of the first body 41 and the side of the second body where the connector 43 is provided are changed from being parallel to having a certain angle, so that the first surface 410 of the first body 41 no longer faces the first surface 420 of the second body 42.
[0156] exist Figure 6 Based on this, by continuing to rotate the first body around the second axis, the second surface 412 of the first body 41 can be rotated to face the first surface 420 of the second body 42, as shown below. Figure 7 As shown.
[0157] Figure 7 This illustrates one configuration of the electronic device after the first body has been rotated about the second axis. Figure 7 It can be seen as being in Figure 1 Based on this, the rear view of the electronic device is obtained after rotating the first body about the second axis. Figure 7 As can be seen, when the first body rotates around the second axis, the bottom side 413 of the first body 41 is still connected to the second body 42. However, the first surface 410 of the first body 41 faces away from the first surface 420 of the second body 42, while the second surface of the first body 41 faces the first surface 420 of the second body 42.
[0158] Specifically, in order to enable the electronic device to support more device modes, in this application, the first body can also have a first rotation and a second rotation relative to the second body. Based on this, in Figure 7 In the device mode of the illustrated electronic device, the first body can also continue to rotate around the second body, that is, the first body can rotate around the first axis to change the angle between the second surface of the first body and the first surface of the second body. For example, in Figure 7 Based on this, if the first body is rotated about the first axis and towards the first surface of the second body, then the second surface of the first body can fit against the first surface of the second body, such as... Figure 8 As shown.
[0159] contrast Figure 1 and Figure 8 It can be seen that, Figure 8 In fact Figure 2 Based on this, the first body is first rotated around the second axis so that the second surface of the first body faces the first surface of the second body. Then, the first body is rotated around the first axis and along a direction closer to the second body, ultimately making the second surface of the first body 41 fit against the first surface of the second body 42. Figure 8As can be seen, the first display unit 411 on the first surface 410 of the first body 41 is in a visible state. At this time, the electronic device can be used as a tablet computer, that is, it is in tablet usage mode.
[0160] In the case where the first body can have a first rotation and a second rotation relative to the second body, in order to accurately represent the relative positional relationship between the first body and the second body, this application requires the relative positional relationship between the first surface and / or the second surface of the first body and the first surface of the second body.
[0161] Based on this, determining the first relative positional relationship can be achieved by determining the first relative positional relationship between the first surface and / or the second surface of the first body and the first surface of the second body. Correspondingly, in the determined target device mode, the first surface and / or the second surface of the first body has a second relative positional relationship with the first surface of the second body. Therefore, controlling the first body and the second body to be in the second relative positional relationship specifically involves controlling the first surface and / or the second surface of the first body to have a second relative positional relationship with the first surface of the second body.
[0162] It is understood that, in order for the electronic device to control the first body to perform a first rotation and a second rotation relative to the second body, in this application, the electronic device may include, in addition to the target controller, a drive motor capable of driving the first body to perform a first rotation and a second rotation relative to the second body. Based on this, after determining the target device mode, this application can control the drive motor through the target controller to drive the first body to perform a first rotation and / or a second rotation, so that the first surface and / or the second surface of the first body has a second relative positional relationship with the first surface of the second body.
[0163] It is understood that, given that the first body can have a first rotation and a second rotation relative to the second body, the specific implementation of determining the target device mode can adopt the implementation method of any of the preceding embodiments, without any limitation.
[0164] Furthermore, when the first body can have a first rotation and a second rotation relative to the second body, this application can also determine the second power state mode to which the electronic device is to be switched at the same time as determining the target device mode, so as to simultaneously control the switching of the device mode and power state mode of the electronic device. For ease of understanding, the following is combined with Figure 9 Please provide an explanation.
[0165] like Figure 9This is another schematic diagram of the control method provided in this application. The method of this embodiment is applied to an electronic device, which has a first body and a second body. A first display unit is disposed on a first surface of the first body. The first body is capable of a first rotation and a second rotation relative to the second body, wherein the first rotation and the second rotation are spatial rotations of different types, as described above. A first detection module is disposed on the first body, and a second detection module is disposed on the second body. Of course, a second display unit may also be disposed on the second surface of the first body; there is no limitation on this.
[0166] The method in this embodiment may include:
[0167] S901, based on the target detection module detecting a target triggering event, determine the event type of the target triggering event and the target body where the target detection module is located.
[0168] Among them, the event features of the target triggering event are used to characterize the number of input actions corresponding to the target triggering event.
[0169] The target entity can be either a first entity or a second entity, and the target detection module can be either a first detection module or a second detection module.
[0170] S902, determine the first relative positional relationship between the first surface and / or the second surface of the first body and the first surface of the second body.
[0171] In this application, there may be a variety of specific implementations for determining the first relative positional relationship between any one of the first surface and the second surface of the first body and the second surface of the second body, and this application does not impose any restrictions on this.
[0172] For example, in one possible scenario, an electronic device may be equipped with multiple sensors and multiple sensing components connected to a target controller. The sensors are used to sense the sensing components and obtain induced values. Based on at least one of a first rotation and a second rotation of the first body relative to the second body, the induced value sensed by at least one of the multiple sensors can change. For example, the sensors can be Hall sensors, and the sensing components can be components such as magnets that can be sensed by Hall sensors. Accordingly, the induced values of the multiple sensors are used to characterize the relative positional relationship between at least one of the first and second surfaces of the first body and the first surface of the second body.
[0173] Based on this, the target controller can determine the first relative positional relationship according to the sensing values of multiple sensors. For example, the target controller can determine the first relative positional relationship corresponding to the sensing values of multiple sensors according to the correspondence between different combinations of the sensing values of each sensor and the configured various relative positional relationships.
[0174] In another possible scenario, an angle sensor may be provided on the electronic device to sense the angle between the first body and the second body, thereby sensing the first relative positional relationship between the first surface and / or the second surface of the first body and the first surface of the second body.
[0175] Of course, the relative positional relationship between the first and second bodies can also be determined by combining the above two situations.
[0176] Understandably, in conjunction with the preceding... Figures 4 to 8 As can be seen from the introduction, when at least one of the first surfaces and the second surface of the first body has a different first relative position relative to the first surface of the second body, the electronic device is in a different device mode.
[0177] S903 determines the first power state mode of the electronic device.
[0178] S904, based on the target body and event characteristics corresponding to the target triggering event, as well as the first relative position relationship and the first power state mode, determine the target device mode and the second power state mode to which the electronic device is to be switched.
[0179] In the target device mode, the first surface and / or the second surface of the first body have a second relative positional relationship with the first surface of the second body.
[0180] To facilitate understanding, we will use the various device modes supported by electronic devices, and the target device mode and second power state mode that the electronic device needs to switch to under different device modes and power state modes as examples:
[0181] For ease of description, let's take an example where only the first display interface is provided on the first surface of the first body of the electronic device, combined with... Figures 4 to 8 Explanation:
[0182] Combination Figures 4 to 8 It can be seen that this electronic device has at least the following device modes:
[0183] In the first device mode, when the electronic device is in the second device mode, the first surface of the first body of the electronic device faces the first surface of the second body, and the first body and the second body satisfy a first angle condition. The electronic device is then determined to be in the third mode. The first angle condition can be set as needed. This first interaction condition can be an angle condition suitable for viewing the first display unit on the first surface of the first body when the user's hand or arm is in contact with or approximately parallel to the first surface of the second body, such as when the user operates an interactive device (e.g., a keyboard) on the first surface of the second body. For example, the first angle condition can be that the angle between the first body and the second body is greater than a first threshold and not greater than a second threshold. The electronic device being in the first device mode can be as follows: Figure 4 As shown.
[0184] In the second device mode, when the electronic device is in this second device mode, the first surface of the first body of the electronic device is attached to the first surface of the second body, such as... Figure 5 As shown.
[0185] In the third device mode, the second surface of the first body faces the first surface of the second body, and the first body and the second body satisfy a second angle condition. This second angle condition can be set based on the user's viewing comfort with the first display unit on the first surface of the first body. For example, the second angle condition can be that the angle between the first body and the second body is greater than a first angle value and less than a second angle value; for instance, the angle between the first body and the second body is less than 30 degrees and less than 90 degrees. The electronic device being in the third device mode can be as follows... Figure 7 As shown.
[0186] In the fourth device mode, when the electronic device is in the fourth device mode, the second surface of the first body is attached to the first surface of the second body, such as... Figure 8 As shown.
[0187] For ease of understanding, given that the electronic device has the above four device modes, the target device modes that can be triggered by target triggering events input on different devices and the first power state mode, as well as the second power state mode that the electronic device is to switch to, are illustrated below with several possible scenarios:
[0188] For ease of understanding and description, we will take the target triggering event as a knocking event as an example. The event type of the target triggering event is the number of knocks in the knocking event, and we will assume that both the first detection module and the second detection module are gravity sensors.
[0189] In the first scenario: the electronic device is in the first device mode (e.g., Figure 4Taking the device mode shown and the first power state mode of the electronic device as the working state as an example:
[0190] In this first scenario, if the user taps the second entity twice (to... Figure 4 If a keypad is provided on the first surface of the second body for keystrokes, then the gravity sensor on the second body can detect a keystroke event of two keystrokes. Based on this, the target controller of the electronic device, responding to the keystroke event of two keystrokes on the second body, and based on the first device mode and the first power state mode being in operation, can determine that the electronic device needs to be switched to the second device mode (e.g., ...). Figure 5 The device mode shown is used to determine whether the power state mode of the electronic device needs to be switched from the active state to the power off state. Based on this, when the electronic device is in... Figure 4 In the device mode shown, the user can trigger the electronic device to automatically close the lid and turn off by tapping the second body twice.
[0191] In this first scenario, if the user taps the second body three times (on the first surface of the second body), the gravity sensor on the second body can detect the three-tapping event and report it to the target controller. The target controller, responding to the three-tapping event on the second body, and based on the first device mode and first power state mode as the operating mode, can determine that the electronic device needs to be switched to a fourth device mode (e.g., ...). Figure 8 The device mode shown is the tablet device mode, and the power state mode is maintained as the first power state mode, that is, the target device mode is determined as the fourth device mode, and the second power state mode is the working state.
[0192] Based on this, Figure 4 In the device mode shown, by tapping the second body three times in succession, the user can trigger the electronic device to control the first body to rotate a second time relative to the second body, and then control the first body to rotate a first time relative to the second body, so as to switch the first device mode to the fourth device mode, so that the electronic device is in tablet mode, and the user can directly operate the first display unit on the first surface of the first body or view the display content in the first display unit.
[0193] In the second scenario, the electronic device is in a second device mode (e.g., Figure 5 (As shown in the device mode), and taking the first power state mode of the electronic device as the off state as an example:
[0194] In this second scenario, if the user taps the first body twice (on its second surface), the gravity sensor on the first body will detect the tapping event, indicating two taps. Based on this, the target controller, responding to the tapping event (two taps), determines the target device mode as the first device mode and the second power state as the on state, based on the second device mode and the electronic device being in a powered-off state. Therefore, when the electronic device is closed and powered off, a user tapping the first body twice can automatically switch the electronic device to the first device mode (e.g.,...). Figure 4 The device will automatically power on (as shown in the device mode), allowing users to use the electronic device directly as a laptop without needing to perform a separate power-on operation. Of course, the control process is similar for the first power state mode, which is hibernation or sleep mode, and will not be described further.
[0195] In this second scenario, if the user taps the first device three times, the gravity sensor on the first device detects the three taps and reports the event to the target controller. Based on this, the target controller, responding to the tap event and considering the second device mode and the electronic device being powered off, determines the target device mode to the fourth device mode (e.g., ...). Figure 8 As shown in the figure, the second power state mode to be switched to is the power-on state.
[0196] Understandably, in the second scenario, if the user taps three times (or four times) on the first device, it could also trigger the determination of the target device mode as a third device mode (e.g., Figure 7 The power state mode shown is shown, and the second power state mode is the power-on state.
[0197] Of course, in the second scenario, if the current power state mode of the electronic device is in sleep mode, the target power mode can be determined by tapping the first body two or three times, and the second power state mode can be determined to be power-on. The details will not be elaborated further.
[0198] In the third scenario, the electronic device is in a fourth device mode (such as...) Figure 8 (As shown in the device mode), and taking the first power state mode of the electronic device as either power-on or sleep mode as an example:
[0199] In this third scenario, if the user taps the first body twice (on its first surface), the gravity sensor on the first body will detect the tapping event as a two-tapping action. Based on this, the target controller, responding to the two-tapping event, determines the target device mode as the first device mode (e.g., based on the fourth device mode and whether the electronic device is powered on or in sleep mode). Figure 4 The device mode shown is indicated, and the second power state mode is the power-on state.
[0200] Combination Figure 4 and Figure 8 As can be seen, taking a laptop computer as an example, in Figure 8 The device mode shown is actually a tablet usage mode, and Figure 4 The device mode shown is a laptop usage mode. Based on this, when the user is using the first display unit in tablet usage mode, the user can wake up the electronic device by tapping the first body twice through the hoist, and switch the electronic device to laptop usage mode to use the first display unit.
[0201] In this third scenario, if the user taps the first device three times, the gravity sensor on the first device will detect the three-tap event and report it to the target controller. Based on this, the target controller, responding to the three-tap event, and considering the fourth device mode and whether the electronic device is powered on or in sleep mode, determines the target device mode to the second device mode (e.g., ...). Figure 5 The device mode shown is as follows, and the second power state mode is the off state, thereby realizing automatic shutdown and controlling the electronic device to close the cover, improving the convenience of shutting down and closing the cover.
[0202] Of course, in practical applications, electronic devices can also support switching between other device modes and power state modes, which will not be elaborated here.
[0203] It is understandable that the above explanation is based on the example of a first display unit being provided only on the first surface of the first body. If a second display unit is provided on the second surface of the first body, then the electronic device can support more device modes. Correspondingly, different device modes and target device modes and power state modes that can be triggered by target trigger events can be configured. The details will not be elaborated further.
[0204] S905, control the first surface and / or the second surface of the first body to have a second relative positional relationship with the first surface of the second body.
[0205] S906, control the electronic device to switch to the second power state mode.
[0206] The above steps S905 and S906 can be found in the relevant descriptions of the previous embodiments, and will not be repeated here.
[0207] In any of the above embodiments of this application, in order to reduce the possibility of misjudgment by the first detection module and the second detection module, and thus incorrectly determine the existence of a target triggering event, this application may also provide an audio detection module in the electronic device. For example, at least one audio detection module may be provided on the first body, or two audio detection modules may be provided near the bottom side where the first body connects to the second body.
[0208] Based on this, before determining the target body where the target detection module is located, this application can also obtain the audio signal sensed by the audio detection module. Accordingly, in response to the target detection module detecting a target triggering event and the audio signal indicating the existence of the target triggering event, the target body where the target detection module is located is determined.
[0209] In this case, the target triggering event can be a tapping event, a click event, or any other event that can trigger the generation of an audio signal, without any restrictions.
[0210] In order to identify whether the audio signal detected by the audio detection module is generated by the target triggering event, this application has found through testing that the audio signal generated by events such as tapping or clicking on an electronic device has a different frequency domain distribution than environmental noise and user voice input. Therefore, this application can pre-train an audio recognition model capable of recognizing the target triggering event through machine learning. Based on this, the recognition result can be obtained using the audio recognition model based on the audio signal detected by the audio detection module. This recognition result is used to characterize whether the audio signal detected by the audio detection module is generated by the target triggering event.
[0211] It is understandable that if the target detection module detects a target trigger event and the audio signal detected by the audio detection module also indicates the existence of a target trigger event, it means that a target trigger event does exist on the electronic device, thereby reducing false judgments and incorrect adjustments to the device mode of the electronic device.
[0212] In any of the above embodiments of this application, considering that during the process of a user moving an electronic device, accidental touches or collisions with other objects may cause the electronic device to misjudge the presence of a target triggering event, this application can further reduce false detections of target triggering events by obtaining acceleration data detected by the first detection module and / or the second detection module before determining the target body where the target detection module is located in response to a target triggering event; and determining the device attitude of the electronic device based on the acceleration data.
[0213] If the device posture indicates that the electronic device is in a moving state or other unusable device posture, it will not respond to the target triggering event detected by the target detection module.
[0214] Accordingly, the electronic device can respond to the device posture indicating that the electronic device is in a stationary state or the target device posture, and the target detection module detects the target trigger event, thereby determining the target body where the target detection module is located. The target device posture indicates that the electronic device is placed on a supporting plane or a supporting inclined surface; for example, the electronic device is placed flat on a table or inclined on a heat sink.
[0215] Furthermore, this application also provides an electronic device. For example... Figure 10 This diagram illustrates a possible structural composition of an electronic device provided in this application. The electronic device in this embodiment may include:
[0216] First ontology 1001;
[0217] Second body 1002;
[0218] The first detection module 1003 is disposed on the first body 1001;
[0219] The second detection module 1004 is disposed on the second body 1002;
[0220] And a target controller 1005 connected to the first detection module 1003 and the second detection module 1004.
[0221] The target controller 1005 is configured to: determine the target entity where the target detection module is located based on a target triggering event detected by the target detection module (the target entity being either the first entity or the second entity, and the target detection module being either the first detection module or the second detection module); determine a first relative positional relationship between the first entity and the second entity; determine a target device mode to which the electronic device is to be switched based on the target entity corresponding to the target triggering event and the first relative positional relationship, wherein the first entity and the second entity have a second relative positional relationship, which is different from the first relative positional relationship; and control the first entity and the second entity to be in the second relative positional relationship.
[0222] Furthermore, the electronic device may also include a power module.
[0223] The target controller can operate when the electronic device is powered off.
[0224] The target controller is also used to control the power module to continuously supply power to the first detection module and the second detection module.
[0225] Furthermore, the electronic device may also include a drive motor connected to a target controller, the drive motor being used to drive the first body to rotate relative to the second body under the control of the target controller, so that the first body and the second body are in a second relative position relationship.
[0226] This application also provides a computer program product, including computer-readable instructions, which, when executed on an electronic device, cause the electronic device to implement any of the control methods provided in this application.
[0227] This application also provides a computer-readable storage medium that carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement any of the control methods provided in this application.
[0228] It should also be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. In addition, in the device embodiment drawings provided in this application, the connection relationship between modules indicates that they have a communication connection, which can be implemented as one or more communication buses or signal lines.
[0229] Through the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware, or it can be implemented by special-purpose hardware including application-specific integrated circuits, special-purpose CPUs, special-purpose memory, special-purpose components, etc. Generally, any function performed by a computer program can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be diverse, such as analog circuits, digital circuits, or special-purpose circuits. However, for this application, software program implementation is more often the preferred implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a readable storage medium, such as a computer floppy disk, USB flash drive, mobile hard disk, ROM, RAM, magnetic disk, or optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, training equipment, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0230] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product.
[0231] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, training device, or data center to another website, computer, training device, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device or data center that integrates one or more available media. The available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state drives (SSDs)).
Claims
1. A control method applied to an electronic device, comprising: Based on the target triggering event detected by the target detection module, the target body where the target detection module is located is determined. The target body is either the first body or the second body of the electronic device. The first body is provided with a first detection module, and the second body is provided with a second detection module. The target detection module is either the first detection module or the second detection module. Determine the first relative positional relationship between the first body and the second body; Based on the target body corresponding to the target triggering event and the first relative position relationship, the target device mode to which the electronic device is to be switched is determined. In the target device mode, the first body and the second body have a second relative position relationship, which is different from the first relative position relationship. Control the first body and the second body to be in the second relative position relationship.
2. The control method according to claim 1 further includes: Determine the event characteristics of the target triggering event, wherein the event characteristics are used to characterize the number of input actions corresponding to the target triggering event; The step of determining the target device mode to which the electronic device should switch based on the target body corresponding to the target triggering event and the first relative positional relationship includes: Based on the target entity and event characteristics corresponding to the target triggering event and the first relative positional relationship, the target device mode to which the electronic device is to be switched is determined.
3. The control method according to claim 1 further includes: Determine the first power state mode of the electronic device; The step of determining the target device mode to which the electronic device should switch based on the target body corresponding to the target triggering event and the first relative positional relationship includes: Based on the target body corresponding to the target triggering event, the first relative position relationship, and the first power state mode, determine the target device mode and the second power state mode to which the electronic device is to be switched; The control method further includes: controlling the electronic device to switch to the second power state mode.
4. The control method according to claim 3, wherein the electronic device includes a target controller, the target controller being able to operate when the electronic device is powered off, and being able to control the power module to continuously supply power to the first detection module and the second detection module; The first power state mode and the second power state mode are one of the multiple power state modes that the electronic device has.
5. The control method according to any one of claims 1 to 4, wherein a first display unit is provided on the first surface of the first body, and the first body is capable of a first rotation and a second rotation relative to the second body, wherein the first rotation and the second rotation are spatial rotations of different types; Determining the first relative positional relationship between the first body and the second body includes: Determine a first relative positional relationship between the first surface and / or the second surface of the first body and the first surface of the second body, wherein the second surface of the first body is parallel to the first surface of the first body; In the target device mode, the first surface and / or the second surface of the first body has a second relative positional relationship with the first surface of the second body; Controlling the first body and the second body to be in the second relative position relationship includes: Control the first surface and / or the second surface of the first body to have a second relative positional relationship with the first surface of the second body.
6. The control method according to claim 5, wherein the electronic device comprises: The target controller, and the drive motor capable of driving the first body to perform a first rotation and a second rotation relative to the second body; The control of the first surface and / or the second surface of the first body to have a second relative positional relationship with the first surface of the second body includes: The target controller controls the drive motor to drive the first body to perform a first rotation and / or a second rotation, so that the first surface and / or the second surface of the first body has a second relative positional relationship with the first surface of the second body.
7. The control method according to claim 1, further comprising: Obtain the audio signal sensed by the audio detection module; The step of determining the target entity where the target detection module is located based on the target triggering event detected by the target detection module includes: In response to the target detection module detecting a target triggering event and the audio signal indicating the presence of the target triggering event, the target body where the target detection module is located is determined.
8. The control method according to claim 1, further comprising: Obtain the acceleration data detected by the first detection module and / or the second detection module; The device attitude of the electronic device is determined based on the acceleration data; The step of determining the target entity where the target detection module is located based on the target triggering event detected by the target detection module includes: In response to the device posture indicating that the electronic device is in a stationary state or a target device posture, and the target detection module detects a target trigger event, the target body where the target detection module is located is determined, and the target device posture indicates that the electronic device is placed on a supporting plane or a supporting inclined plane.
9. An electronic device, comprising: first ontology; Second entity; The first detection module is installed on the first body; The second detection module is installed on the second body; And a target controller connected to the first detection module and the second detection module; The target controller is configured to determine the target entity where the target detection module is located based on the target triggering event detected by the target detection module, wherein the target entity is either the first entity or the second entity, and the target detection module is either the first detection module or the second detection module; and determine a first relative positional relationship between the first entity and the second entity. Based on the target body corresponding to the target triggering event and the first relative position relationship, the target device mode to which the electronic device is to be switched is determined. In the target device mode, the first body and the second body have a second relative position relationship, which is different from the first relative position relationship. The first body and the second body are controlled to be in the second relative position relationship.
10. The electronic device according to claim 9, further comprising: Power module; The target controller is capable of operating when the electronic device is powered off; The target controller is also used to control the power module to continuously supply power to the first detection module and the second detection module.