Equipment control method and electronic equipment

By setting different operating states in smart devices and using inertial and touch sensors to detect the environment and user interaction, the device's condition-triggered state switching and parameter adjustment are realized, solving the high power consumption problem caused by the sensors always being active, and improving the device's environmental adaptability and user experience.

CN121934432APending Publication Date: 2026-04-28LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-01-31
Publication Date
2026-04-28

AI Technical Summary

Technical Problem

Smart companion devices consume a lot of power during operation because the sensors are always active, making them difficult to manage effectively.

Method used

By setting different operating states for the first and second devices, and using inertial and touch sensors to detect environmental parameters and user interactions, condition-triggered state switching and parameter adjustments are achieved, optimizing sensor usage to reduce power consumption.

Benefits of technology

Effectively manage the operating status of sensors, reduce device power consumption, and improve device adaptability to the environment and user interaction experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121934432A_ABST
    Figure CN121934432A_ABST
Patent Text Reader

Abstract

The invention discloses an equipment control method and electronic equipment. The method comprises the following steps: determining a current running state of first equipment; determining a target module of the first equipment in a running state under the current running state, when the first equipment is in a first running state, the target module comprises at least part of first sensors in a first sensor group, and when the first equipment is in a second running state, the target module at least comprises the first sensor group and a second sensor group; the second sensor group is a sensor included in the first device except the first sensor group, and the first device in the second operation state is an interactive device; determining a current scene of the first equipment through parameter information detected by at least part of first sensors in a first sensor group in the first equipment; and adjusting operation parameters of the target module based on the current scene of the first equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a device control method and electronic device. Background Technology

[0002] Smart companion devices typically require the use of numerous sensors and algorithms. During device operation, it is usually necessary to keep all sensors running, which results in high power consumption. Summary of the Invention

[0003] In view of the above, this application provides a device control method and an electronic device, the specific solutions of which are as follows:

[0004] A device control method, comprising:

[0005] Determine the current operating status of the first device;

[0006] The target module in which the first device is in operation under the current operating state is determined; wherein, when the first device is in a first operating state, the target module includes at least some of the first sensors in the first sensor group; when the first device is in a second operating state, the target module includes at least the first sensor group and a second sensor group, wherein the second sensor group consists of sensors in the first device other than the first sensor group, and the first device in the second operating state is an interactive device;

[0007] The current scene of the first device is determined by the parameter information detected by at least some of the first sensors in the first sensor group of the first device;

[0008] Adjust the operating parameters of the target module based on the current scenario of the first device.

[0009] Furthermore, it also includes:

[0010] When the first device is in the first operating state, if it is determined that the first device meets the target conditions, the first device is controlled to switch from the first operating state to the second operating state.

[0011] The determination that the first device meets the target condition includes at least one of the following:

[0012] Determine that the duration during which the first device is in the first operating state reaches the target duration;

[0013] It is determined that the environmental parameters detected by the target sensor in the first sensor group have reached the target threshold.

[0014] Furthermore, the first sensor group includes at least an inertial sensor and a touch sensor. The touch sensor is disposed on the touch surface of the first device, and the touch surface is curved. Sensors on the first device used for interacting with objects are disposed on the touch surface.

[0015] The step of determining that the environmental parameters detected by the target sensor in the first sensor group have reached the target threshold includes:

[0016] When the first device is in the first operating state, inertial data is detected by the inertial sensor;

[0017] If it is determined that the inertial data reaches a first threshold, the first device is controlled to switch from a first sub-state of the first operating state to a second sub-state. In the second sub-state, the touch sensor switches to the operating state. In the second sub-state, the power consumption of the first device is greater than that of the first device in the first sub-state.

[0018] When the first device is in the second sub-state, touch capacitance data is detected by the touch sensor;

[0019] If it is determined that the touch capacitance data reaches the second threshold and the duration of the touch capacitance data reaching the second threshold reaches the target duration, it is determined that the environmental parameter detected by the target sensor in the first sensor group reaches the target threshold, and the first device is controlled to switch from the second sub-state to the second operating state, wherein the power consumption of the first device in the second operating state is greater than the power consumption of the first device in the second sub-state.

[0020] Furthermore, it also includes:

[0021] When the first device is in the second sub-state, the object interacting with the first device is authenticated by the inertial data and the touch capacitive data, and the first device determines the interaction between the object and the first device by the inertial data and the touch capacitive data.

[0022] If the identity authentication is successful and the environmental parameters detected by the target sensor reach the target threshold, the first device is controlled to switch from the second sub-state to the second operating state.

[0023] Furthermore, the step of authenticating the object interacting with the first device using the inertial data and the touch capacitance data includes:

[0024] The amplitude and frequency of the object's movements are determined using the inertial data.

[0025] The touch parameters of the object are determined by the touch capacitance data, and the touch parameters include at least one of touch trajectory, touch force, and touch speed;

[0026] Determine whether the amplitude of the movement, the frequency of the movement, and the touch parameters meet the authentication conditions;

[0027] If it is determined that the amplitude of the action, the frequency of the action, and the touch parameters meet the authentication conditions, the identity authentication is confirmed to be successful, and the first device is controlled to switch from the second sub-state to the second operating state.

[0028] If it is determined that at least one of the action amplitude, action frequency, and touch parameters does not meet the authentication conditions, the authentication is determined to be unsuccessful, and the first device is controlled to switch from the second sub-state to the first sub-state.

[0029] Furthermore, determining that the duration for which the first device is in the first operating state reaches the target duration includes:

[0030] Determine the first time period in which the current moment occurs;

[0031] The target duration is determined by a pre-established correspondence between time periods and durations, wherein the correspondence between time periods and durations is: the target durations corresponding to different time periods determined in advance based on the state switching information of the first device under different time periods in historical data;

[0032] The duration for which the first device is in the first operating state reaches the target duration is determined.

[0033] Furthermore, it also includes:

[0034] The device detection sensor in the first sensor group detects whether a second device exists within the target range of the first device, and the second device is an electronic device of the same type as the first device.

[0035] If it is determined that the second device exists within the target range, the first device is controlled to enter a second operating state, and the device interacts with the second device through the device detection sensor.

[0036] Furthermore, the step of detecting the presence of a second device within the target range of the first device using the device detection sensor in the first sensor group includes:

[0037] The detection interval duration is determined based on the current scenario of the first device;

[0038] When the detection interval is reached, the device detection sensor in the first sensor group detects whether a second device exists within the target range of the first device.

[0039] Furthermore, adjusting the operating parameters of the target module based on the current scenario of the first device includes:

[0040] Obtain historical data, which includes historical operating data of the target module in the first device under different time periods and different scenarios;

[0041] Based on the current time, the current scenario, and the historical data, the operating parameters of the target module of the first device are determined.

[0042] An electronic device, comprising:

[0043] A first sensor group, comprising a plurality of first sensors;

[0044] The second sensor group includes a plurality of second sensors;

[0045] A processor is configured to determine the current operating state of the electronic device; determine a target module in which the electronic device is operating under the current operating state; wherein, when the electronic device is in a first operating state, the target module includes at least some of the first sensors in the first sensor group; when the electronic device is in a second operating state, the target module includes at least the first sensor group and the second sensor group; and the electronic device in the second operating state is an interactive device; determine the current scene of the electronic device through parameter information detected by at least some of the first sensors in the first sensor group; and adjust the operating parameters of the target module based on the current scene of the electronic device. Attached Figure Description

[0046] To more clearly illustrate the technical solutions in the embodiments or related technologies of this application, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0047] Figure 1 This is a flowchart of a device control method disclosed in an embodiment of this application;

[0048] Figure 2 This is a flowchart of a device control method disclosed in an embodiment of this application;

[0049] Figure 3 This is a schematic diagram of the structure of a first device disclosed in an embodiment of this application;

[0050] Figure 4This is a schematic diagram of the external structure of a first device disclosed in an embodiment of this application;

[0051] Figure 5 This is a flowchart of a device control method disclosed in an embodiment of this application;

[0052] Figure 6 This is a schematic diagram illustrating the correspondence between four scenarios and parameter information detected by at least some of the first sensors disclosed in an embodiment of this application;

[0053] Figure 7 This is a flowchart of a device control method disclosed in an embodiment of this application;

[0054] Figure 8 This is a flowchart of a device control method disclosed in an embodiment of this application;

[0055] Figure 9 This is a schematic diagram of the structure of an electronic device disclosed in an embodiment of this application. Detailed Implementation

[0056] 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 for explaining specific embodiments only and is not intended to limit the scope of this application.

[0057] The embodiments of this application will now be described with reference to the accompanying drawings. 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 equally applicable to similar technical problems.

[0058] 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.

[0059] This application discloses a device control method, the flowchart of which is shown below. Figure 1 As shown, it includes:

[0060] Step S11: Determine the current operating status of the first device;

[0061] Step S12: Determine the target module that the first device is in the current operating state. When the first device is in the first operating state, the target module includes at least some of the first sensors in the first sensor group. When the first device is in the second operating state, the target module includes at least the first sensor group and the second sensor group. The second sensor group is the sensors included in the first device other than the first sensor group. The first device in the second operating state is an interactive device.

[0062] Step S13: Determine the current scene of the first device by using parameter information detected by at least some of the first sensors in the first sensor group of the first device;

[0063] Step S14: Adjust the operating parameters of the target module based on the current scenario of the first device.

[0064] The first device may include multiple sensors, such as a first sensor group and a second sensor group, wherein the first sensor group includes multiple first sensors and the second sensor group may include multiple second sensors.

[0065] The sensors in the first sensor group are used to detect scene parameters so as to determine the current scene of the first device based on the scene parameters. The second sensor group includes the second sensors in the first device other than those in the first sensor group.

[0066] The first device can be in different operating states, such as: a first operating state or a second operating state. When the first device is in the first operating state, only at least some of the first sensors in the first sensor group are in the operating state, while the other sensors are not in the operating state. When the first device is in the second operating state, the first device includes at least the first sensor group and the second sensor group in the operating state. Of course, it may also include other functional modules, which are not specifically limited here.

[0067] Among them, the first device in the second operating state is an interactive device, that is, the first device in the second operating state can interact with an object, which can be a user or other devices; since the target module in the first device in the second operating state includes at least the first sensor group and the second sensor group when the first device is in the second operating state, it can be determined that the first device in the second operating state is in a state where the functional modules are fully running, or at least partially running.

[0068] Based on this, the first device in this embodiment is itself an interactive device. However, the first device can only interact with the object when it is in the second operating state. When it is in the first operating state, it cannot interact with the object. When the first device is in the first operating state, the target module in the operating state only has at least some of the sensors in the first sensor group. Therefore, it can be determined that the first operating state can be a standby state or a hibernation state, etc.

[0069] By setting at least two different operating states for the first device, the problem of high power consumption caused by the first device always being in the second operating state and all functional modules or devices in the first device always being in the operating state can be avoided.

[0070] Specifically, the first step is to determine the current operating status of the first device, that is, whether the first device is currently in the first operating state, the second operating state, or other operating states. By determining the current operating status of the first device, a basis is provided for determining the target module that needs to be adjusted in operation parameters, thus ensuring the correctness of subsequent operations.

[0071] The target module refers to the module that is currently in operation in the first device. This target module is only used to summarize the modules that are currently in operation. For example, if the modules in the first device that are currently in operation include sensor 1 and sensor 2, then sensor 1 and sensor 2 are collectively referred to as the target module that is currently in operation in the first device. In this case, the target module includes sensor 1 and sensor 2. Or, if every device in the first device is in operation in the first device, then all modules in the first device are collectively referred to as the target module that is currently in operation in the first device. In this case, the target module includes all modules in the first device.

[0072] After determining the current operating state of the first device, it is necessary to further determine the target modules that are operating in the first device under the current operating state. The modules operating in the first device are fixed when the first device is in different operating states. For example, when the first device is in the first operating state, only at least some of the first sensors in the first sensor group are operating, so the target modules only include at least some of the first sensors in the first sensor group; or, when the first device is in the second operating state, both the first sensor group and the second sensor group are operating, and at this time, other modules that are operating in the first device may also include: a speech recognition module, an algorithm module, etc.

[0073] At least some of the first modules in the first sensor group of the first device can detect environmental parameters. Moreover, regardless of whether the first device is in the first operating state or the second operating state, at least some of the first modules in the first sensor group are always in the operating state. Therefore, environmental parameters can be detected by at least some of the first modules in the first sensor group, and the current scene of the first device can be determined based on the detected parameter information, such as determining whether the current scene of the first device is an indoor scene or an outdoor scene, whether it is walking or running, whether it is in a shopping mall or a library, etc.

[0074] After determining the current scenario of the first device and the target module that is currently running in the first device, the operating parameters of the target module can be adjusted based on the current scenario of the first device, so that the operation of the target module in the first device is more adapted to the current scenario of the first device, while also avoiding high power consumption of the first device.

[0075] For example, if the parameter information detected by at least some of the first sensors in the first sensor group determines that the current scene of the first device is inside a library, and determines that the first device is currently in the second operating state, that is, all modules of the first device are in the operating state, then by analyzing the current scene, it is determined that the current scene is a relatively quiet environment. Therefore, the number of interactions when the first device is used as an interactive device can be reduced, the interactive effect presented during interaction can be reduced, and the volume during interaction can be reduced, etc.

[0076] For example, if the parameter information detected by at least some of the first sensors in the first sensor group determines that the current scene of the first device is inside a subway, and determines that the first device is currently in the first operating state, that is, at least some of the first sensors in the first sensor group are in the operating state, then by analyzing the current scene, it is determined that the current scene is a relatively noisy environment. Therefore, the audio acquisition module in the first device can be turned off to avoid acquiring relatively noisy or invalid sounds.

[0077] Furthermore, in the device control algorithm disclosed in this embodiment, adjusting the operating parameters of the target module based on the current scenario of the first device can be specifically as follows:

[0078] Obtain historical data, including historical operating data of the target module in the first device under different time periods and scenarios; determine the current operating parameters of the target module of the first device based on the current time, the current scenario and historical data.

[0079] When adjusting the operating parameters of the target module, it is necessary to combine historical data for adjustment. That is, determine the operating parameters of the target module in the historical data of the scene and time period corresponding to the current scene and time period of the first device, and adjust the operating parameters of the target module currently in operation based on the operating parameters of the target module corresponding to the corresponding scene and time period in the historical data. This is to ensure the accuracy of the operating parameters of the target module after adjustment and to avoid problems such as the adjusted target module being incompatible with the current scene or the user's usage habits.

[0080] By adjusting the operating parameters of the target module in operation based on the current scene of the first device, the adaptability of the first device to the scene is enhanced, precise and adaptive control is achieved, the user's interactive experience when the first device is used as an interactive device is improved, and the user's experience with the first device is enhanced.

[0081] Furthermore, it should be noted that since at least some of the first sensors in the first sensor group used for detecting environmental parameters are always in operation regardless of the operating state of the first device, in this embodiment, the current scene of the first device can be determined first by the parameter information detected by at least some of the first sensors in the first sensor group; then, the current operating state of the first device is determined in order to identify the target module that is in operation under the current operating state of the first device; so that the operating parameters of the target module can be adjusted based on the current scene of the first device. That is, the steps of determining the current scene of the first device and determining the current operating state of the first device and the target module that is in operation under the current operating state of the first device can be executed in any order or simultaneously, and no specific limitation is made here.

[0082] The device control method disclosed in this embodiment first determines the target module that the first device is currently in operation. The number of sensors included in the target module varies depending on the operating state of the first device. The current scene of the first device is determined by the parameter information detected by at least some of the first sensors in the first sensor group of the first device that is always in operation. Based on the current scene of the first device, the operating parameters of the target module are adjusted. This ensures that, regardless of the operating state, only at least some of the first sensors in the first sensor group are always in operation, rather than all of them, thus avoiding the problem of increased power consumption caused by all sensors always being in operation. In addition, regardless of the operating state of the first device, the operating parameters of the target module that is currently in operation can be adjusted based on the current scene of the first device to ensure that the operation of the first device is related to the current scene and improve the user experience.

[0083] This embodiment discloses a device control method, the flowchart of which is shown below. Figure 2 As shown, it includes:

[0084] Step S21: Determine the current operating status of the first device;

[0085] Step S22: When it is determined that the first device is in the first operating state, if it is determined that the first device meets the target conditions, control the first device to switch from the first operating state to the second operating state;

[0086] Step S23: Determine the target module in the second operating state of the first device;

[0087] Step S24: Determine the current scene of the first device by using parameter information detected by at least some of the first sensors in the first sensor group of the first device;

[0088] Step S25: Adjust the operating parameters of the target module based on the current scenario of the first device.

[0089] The current operating state of the first device is determined, and the target module that is in the operating state of the first device in the current operating state is further determined; the current scene of the first device is determined by the parameter information detected by at least some of the first sensors in the first sensor group of the first device; the operating parameters of the target module are adjusted based on the current scene of the first device, avoiding the problem of increased power consumption caused by all sensors always being in the operating state; in addition, it ensures that the operation of the first device is related to the current scene, improving the user experience.

[0090] Furthermore, if the first device is currently in the first operating state and it is determined that the first device meets the target conditions, then the first device is controlled to switch from the first operating state to the second operating state. The target conditions include at least one of the following: determining that the duration of the first device in the first operating state reaches the target duration; determining that the environmental parameters detected by the target sensors in the first sensor group reach the target threshold.

[0091] The first device includes at least a first operating state and a second operating state. When the first device is in the first operating state, it can switch from the first operating state to the second operating state. When the first device is in the second operating state, it can also switch from the second operating state to the first operating state.

[0092] If the first device meets the target condition when it is in the first operating state, the first device is switched from the first operating state to the second operating state, that is, the first device is switched from the state in which only at least some of the first sensors in the first sensor group are operating to the state in which at least the first sensor group and the second sensor group are operating.

[0093] Specifically, the first device meeting the target condition can be defined as: determining that the duration of the first device in the first operating state reaches the target duration.

[0094] Once the first device is determined to have been in the first operating state for the target duration, it will be switched to the second operating state to achieve the active wake-up of the first device at regular intervals.

[0095] When the first device is actively woken up at a set time, there is no need for interaction. Therefore, after the first device switches to the second running state, there is no need to interact with the object. At this time, each sensor in the target module that is in the running state when the first device is in the second running state can be directly controlled to perform detection. The information of the first device is updated based on the data obtained after detection. Then, the first device is switched from the second running state back to the first running state and the timer is restarted. If the device is not passively woken up to the second running state before the target duration is reached after the timer is restarted, then the first device needs to be actively switched to the second running state again when the target duration is reached after the timer is restarted, and the information is updated again.

[0096] The process of updating the information of the first device based on detected data can be as follows: Based on the data detected by each sensor, determine the current scene and the user's status of the first device, and then use this information as the current information of the first device to update its information. For example, after the first device is actively woken up at a set time, it determines through the detection of various sensors that it is currently on a subway, the user of the first device does not need to interact with the first device, and there are no other devices that need to interact with the first device. This information is then used as the current information of the first device. Afterward, the first device is switched to a first operating state, i.e., low-power operation, ensuring that only at least some of the first sensors are in operating state, so that the first device can receive passive wake-up commands or information during low-power operation.

[0097] In addition, the first device meeting the target condition can also be: determining that the environmental parameters detected by the target sensor in the first sensor group reach the target threshold.

[0098] In the device control method disclosed in this embodiment, the first device is controlled to switch from a first operating state to a second operating state. In addition to the active wake-up method, the switch can also be performed by the passive wake-up method. The passive wake-up method can be specifically: based on the environmental parameters detected by the target sensor in the first sensor group reaching the target threshold, the first device is controlled to switch to the second operating state.

[0099] The target sensor can be one of the sensors in the first sensor group or multiple sensors. As long as the environmental parameters detected by the target sensor reach the target threshold, the operating state of the first device is switched to the second operating state.

[0100] If there are multiple target sensors, it is necessary to ensure that the parameters detected by each target sensor reach the target threshold corresponding to that sensor. If the parameter detected by one target sensor does not reach its corresponding target threshold, the passive wake-up of the first device (i.e., switching the first device from the first running state to the second running state) can be omitted.

[0101] For example, when there are multiple target sensors, these target sensors can be inertial sensors and touch sensors. The passive wake-up of the first device can be performed when the data detected by the inertial sensors and touch sensors reach their respective target thresholds. At this time, it is necessary to ensure that when the first device is in the first operating state, both the inertial sensors and touch sensors are in the operating state. That is, when the first device is in the first operating state, at least some of the first sensors in the operating state must include inertial sensors and touch sensors. At this time, the inertial sensors and touch sensors can collect relevant data simultaneously and make judgments simultaneously to determine whether both results indicate that the corresponding target thresholds have been reached, so as to determine whether the passive wake-up of the first device needs to be performed.

[0102] Alternatively, the data detected by the inertial sensor and the touch sensor can be judged sequentially. That is, the touch sensor will be controlled to run only when the data detected by the inertial sensor meets certain conditions, and the touch sensor will be used to detect data. The first device will be controlled to perform passive wake-up only when the data detected by the touch sensor meets the corresponding conditions.

[0103] Specifically, the process can be as follows: When the first device is in a first operating state, inertial data is detected by an inertial sensor; if it is determined that the inertial data reaches a first threshold, the first device is controlled to switch from a first sub-state of the first operating state to a second sub-state, and in the second sub-state, the touch sensor switches to the operating state, and the power consumption of the first device in the second sub-state is greater than that in the first sub-state; when the first device is in the second sub-state, touch capacitance data is detected by a touch sensor; if it is determined that the touch capacitance data reaches a second threshold, and the duration for which the touch capacitance data reaches the second threshold reaches a target duration, it is determined that the environmental parameter detected by the target sensor in the first sensor group reaches the target threshold, and the first device is controlled to switch from the second sub-state to a second operating state, and the power consumption of the first device in the second operating state is greater than that in the second sub-state.

[0104] In this case, when the first device is in the first operating state, at least a portion of the first sensors in the operating state may include inertial sensors, but will not include touch sensors, in order to further reduce the power consumption of the first device when it is in the first operating state.

[0105] When the first device is in the first operating state, inertial data is detected by the inertial sensor in the operating state. The detected inertial data is compared with a first threshold. If it does not reach the first threshold, it indicates that the current operating amplitude is small and inertial data detection needs to continue. If it reaches the first threshold, it indicates that the user may need to wake up the first device. Therefore, it can be further determined that the touch sensor should be woken up first, that is, the touch sensor is switched to the operating state, and the touch sensor detects touch capacitance data. The detected touch capacitance data is compared with a second threshold. When the touch capacitance data does not reach the second threshold, and the duration of reaching the second threshold reaches the target duration, it indicates that the user has not woken up the first device. Therefore, the touch sensor can be controlled to continue to sleep or switch to the off state, and monitoring can continue to be performed by at least some of the first sensors to ensure low power operation of the first device. If the touch capacitance data reaches the second threshold, it indicates that the user needs to wake up the first device. Then the first device is controlled to switch to the second operating state, that is, at least the sensors in the first sensor group and the second sensor group on the first device are switched to the operating state.

[0106] Furthermore, when inertial data is detected solely by inertial sensors, the first device is in a first operating state. When the inertial data reaches a first threshold, the first device needs to be controlled to switch from a first sub-state of the first operating state to a second sub-state. In the first sub-state of the first operating state, data is detected solely by inertial sensors. In the second sub-state of the first operating state, inertial data is detected by inertial sensors, and touch capacitive data is also detected by touch sensors. When it is determined that the inertial data has reached the first threshold, and the touch capacitive data has reached the second threshold, and the duration for which the data reaches the second threshold reaches the target duration, the first device needs to be controlled to switch from the second sub-state of the first operating state to the second operating state.

[0107] Therefore, this embodiment performs a phased wake-up, that is, in the process of passively waking up the first device, the first device is switched from the first sub-state of the first operating state to the second sub-state of the first operating state, and then switched from the second sub-state of the first operating state to the second operating state.

[0108] Specifically, the touch sensor can be set on the touch surface of the first device. If the touch surface is curved, then all sensors on the first device used for interacting with objects are set on the touch surface of the first device, such as: audio acquisition sensor (MIC), ambient light sensor (ALS), heart rate sensor, blood oxygen sensor, light output device (such as: LED), dot matrix expression output device (used to output different expressions, such as: curves representing the shape of the eyes, used to represent the emotions corresponding to the first device).

[0109] like Figure 3 The diagram shows the structure of the first device, including: a touch surface, i.e., the outer shell of the first device, which may be made of frosted material, and acrylic or light-guiding material may be provided inside the shell to facilitate detection by various sensors; multiple sensors, such as: touch sensor, inertial sensor (IMU), ambient light sensor (ALS), audio acquisition sensor (MIC), audio output sensor, heart rate sensor, blood oxygen sensor, dot matrix expression output device, light output device (LED), etc., wherein the first sensor group may include: touch sensor, inertial sensor (IMU), ambient light sensor (ALS); other sensors may belong to the sensors in the second sensor group. In addition, the heart rate sensor and blood oxygen sensor need to be set at specific positions on the touch surface to facilitate the acquisition of heart rate or blood oxygen related data; a processing chip, used to implement the device control method disclosed in this embodiment; the first device may also include: a base, which encloses the various components in the first device inside the first device through the outer shell and the base.

[0110] Since the first device is a device that can interact with users or other devices, it can specifically be a smart companion product. Therefore, the first device can be a portable device so that users can carry it with them, such as... Figure 4 The diagram shown is a schematic of one possible shape or shape of the first device. Of course, it can also be other shapes or shapes, and no specific limitation is made here.

[0111] In addition, if it is determined that the first device meets certain conditions when the first device is in the second operating state, the first device is switched from the second operating state to the first operating state, that is, the first device is switched from a state in which at least the first sensor group and the second sensor group are operating to a state in which only at least some of the first sensors in the first sensor group are operating.

[0112] Specifically, the first device may meet certain conditions, such as: at least some of the first sensors in the first sensor group of the first device detect a specific signal, and the first device is switched from a second operating state to a first operating state based on the specific signal. For example, the audio acquisition sensor in the first sensor group receives a specific audio signal, such as "switch to sleep state"; or, the touch sensor or inertial sensor in the first sensor group detects a specific trajectory, and the specific trajectory corresponds to the "switch to first operating state" command signal in the pre-stored trajectory and command signal correspondence relationship, and the first device is switched from a second operating state to a first operating state based on the received specific trajectory.

[0113] The device control method disclosed in this embodiment, when determining that the first device is in a first operating state and the first device meets the target conditions, controls the first device to switch from the first operating state to a second operating state. Then, it determines the target module in the second operating state of the first device, and determines the current scene of the first device by using parameter information detected by at least some of the first sensors in the first sensor group, so as to adjust the operating parameters of the target module based on the current scene of the first device. This ensures that when the first device is in the first operating state, the operating parameters of the target module in the current operating state are adjusted based on the current scene, so as to ensure that the operation of the first device is related to the current scene, thereby improving the environmental adaptability of the first device during operation and improving the user experience. In addition, this embodiment, through condition-triggered state switching, makes the control of the first device no longer a fine-tuning of parameters in a single state, but an automatic switch from a basic state (such as the first operating state) to a higher-order, more functional state (such as the second operating state), which greatly improves the responsiveness and automation level of the first device.

[0114] This embodiment discloses a device control method, the flowchart of which is shown below. Figure 5 As shown, it includes:

[0115] Step S51: Determine the current operating status of the first device;

[0116] Step S52: When it is determined that the first device is in the first operating state, determine the first time period in which the current moment is located;

[0117] Step S53: Determine the target duration through a pre-established correspondence between time periods and durations, wherein the correspondence between time periods and durations is: the target duration corresponding to different time periods determined in advance based on the state switching information of the first device under different time periods in historical data;

[0118] Step S54: If it is determined that the duration of the first device in the first operating state has reached the target duration, control the first device to switch from the first operating state to the second operating state;

[0119] Step S55: Determine the target module in the second operating state of the first device;

[0120] Step S56: Determine the current scene of the first device by using parameter information detected by at least some of the first sensors in the first sensor group of the first device;

[0121] Step S57: Adjust the operating parameters of the target module based on the current scenario of the first device.

[0122] The current operating state of the first device is determined, and the target module that is in the operating state of the first device in the current operating state is further determined; the current scene of the first device is determined by the parameter information detected by at least some of the first sensors in the first sensor group of the first device; the operating parameters of the target module are adjusted based on the current scene of the first device, avoiding the problem of increased power consumption caused by all sensors always being in the operating state; in addition, it ensures that the operation of the first device is related to the current scene, improving the user experience.

[0123] Furthermore, if the first device is currently in the first operating state, and it is determined that the duration of the first device in the first operating state has reached the target duration, then the first device is controlled to switch from the first operating state to the second operating state. The determination of the target duration can be specifically as follows: determine the first time period in which the current moment is located, and determine the target duration through a pre-established correspondence between time periods and durations. The correspondence between time periods and durations is: the target duration corresponding to different time periods determined in advance based on the state switching information of the first device in different time periods in historical data.

[0124] The target duration for actively waking up the first device is not fixed; it can be related to the current scene or to historical records.

[0125] Determining the target duration can be specifically done by: determining the first time period in which the current moment is located; and determining the target duration through a pre-established correspondence between time periods and durations. The correspondence between time periods and durations is as follows: the target duration corresponding to different time periods is determined in advance based on the state switching information of the first device under different time periods in historical data.

[0126] The state switching information of the first device is recorded each time. The state switching information may include: the time when the first device switches from the first operating state to the second operating state, and the time difference between the time when it switches to the second operating state and the time when it switches to the second operating state. By analyzing multiple state switching information, the pattern of state switching can be determined.

[0127] For example, if the time difference between two consecutive switches of the first device to the second operating state is short, such as 30 minutes, between 10:00 and 12:00 each day, and the time difference between two consecutive switches of the first device to the second operating state is long, such as 2 hours, then based on the above pattern, the target duration can be determined to be 30 minutes between 10:00 and 12:00 each day, and 2 hours between 14:00 and 20:00 each day.

[0128] By analyzing the state switching information of the first device in historical data, the state switching pattern is obtained, and the target duration corresponding to different time periods is determined based on the state switching pattern, thereby establishing the correspondence between time periods and durations. Then, when the first device is in the first operating state, timing begins, and the target duration corresponding to the current time period is determined according to its current time period, thereby waking up the first device (i.e., switching the first device to the second operating state).

[0129] Determining the target duration can also be done by: determining the scenario corresponding to the first device when it switches to the first operating state, and determining the target duration based on the scenario corresponding to the first device when it switches to the first operating state.

[0130] That is, the target duration is different when the first device is in different scenarios. The target duration corresponding to different scenarios can be predetermined. The target duration corresponding to different scenarios can be determined based on the time when the first device switches to the second running state in different scenarios in historical data and the time difference between two adjacent switches to the second running state.

[0131] For example, when the first device is determined to be in a crowded outdoor location (such as a subway) based on historical data, the frequency of waking up the first device (switching the first device to the second operating state) is relatively low, such as once every 2 hours; when the first device is determined to be in a sparsely populated indoor location (such as at home) based on historical data, the frequency of waking up the first device is relatively high, such as once every 20 minutes.

[0132] When it is determined that the first device needs to be actively woken up based on the scenario, the scenario in which the first device is located when it switches to the first running state is determined, the target duration corresponding to the scenario is determined, the timing starts when the first device switches to the first running state, the timing stops when the target duration corresponding to the scenario is reached, and the first device is switched from the first running state to the second running state.

[0133] The scenario in which the first device is located can be varied. Here, we will take four scenarios as examples: transportation, pedestrian street, sitting quietly, and private space. The scenario in which the first device is located is determined based on the parameter information detected by at least some of the first sensors in the first sensor group. At least some of the first sensors in the first sensor group may include: ambient light sensor (ALS), inertial sensor (IMU), and audio acquisition sensor (such as: MIC), etc.

[0134] like Figure 6 The diagram illustrates the correspondence between the four scenarios described above and at least some of the parameter information detected by the first sensor. If the average illumination in the scenario where the first device is located is determined to be 50-500 lux based on the ambient light sensor, and the acceleration variance of the first device is determined to be 0.3-1.5 based on the inertial sensor... Simultaneously, based on the parameter information detected by the audio acquisition sensor, if the average sound intensity in the scene where the first device is located is determined to be 65-80 dB and the low-frequency ratio is greater than 0.6, then the scene where the first device is currently located can be determined to be a vehicle. Similarly, if the average illumination is greater than 1000 lux and the acceleration variance is greater than 0.5... If the average sound intensity is 50-75dB and the low-frequency ratio is less than 0.4, then it can be determined that the scene where the first device is currently located is a pedestrian street, etc.

[0135] Additionally, the following can also be used: if the average illumination detected by the ambient light sensor is less than 10 lux and the duration is longer than a certain specific time, then the current scene can be determined to be nighttime; if the ambient light detected by the ambient light sensor shows rapid fluctuations, then the current scene can be determined to be corresponding to a mode of transportation, such as the light and shadow of a bus window; and for example, if the variance of the acceleration detected by the inertial sensor is 0.2-1.5... (of which, 1) equal , If the variance of acceleration (used to describe the degree of fluctuation in acceleration) changes regularly, then it can be determined that the current situation is a walking scenario; if the variance of acceleration is greater than 1.5... This allows us to determine the current scenario corresponding to the mode of transportation; if the acceleration variance remains less than 0.1 for a certain period of time. This allows us to determine the current situation, such as whether we are sitting in meditation or in a private space.

[0136] Additionally, if the average sound intensity is determined to be between 80-100dB based on data detected by the audio acquisition sensor and is dominated by low frequencies, it can be determined that the current location is likely a subway; if the average sound intensity is between 65-75dB and is human voice, it can be determined that the current location is an office; and if the average sound intensity is less than 50dB, it can be determined that the current location is a private space.

[0137] The device control method disclosed in this embodiment determines that the first device is in a first operating state. It then determines the target duration corresponding to the current time period through a pre-established correspondence between time periods and durations. When the duration of the first device in the first operating state reaches the target duration, it controls the first device to switch from the first operating state to a second operating state. Next, it determines the target module in the second operating state of the first device. It then determines the current scene of the first device through parameter information detected by at least some of the first sensors in the first sensor group, so as to adjust the operating parameters of the target module based on the current scene of the first device. By determining different target durations corresponding to different time periods, it enables the first device to actively switch to the second operating state based on different durations at different time intervals. This allows the wake-up of the first device to be correlated with the historical data of the first device, improving the user experience.

[0138] This embodiment discloses a device control method, the flowchart of which is shown below. Figure 7 As shown, it includes:

[0139] Step S71: Determine the current operating status of the first device;

[0140] Step S72: When the first device is in the first operating state, inertial data is detected by the inertial sensor;

[0141] Step S73: If it is determined that the inertial data reaches the first threshold, control the first device to switch from the first sub-state of the first operating state to the second sub-state. In the second sub-state, the touch sensor switches to the operating state. In the second sub-state, the power consumption of the first device is greater than that of the first device in the first sub-state.

[0142] Step S74: When the first device is in the second sub-state, detect touch capacitance data through the touch sensor;

[0143] Step S75: If it is determined that the touch capacitive data reaches the second threshold and the duration of the touch capacitive data reaching the second threshold reaches the target duration, it is determined that the environmental parameters detected by the target sensor in the first sensor group reach the target threshold. The object interacting with the first device is authenticated by using inertial data and touch capacitive data. The first device determines the interaction between the object and the first device by using inertial data and touch capacitive data.

[0144] Step S76: If the identity authentication is successful, control the first device to switch from the second sub-state to the second running state. The power consumption of the first device in the second running state is greater than the power consumption of the first device in the second sub-state.

[0145] Step S77: Determine the current scene of the first device by using parameter information detected by at least some of the first sensors in the first sensor group of the first device;

[0146] Step S78: Adjust the operating parameters of the target module based on the current scenario of the first device.

[0147] The current operating state of the first device is determined, and the target module that is in the operating state of the first device in the current operating state is further determined; the current scene of the first device is determined by the parameter information detected by at least some of the first sensors in the first sensor group of the first device; the operating parameters of the target module are adjusted based on the current scene of the first device, avoiding the problem of increased power consumption caused by all sensors always being in the operating state; in addition, it ensures that the operation of the first device is related to the current scene, improving the user experience.

[0148] Furthermore, when the first device is in the first operating state, it can be actively or passively woken up to switch from the first operating state to the second operating state. Active wake-up means that the first device actively switches from the first operating state to the second operating state at a target time interval. Passive wake-up means that the environmental parameters are detected by the target sensor in the first sensor group. When the detected environmental parameters reach the target threshold, the first device is controlled to switch from the first operating state to the second operating state.

[0149] This embodiment addresses the passive wake-up scenario and implements a phased wake-up process. When the first device is in a first operating state, it is typically in a first sub-state of that first operating state. At this time, the first device has the lowest power consumption, and only at least some of the first sensors in the first sensor group are operational. These at least some first sensors include inertial sensors but not touch sensors. Inertial data is detected by the inertial sensors. When the inertial data reaches a first threshold, the first device is controlled to switch from the first sub-state of the first operating state to a second sub-state. In the second sub-state, the touch sensors in the first sensor group are operational, detecting touch capacitance data to determine if the user has touched the first device. When the touch capacitance data reaches a second threshold, and the duration for which the second threshold is reached reaches a target duration, it can be determined that the user is touching the first device for a certain duration. At this point, the user wishes to passively wake up the first device. To respond to the passive wake-up of the first device, this embodiment also adds an authentication process. Only after successful authentication will the passive wake-up be completed, i.e., the first device will switch from the second sub-state of the first operating state to the second operating state.

[0150] Identity authentication is to ensure that only authenticated users can interact with the primary device, in order to prevent information leakage if the primary device is lost.

[0151] Identity authentication can be performed using data detected by inertial and touch sensors. This means that the data detected by inertial and touch sensors can not only determine whether the user wants to passively wake up the first device, but also be used to verify the user's identity. This allows different judgments to be made using the same set of data, eliminating the need to collect multiple sets of different data and reducing the amount of data. In addition, the data detected by inertial and touch sensors can simultaneously perform the steps of determining whether the user wants to passively wake up the first device and the steps of authenticating the user's identity, thereby improving data processing efficiency and ensuring user experience.

[0152] Inertial sensors detect inertial data. Different users have different usage habits when using the first device, which leads to differences in the inertial data detected by different users. Therefore, different users (i.e., objects) can be distinguished through inertial data. Similarly, touch sensors detect touch capacitive data. Each user's data is unique, so each user will detect different touch capacitive data when touching the first device. Therefore, different users (i.e., objects) can also be distinguished through touch capacitive data. To ensure the accuracy of user authentication, the results of inertial data recognition and touch capacitive data recognition can be combined for authentication.

[0153] Of course, when the first device is in the second sub-state of the first operating state, it can also use the heart rate sensor and blood oxygen sensor to authenticate the user by combining the data detected by the heart rate sensor and the blood oxygen sensor with the inertial data and touch capacitive data, so as to ensure the accuracy of identity authentication.

[0154] Specifically, information about authorized users who can use the first device, i.e., information about users who can pass identity authentication, can be pre-stored. The data detected by the sensor is compared with the pre-stored user information. If the comparison result indicates that the information detected by the sensor matches the pre-stored user information, it is determined that the user detected by the first device has passed identity authentication. If the comparison result indicates that the information detected by the sensor does not match the pre-stored user information, it is determined that the user detected by the first device has not passed identity authentication.

[0155] Specifically, this can be achieved by: determining the motion amplitude and frequency of the object using inertial data; determining the touch parameters of the object using touch capacitance data, where the touch parameters include at least one of touch trajectory, touch force, and touch speed; determining whether the motion amplitude, motion frequency, and touch parameters meet the authentication conditions; if the motion amplitude, motion frequency, and touch parameters meet the authentication conditions, determining that the identity authentication is successful, and controlling the first device to switch from the second sub-state to the second operating state; if at least one of the motion amplitude, motion frequency, and touch parameters does not meet the authentication conditions, determining that the identity authentication is unsuccessful, and controlling the first device to switch from the second sub-state to the first sub-state.

[0156] Inertial data can be used to determine the amplitude and frequency of an object's actions when operating the first device. The amplitude and frequency ranges of actions of users who can pass authentication are pre-stored. If the amplitude is within the amplitude range, it indicates that the amplitude meets the authentication conditions; if the amplitude is outside the amplitude range, it indicates that the amplitude does not meet the authentication conditions. Similarly, if the frequency is within the frequency range, it indicates that the frequency meets the authentication conditions; if the frequency is outside the frequency range, it indicates that the frequency does not meet the authentication conditions.

[0157] Touch parameters can be determined by the touch capacitance data when an object operates on the first device. The touch parameters may include at least one of touch trajectory, touch force, and touch speed. The touch trajectory range, touch force range, and touch speed range of users who can pass authentication can be pre-stored. If the touch trajectory is within the touch trajectory range, it indicates that the touch trajectory meets the authentication conditions. If the touch trajectory is not within the touch trajectory range, it indicates that the touch trajectory does not meet the authentication conditions. If the touch force is within the touch force range, it indicates that the touch force meets the authentication conditions. If the touch force is not within the touch force range, it indicates that the touch force does not meet the authentication conditions. If the touch speed is within the touch speed range, it indicates that the touch speed meets the authentication conditions. If the touch speed is not within the touch speed range, it indicates that the touch speed does not meet the authentication conditions.

[0158] The system assesses whether the following four parameters meet the authentication criteria: amplitude of movement, frequency of movement, touch trajectory, touch pressure, and touch speed. (For the three touch parameters, touch trajectory, touch pressure, and touch speed, the assessment can be based on the actual parameters included in the touch parameters.) If any one of these criteria is not met, the authentication is considered unsuccessful. Only when all three criteria are met can the authentication be considered successful.

[0159] Alternatively, the motion amplitude, motion frequency, touch trajectory, touch pressure, and touch speed can be weighted and summed to determine whether the final value reaches a certain threshold. If it reaches the threshold, the authentication is considered successful; if it does not reach the threshold, the authentication is considered unsuccessful.

[0160] The determination of this specific threshold can be related to historical data. That is, the specific threshold corresponding to different time periods can be different, and the specific threshold corresponding to different time periods is determined based on the values ​​detected by each sensor in each time period in the historical data.

[0161] For example: The data detected by each sensor of the continuous monitoring device is used to calculate the feature matching degree with historical data at regular intervals (e.g., 5 seconds);

[0162] For example, determine the variance between the data detected by each sensor and the mean of the data detected by the corresponding sensor in each time period of historical data. Adjust the weight of the data detected by different sensors based on the obtained variance, such as giving a lower weight to the data detected by the blood oxygen sensor and a higher weight to the data detected by the touch sensor, and obtain a final result. Compare this result with a predetermined score threshold. If it is greater than the score threshold, the identity authentication is considered successful. If it is less than the score threshold, the identity authentication is considered unsuccessful.

[0163] The device control method disclosed in this embodiment requires that, when the first device is in a first operating state, inertial data is detected by an inertial sensor. When the inertial data reaches a first threshold, the first device is controlled to switch from a first sub-state of the first operating state to a second sub-state. In the second sub-state, a touch sensor operates, detecting touch capacitance data. When the touch capacitance data reaches a second threshold for a target duration, the object interacting with the first device is authenticated using both the inertial data and the touch capacitance data. This ensures that the first device will only switch to the second operating state if the authentication is successful, enabling the first device to interact with the object as an interactive device. This embodiment, in addition to determining whether the device is currently in a passive wake-up state based on the detected data, can also perform authentication based on the detected data. This ensures device security, shortens data processing time, and eliminates the need for additional data collection to determine passive wake-up and authenticate the device, reducing power consumption and improving user experience.

[0164] This embodiment discloses a device control method, the flowchart of which is shown below. Figure 8 As shown, it includes:

[0165] Step S81: Determine the current operating status of the first device;

[0166] Step S82: Determine the target module that the first device is in operation under the current operating state; wherein, when the first device is in the first operating state, the target module includes at least some of the first sensors in the first sensor group; when the first device is in the second operating state, the target module includes at least the first sensor group and the second sensor group, the second sensor group being the sensors included in the first device other than the first sensor group, and the first device in the second operating state is an interactive device;

[0167] Step S83: Determine the current scene of the first device by using parameter information detected by at least some of the first sensors in the first sensor group of the first device;

[0168] Step S84: Adjust the operating parameters of the target module based on the current scenario of the first device;

[0169] Step S85: Detect the presence of a second device within the target range of the first device using the device detection sensor in the first sensor group. The second device is an electronic device of the same type as the first device.

[0170] Step S86: If it is determined that a second device exists within the target range, control the first device to enter the second operating state and interact with the second device through the device detection sensor.

[0171] The current operating state of the first device is determined, and the target module that is in the operating state of the first device in the current operating state is further determined; the current scene of the first device is determined by the parameter information detected by at least some of the first sensors in the first sensor group of the first device; the operating parameters of the target module are adjusted based on the current scene of the first device, avoiding the problem of increased power consumption caused by all sensors always being in the operating state; in addition, it ensures that the operation of the first device is related to the current scene, improving the user experience.

[0172] Furthermore, regardless of whether the first device is in the first operating state or the second operating state, it can detect whether the second device exists within the target range of the first device, and if it is determined that the second device exists, it controls the first device to enter the second operating state and interact with the second device.

[0173] The detection of whether a second device exists within the target range of the first device is achieved by the device detection sensor in the first sensor group. Since the second device can be detected within the target range of the first device in both the first and second operating states, the device detection sensor needs to be in the operating state regardless of whether the first device is in the first or second operating state. That is, at least some of the first sensors in the first sensor group that are in the operating state in the first operating state include the device detection sensor.

[0174] The second device is an electronic device of the same type as the first device. That is, the second device is also capable of being in both the first and second operating states, and when it is in the second operating state, it can interact with an object. The object here can be a user or other devices, such as the first device.

[0175] Specifically, the device detection sensor can be a Bluetooth Low Energy (BLE) module. The first device broadcasts through the BLE module to detect whether there are other devices within the target range. Other devices that the first device can detect, such as the second device, must be in a detectable state. For example, if the BLE module on the second device is set to visible, the second device can be in either the first operating state or the second operating state.

[0176] When detecting devices using device detection sensors, if a second device is detected within the target range, the authenticity of the device can be verified through signature verification, such as verifying that the second device is a smart companion device through ECDSA signature, in order to avoid data leakage problems caused by connecting or pairing with other types of devices.

[0177] Furthermore, in the device control method disclosed in this embodiment, detecting the presence of a second device within the target range of the first device using a device detection sensor in the first sensor group includes:

[0178] The detection interval is determined based on the current scene of the first device; when the detection interval is reached, the device detection sensor in the first sensor group detects whether there is a second device within the target range of the first device.

[0179] The interval for detection is determined based on the current scenario of the first device. If it is determined that there are many people and devices in the current scenario of the first device, the interval can be shortened; if it is determined that there are few people and devices in the current scenario of the first device, the interval can be extended. For example, if a user is alone at home, since there are no other devices of the same type within a certain range, the interval can be set to a longer time to avoid increasing power consumption.

[0180] If the first device detects the presence of the second device within the target range, it needs to control the first device to enter the second operating state. That is, if the first device is in the first operating state when it detects the presence of the second device within the target range, it needs to switch the first device from the first operating state to the second operating state based on this. If the first device is in the second operating state when it detects the presence of the second device within the target range, it needs to maintain the second operating state of the first device based on this to ensure that the first device can interact with the second device.

[0181] Correspondingly, when the first device detects the presence of the second device within the target range, the first device controls itself to be in the second operating state while also outputting an interaction request to the second device. The second device controls itself to be in the second operating state based on the interaction request. That is, if the second device is in the first operating state when it receives the interaction request, it needs to control the second device to switch from the first operating state to the second operating state; if the second device is in the second operating state when it receives the interaction request, it needs to control the second device to maintain the second operating state.

[0182] In addition, while the first device detects the presence of the second device within its target range using its device detection sensor, the second device can also detect the presence of a device of the same type (e.g., a third device, which can be the first device or a non-first device) within its target range using its internal device detection sensor.

[0183] Specifically, the interaction between the first device and the second device can be described as follows: the first device and the second device interact in different forms under different connection states.

[0184] Specifically, the first device and the second device can be in a preliminary connection state. That is, as long as the first device detects the second device through the device detection sensor and sends an interaction request to the second device, and the second device responds to it, then the first device and the second device enter the preliminary connection state. For another example, after the first device and the second device are in the preliminary connection state, the first device and the second device perform pairing of identifiers. After the identifier pairing, they enter the paired interaction state.

[0185] After the first device and the second device are in the preliminary connection state, the first device and the second device can interact through multiple sensors. For example, output expressions through a dot-matrix expression output device, output expressions through a light output device (LED), output audio through an audio output sensor, output vibrations through a vibration sensor, etc.

[0186] The first device and the second device enter the paired interaction state based on the completion of the pairing of identifiers between the first device and the second device. Among them, the identifier of the device can be specifically the light effect identifier of the device. That is, the first device outputs a random light effect, and at the same time, the second device also outputs a random light effect. When at a certain moment, the light effect output by the first device matches the light effect output by the second device, it can be determined that the light effect identifiers of the first device and the second device are paired. Specifically, the distance between the hue of the light effect output by the first device and the hue of the light effect output by the second device can be used to determine whether the light effect output by the first device matches the light effect output by the second device.

[0187] After the first device and the second device enter the paired interaction state, the output of the first device can be controlled to be synchronized with the output of the second device. For example, when the second device vibrates, the first device also vibrates. For another example, after the first device outputs an audio with a specific meaning, the second device responds to the audio. For example, the first device outputs "Hello", and the second device outputs "你好啊".

[0188] Furthermore, in the device control method disclosed in this embodiment, the first device can not only interact with the second device within the target range, but also interact with the third device within the target range. That is, the first device can interact with the second device and the third device at the same time, so as to achieve group interaction of multiple devices.

[0189] In addition, a timestamp synchronization mechanism can be added during the interaction between the first and second devices to ensure clock synchronization between them. For example, for a pairing of the first and second devices, the first device can be designated as the master device (or the second device can be designated as the master device, this is just an example). The master device (i.e., the first device) sends a first time T1. The second device records the time when it receives the first time T1, i.e., the second time T2, and replies to the first device. The reply information includes the second time T2 when the second device receives T1 and the time when it replies to the second device when it receives T1, i.e., the third time T3. The first device receives the reply information and records the time when it receives the reply information, i.e., the fourth time T4. The first device determines the clock offset and transmission delay between the first and second devices based on T1, T2, T3 and T4, i.e.: Offset=(T2-T1+T4-T3) / 2. The offset is the clock offset and transmission delay between the first and second devices. After that, the second device performs dynamic calibration of its local clock based on the offset to ensure the accuracy of the interaction between the first and second devices.

[0190] It should be noted that the interaction between the first and second devices can be achieved through intelligent agents. That is, both the first and second devices have built-in intelligent agents. When the second device outputs data, the intelligent agent of the first device receives the data, analyzes it using the associated large model to determine the response data, and then outputs the response data through the intelligent agent, thus completing one interaction between the first and second devices. When the first and second devices include intelligent agents and large models, the algorithms included in the first and second devices must at least include the algorithm corresponding to the intelligent agent and the algorithm corresponding to the reinforcement learning module (RL module), etc.

[0191] Of course, when the first device includes an intelligent agent and a large model, the determination of the scene in the first device, as well as the adjustment of the operating parameters of the target module based on the scene, can be achieved by the intelligent agent and the large model, so as to achieve the accuracy of scene determination and the precision of operating parameter adjustment, thereby further improving the user experience.

[0192] The device control method disclosed in this embodiment determines the target module in the current operating state of the first device, determines the current scene of the first device by using parameter information detected by at least some of the first sensors in the first sensor group of the first device, and adjusts the operating parameters of the target module based on the current scene of the first device to ensure that the target module in the operating state of the first device can better adapt to the current scene regardless of the operating state of the first device. In addition, the first sensor group also includes a device detection sensor, which can detect whether there is a second device within the target range of the first device, so that when it is determined that there is a second device within the target range of the first device, the first device can be controlled to enter a second operating state and interact with the second device, thereby improving the interactivity and fun of the first device and further improving the user experience.

[0193] This embodiment discloses an electronic device, the structural schematic diagram of which is shown below. Figure 9 As shown, it includes:

[0194] The first sensor group 91, the second sensor group 92, and the processor 93.

[0195] The first sensor group 91 includes multiple first sensors;

[0196] The second sensor group 92 includes multiple second sensors;

[0197] The processor 93 is used to determine the current operating state of the electronic device; determine the target module in which the electronic device is in operation under the current operating state; wherein, when the electronic device is in a first operating state, the target module includes at least some of the first sensors in the first sensor group; when the electronic device is in a second operating state, the target module includes at least the first sensor group and the second sensor group; the electronic device in the second operating state is an interactive device; determine the current scene of the electronic device through the parameter information detected by at least some of the first sensors in the first sensor group; and adjust the operating parameters of the target module based on the current scene of the electronic device.

[0198] Furthermore, the processor is also used for:

[0199] When the electronic device is in the first operating state, if it is determined that the electronic device meets the target conditions, the electronic device is controlled to switch from the first operating state to the second operating state.

[0200] The determination that the electronic device meets the target conditions includes at least one of the following: determining that the duration of the electronic device in the first operating state reaches the target duration; determining that the environmental parameters detected by the target sensors in the first sensor group reach the target threshold.

[0201] Furthermore, the first sensor group includes at least an inertial sensor and a touch sensor. The touch sensor is disposed on the touch surface of the electronic device, and the touch surface is curved. Sensors on the electronic device used for interacting with objects are disposed on the touch surface.

[0202] The processor is used for:

[0203] When the electronic device is in the first operating state, inertial data is detected by an inertial sensor. If the inertial data reaches a first threshold, the electronic device is controlled to switch from a first sub-state of the first operating state to a second sub-state. In the second sub-state, the touch sensor switches to the operating state, and the power consumption of the electronic device in the second sub-state is greater than that in the first sub-state. When the electronic device is in the second sub-state, touch capacitance data is detected by a touch sensor. If the touch capacitance data reaches a second threshold, and the duration for which the touch capacitance data reaches the second threshold reaches a target duration, the environmental parameter detected by the target sensor in the first sensor group reaches the target threshold. The electronic device is then controlled to switch from the second sub-state to the second operating state, and the power consumption of the electronic device in the second operating state is greater than that in the second sub-state.

[0204] Furthermore, the processor is also used for:

[0205] When the electronic device is in the second sub-state, the object interacting with the electronic device is authenticated by inertial data and touch capacitive data. The electronic device determines the interaction between the object and the electronic device by using inertial data and touch capacitive data. If the authentication is successful and the environmental parameters detected by the target sensor reach the target threshold, the electronic device is controlled to switch from the second sub-state to the second operating state.

[0206] Furthermore, the processor is used for:

[0207] The motion amplitude and frequency of the object are determined using inertial data; the touch parameters of the object are determined using touch capacitance data, including at least one of touch trajectory, touch force, and touch speed; it is determined whether the motion amplitude, motion frequency, and touch parameters meet the authentication conditions; if the motion amplitude, motion frequency, and touch parameters meet the authentication conditions, the identity authentication is confirmed, and the electronic device is controlled to switch from the second sub-state to the second operating state; if at least one of the motion amplitude, motion frequency, and touch parameters does not meet the authentication conditions, the identity authentication is confirmed, and the electronic device is controlled to switch from the second sub-state to the first sub-state.

[0208] Furthermore, the processor is used for:

[0209] Determine the first time period in which the current moment is located; determine the target duration through a pre-established correspondence between time periods and duration, wherein the correspondence between time periods and duration is: the target duration corresponding to different time periods determined in advance based on the state switching information of electronic devices in different time periods in historical data; determine the duration for which the electronic device is in the first operating state to reach the target duration.

[0210] Furthermore, the processor is also used for:

[0211] The device detection sensor in the first sensor group detects whether a second device exists within the target range of the electronic device. The second device is an electronic device of the same type as the electronic device. If it is determined that a second device exists within the target range, the electronic device is controlled to enter a second operating state and interacts with the second device through the device detection sensor.

[0212] Furthermore, the processor is used for:

[0213] The detection interval is determined based on the current scene of the electronic device; when the detection interval is reached, the device detection sensor in the first sensor group detects whether there is a second device within the target range of the electronic device.

[0214] Furthermore, the processor is used for:

[0215] Obtain historical data, including historical operating data of the target module in the electronic device under different time periods and scenarios; based on the current time, the current scenario, and the historical data, determine the current operating parameters of the target module of the electronic device.

[0216] The electronic device disclosed in this embodiment can represent the first device involved in the above embodiments. The electronic device disclosed in this embodiment is implemented based on the device control method disclosed in the above embodiments, and will not be described again here.

[0217] The electronic device disclosed in this embodiment first determines the target module that is in operation under the current operating state of the first device. The number of sensors included in the target module varies depending on the operating state of the first device. The current scene of the first device is determined by the parameter information detected by at least some of the first sensors in the first sensor group of the first device that is always in operation. This allows the operating parameters of the target module to be adjusted based on the current scene of the first device, thereby ensuring that only at least some of the first sensors in the first sensor group are always in operation, regardless of the operating state, rather than all of them. This avoids the problem of increased power consumption caused by all sensors always being in operation. In addition, regardless of the operating state of the first device, the operating parameters of the target module that is currently in operation can be adjusted based on the current scene of the first device to ensure that the operation of the first device is related to the current scene and improve the user experience.

[0218] This application also provides a readable storage medium storing a computer program, which is loaded and executed by a processor to implement the steps of the above-described device control method. The specific implementation process can be referred to the description of the corresponding part of the above embodiments, and will not be repeated in this embodiment.

[0219] This application also proposes a computer program product or computer program including computer instructions stored in a computer-readable storage medium. The processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to perform the methods provided in various optional implementations of the above-described device control methods. Specific implementation processes can be referred to the descriptions of the corresponding embodiments above, and will not be repeated here.

[0220] 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.

[0221] 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.

[0222] 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.

[0223] 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 device control method, comprising: Determine the current operating status of the first device; The target module in which the first device is in operation under the current operating state is determined; wherein, when the first device is in a first operating state, the target module includes at least some of the first sensors in the first sensor group; when the first device is in a second operating state, the target module includes at least the first sensor group and a second sensor group, wherein the second sensor group consists of sensors in the first device other than the first sensor group, and the first device in the second operating state is an interactive device; The current scene of the first device is determined by the parameter information detected by at least some of the first sensors in the first sensor group of the first device; Adjust the operating parameters of the target module based on the current scenario of the first device.

2. The method according to claim 1, further comprising: When the first device is in the first operating state, if it is determined that the first device meets the target conditions, the first device is controlled to switch from the first operating state to the second operating state. The determination that the first device meets the target condition includes at least one of the following: Determine that the duration during which the first device is in the first operating state reaches the target duration; It is determined that the environmental parameters detected by the target sensor in the first sensor group have reached the target threshold.

3. The method according to claim 2, wherein the first sensor group includes at least an inertial sensor and a touch sensor, the touch sensor being disposed on the touch surface of the first device, the touch surface being a curved surface, and a sensor on the first device for interacting with an object being disposed on the touch surface. The step of determining that the environmental parameters detected by the target sensor in the first sensor group have reached the target threshold includes: When the first device is in the first operating state, inertial data is detected by the inertial sensor; If it is determined that the inertial data reaches a first threshold, the first device is controlled to switch from a first sub-state of the first operating state to a second sub-state. In the second sub-state, the touch sensor switches to the operating state. In the second sub-state, the power consumption of the first device is greater than that of the first device in the first sub-state. When the first device is in the second sub-state, touch capacitance data is detected by the touch sensor; If it is determined that the touch capacitance data reaches the second threshold and the duration of the touch capacitance data reaching the second threshold reaches the target duration, it is determined that the environmental parameter detected by the target sensor in the first sensor group reaches the target threshold, and the first device is controlled to switch from the second sub-state to the second operating state, wherein the power consumption of the first device in the second operating state is greater than the power consumption of the first device in the second sub-state.

4. The method according to claim 3, further comprising: When the first device is in the second sub-state, the object interacting with the first device is authenticated by the inertial data and the touch capacitive data, and the first device determines the interaction between the object and the first device by the inertial data and the touch capacitive data. If the identity authentication is successful and the environmental parameters detected by the target sensor reach the target threshold, the first device is controlled to switch from the second sub-state to the second operating state.

5. The method according to claim 4, wherein authenticating the object interacting with the first device using the inertial data and the touch capacitance data includes: The amplitude and frequency of the object's movements are determined using the inertial data. The touch parameters of the object are determined by the touch capacitance data, and the touch parameters include at least one of touch trajectory, touch force, and touch speed; Determine whether the amplitude of the movement, the frequency of the movement, and the touch parameters meet the authentication conditions; If it is determined that the amplitude of the action, the frequency of the action, and the touch parameters meet the authentication conditions, the identity authentication is confirmed to be successful, and the first device is controlled to switch from the second sub-state to the second operating state. If it is determined that at least one of the action amplitude, action frequency, and touch parameters does not meet the authentication conditions, the authentication is determined to be unsuccessful, and the first device is controlled to switch from the second sub-state to the first sub-state.

6. The method according to claim 2, wherein determining the duration for which the first device is in the first operating state reaches the target duration includes: Determine the first time period in which the current moment occurs; The target duration is determined by a pre-established correspondence between time periods and durations, wherein the correspondence between time periods and durations is: the target duration corresponding to different time periods determined in advance based on the state switching information of the first device under different time periods in historical data; The duration for which the first device is in the first operating state reaches the target duration is determined.

7. The method according to claim 1, further comprising: The device detection sensor in the first sensor group detects whether a second device exists within the target range of the first device, and the second device is an electronic device of the same type as the first device. If it is determined that the second device exists within the target range, the first device is controlled to enter a second operating state, and the device interacts with the second device through the device detection sensor.

8. The method according to claim 7, wherein detecting the presence of a second device within the target range of the first device using a device detection sensor in the first sensor group comprises: The detection interval duration is determined based on the current scenario of the first device; When the detection interval is reached, the device detection sensor in the first sensor group detects whether a second device exists within the target range of the first device.

9. The method according to claim 1, wherein adjusting the operating parameters of the target module based on the current scenario of the first device includes: Obtain historical data, which includes historical operating data of the target module in the first device under different time periods and different scenarios; Based on the current time, the current scenario, and the historical data, the operating parameters of the target module of the first device are determined.

10. An electronic device, comprising: A first sensor group, comprising a plurality of first sensors; The second sensor group includes a plurality of second sensors; A processor is configured to determine the current operating state of the electronic device; determine a target module in which the electronic device is operating under the current operating state; wherein, when the electronic device is in a first operating state, the target module includes at least some of the first sensors in the first sensor group; when the electronic device is in a second operating state, the target module includes at least the first sensor group and the second sensor group; and the electronic device in the second operating state is an interactive device; determine the current scene of the electronic device through parameter information detected by at least some of the first sensors in the first sensor group; and adjust the operating parameters of the target module based on the current scene of the electronic device.