Device control method and apparatus, electronic device, and storage medium

By recognizing the posture of electronic devices and wearable devices and adjusting operations to match the posture, the problem of poor control effect of wearable devices is solved, and the control accuracy and efficiency are improved.

CN123137485APending Publication Date: 2026-11-20FU TAI HUA IND SHENZHEN +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510605201.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-12
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Most smart wearable devices have limited interactive functions and poor device control. In particular, voice recognition accuracy is low under the influence of environmental noise, and touch operation is prone to accidental touches.

Method used

By recognizing the posture of electronic devices and wearable devices, adjusting operations based on posture matching or mismatch, and sending control commands to control the display information of wearable devices, the system includes a posture determination module and an operation control module.

Benefits of technology

It improves the accuracy and efficiency of device control for wearable devices, avoids the impact of posture changes on control, and enhances the ease of use of the devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123137485A_ABST
    Figure CN123137485A_ABST
Patent Text Reader

Abstract

The application provides a device control method and device, an electronic device and a storage medium. The method comprises: in response to a first operation of a user, determining a first posture of the electronic device and a second posture of the wearable device; if the second posture does not match the first posture, determining a second operation according to the first posture and the second posture, and sending a control instruction to the wearable device, so that the wearable device controls display information by executing the second operation, wherein the second operation is different from the first operation. By using the application, the device control efficiency of the wearable device can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of intelligent control technology, and in particular relates to a device control method, apparatus, electronic device and storage medium. Background Technology

[0002] With the rapid development of information technology, smart wearable devices, especially smart glasses, are rapidly changing our lifestyles as a bridge connecting the real and digital worlds. Smart glasses integrate multiple advanced technologies such as augmented reality, artificial intelligence, machine vision, and natural language processing, providing users with a more convenient, efficient, and intelligent interactive experience.

[0003] In related technologies, most smart wearable devices have limited interactive functions and poor device control performance. Summary of the Invention

[0004] This application provides a device control method, apparatus, electronic device, and storage medium to solve the problem of poor device control performance in wearable devices.

[0005] In a first aspect, embodiments of this application provide a device control method applied to an electronic device, wherein the electronic device is communicatively connected to a wearable device, the method comprising: in response to a first operation by a user, determining a first posture of the electronic device and a second posture of the wearable device; if the second posture does not match the first posture, determining a second operation based on the first posture and the second posture and sending a control command to the wearable device, such that the wearable device controls the display information by executing the second operation, wherein the second operation is different from the first operation.

[0006] In some embodiments, determining the first posture of the electronic device and the second posture of the wearable device includes: determining a first angular velocity and / or a first acceleration of the electronic device in a plurality of preset axes; determining the first posture of the electronic device based on the first angular velocity and / or the first acceleration; and determining a second angular velocity and / or a second acceleration of the wearable device in the plurality of preset axes; and determining the second posture of the wearable device based on the second angular velocity and / or the second acceleration.

[0007] In some embodiments, the method further includes: if the first posture is a vertical posture and the second posture is the vertical posture, or if the first posture is a horizontal posture and the second posture is the horizontal posture, then determining that the second posture matches the first posture, and sending the control command to the wearable device, so that the wearable device controls the display information by executing the first operation.

[0008] In some embodiments, determining the second operation based on the first posture and the second posture includes: determining operation conversion information based on the first posture and the second posture; and using the operation conversion information to convert the first operation to obtain the second operation.

[0009] In some embodiments, determining operation conversion information based on the first posture and the second posture includes: if the first posture is a vertical posture and the second posture is a horizontal posture, or if the first posture is the horizontal posture and the second posture is the vertical posture, then determining a first operation value for the first operation in the first axis and a second operation value in the second axis; and determining that the operation conversion information is to swap the first operation value and the second operation value.

[0010] In some embodiments, determining operation transition information based on the first posture and the second posture further includes: if the first posture is a first tilt posture and the second posture is a second tilt posture, then determining a first tilt angle of the electronic device based on the first tilt posture, and determining a second tilt angle of the wearable device based on the second tilt posture; determining a first operation value of the first operation in a first axis and a second operation value in a second axis; and determining the operation transition information as adjusting the first operation value and the second operation value based on the first tilt angle and the second tilt angle.

[0011] In some embodiments, adjusting the first operation value and the second operation value based on the first tilt angle and the second tilt angle includes: determining the angle difference between the first tilt angle and the second tilt angle; adjusting the first operation value using a first trigonometric function based on the angle difference; and adjusting the second operation value using a second trigonometric function based on the angle difference.

[0012] Secondly, embodiments of this application provide a device control apparatus applied to an electronic device, wherein the electronic device is communicatively connected to a wearable device. The apparatus includes: a posture determination module, configured to determine a first posture of the electronic device and a second posture of the wearable device in response to a first operation by a user; and an operation control module, configured to determine a second operation and send a control command to the wearable device based on the first posture and the second posture if the second posture does not match the first posture, thereby enabling the wearable device to control the display information by executing the second operation, wherein the second operation is different from the first operation.

[0013] Thirdly, embodiments of this application provide an electronic device, including a processor and a memory, wherein the processor is used to execute a computer program stored in the memory to implement the device control method as described in any of the above.

[0014] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program, which, when executed by a processor in an electronic device, implements the device control method as described in any of the preceding claims.

[0015] The device control method provided in this application identifies a first posture of an electronic device and a second posture of a wearable device. If the second posture does not match the first posture, a first operation on the electronic device is converted using the first and second postures to obtain a second operation. This second operation is then sent to the wearable device, allowing the wearable device to control and display information by executing the second operation. This avoids the influence of posture changes on device control and improves the accuracy of device control. Furthermore, this application achieves operation control of the wearable device through operation on the electronic device, making the wearable device easier to control and improving its device control efficiency. Attached Figure Description

[0016] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the 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.

[0017] Figure 1 This is an application scenario diagram of the device control method provided in the embodiments of this application.

[0018] Figure 2 This is a flowchart of a device control method provided in an embodiment of this application.

[0019] Figure 3 This is a flowchart illustrating the operation conversion method provided in the embodiments of this application.

[0020] Figure 4 This is an interactive scene diagram provided in the first embodiment of this application.

[0021] Figure 5 This is an interactive scene diagram provided in the second embodiment of this application.

[0022] Figure 6 This is a schematic diagram of the first tilt angle provided in the embodiments of this application.

[0023] Figure 7 This is a schematic diagram of the second tilt angle provided in the embodiments of this application.

[0024] Figure 8This is a schematic diagram of the structure of a device control apparatus provided in an embodiment of this application.

[0025] Figure 9 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application.

[0026] Key component symbols: Electronic device 10, first display screen 101, first monitoring module 102, communication module 103, memory 104, processor 105, input / output (I / O) interface 106, bus 107, wearable device 20, second display screen 201, second monitoring module 202, device control device 30, attitude determination module 301, operation control module 302. Detailed Implementation

[0027] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0028] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0029] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in this application's specification is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. It should be understood that, unless otherwise stated, "at least one" means one or more. "More than one" means two or more. For example, at least one of a, b, or c can represent seven cases: a, b, c, a and b, a and c, b and c, and a, b, and c.

[0030] With the rapid development of technology, wearable devices are gradually being integrated into people's daily lives and work. Wearable devices integrate multiple functions, such as information display, communication, navigation, photography and video recording, and health monitoring, providing users with a more convenient and richer interactive experience.

[0031] However, most wearable devices have limited interactive functions and poor control performance. For example, in related technologies, users control various operations of wearable devices via voice commands. However, due to environmental noise limitations, the accuracy of voice recognition in wearable devices is low, resulting in poor device control. As another example, some wearable devices are equipped with touchpads or touchscreens, allowing users to perform various functions through touch. However, because the touch area of ​​wearable devices is relatively small, accidental touches are prone to occur when precise operation is required, resulting in poor device control.

[0032] In view of the above problems, embodiments of this application provide a device control method, apparatus, electronic device, and storage medium to solve the problem of poor device control performance of wearable devices.

[0033] Figure 1 This is an application scenario diagram of the device control method provided in the embodiments of this application. For example... Figure 1 As shown, electronic device 10 and wearable device 20 are communicatively connected. The number of electronic devices 10 and wearable devices 20 that are communicatively connected can be set according to actual needs and is not limited here. Electronic device 10 is used to provide multimedia content to wearable device 20, which may include videos, documents, pictures, and games. The communication connection may include wired connection and wireless connection. Wired connection can be achieved through data cable, etc., while wireless connection can be achieved through Wi-Fi, Bluetooth, cellular network, near-field communication, etc. This embodiment of the application uses a wired connection as an example for explanation. Through the wired connection, electronic device 10 can provide power supply and data transmission to wearable device 20.

[0034] In some embodiments, the electronic device 10 may include electronic products with data processing and interaction capabilities, such as personal computers, tablet computers, smartphones, digital cameras, etc. The electronic device 10 may include a first display screen 101. Figure 9 (shown in the image) and the first monitoring module 102 ( Figure 9 (As shown in the diagram). The first display screen 101 has display and touch control functions, used to display multimedia content and record user operation information (for ease of description, this application refers to it as "first operation"). The first monitoring module 102 is used to monitor the attitude of the electronic device 10 (for ease of description, this application refers to it as "first attitude"). The first monitoring module 102 may include a gyroscope, a gravity sensor, etc., which are not limited here.

[0035] The first posture can include a horizontal posture and a vertical posture (see reference). Figure 1 The orientation of the electronic device 10 is determined by its orientation and tilt. If the angle between the line containing the long side of the first display screen 101 in the electronic device 10 and the X-axis direction (referred to as the "first axis" in this application for ease of description) is less than or equal to a preset angle value, then the electronic device 10 is determined to be in a horizontal orientation. If the angle between the line containing the short side of the first display screen 101 in the electronic device 10 and the first axis is less than or equal to a preset angle value, then the electronic device 10 is determined to be in a vertical orientation. If the electronic device 10 is not in either a horizontal or vertical orientation, then the electronic device 10 is determined to be in a tilted orientation. The preset angle value can be set according to actual needs; for example, the preset angle value can be 1 degree, 5 degrees, 6 degrees, etc.

[0036] In some embodiments, the first monitoring module 102 can determine the first attitude of the electronic device 10 by monitoring the first angular velocity and / or first acceleration of the electronic device 10 in a preset axis. The preset axis may include the X-axis direction (i.e., the first axis), the Y-axis direction (also referred to as the "second axis" in this application for ease of description), and the Z-axis direction in a three-dimensional Cartesian coordinate system. If the electronic device 10 is in a stationary state, the first attitude of the electronic device 10 can be determined by monitoring the first acceleration of the electronic device 10 in the preset axis. If the electronic device 10 is in a moving state, the first attitude of the electronic device 10 can be determined by monitoring the first acceleration and first angular velocity of the electronic device 10 in the preset axis. For example, the first monitoring module 102 uses a gravity sensor to monitor the first acceleration of the electronic device 10 in the X-axis direction, the Y-axis direction, and the Z-axis direction, and the first monitoring module 102 uses a gyroscope to monitor the first angular velocity of the electronic device 10 in the X-axis direction, the Y-axis direction, and the Z-axis direction. If the electronic device 10 is stationary and its first acceleration in the X-axis direction is greater than its first acceleration in the Y-axis direction, then the electronic device 10 is determined to be in a horizontal orientation. If its first acceleration in the X-axis direction is less than its first acceleration in the Y-axis direction, then the electronic device 10 is determined to be in a vertical orientation. If the electronic device 10 is in motion, its first accelerations in the X-axis, Y-axis, and Z-axis directions are determined respectively, and the direction angle of the gravity vector is determined based on these first accelerations. The first angular velocities of the electronic device 10 in the X-axis, Y-axis, and Z-axis directions are also determined respectively. The dynamic rotation angle of the electronic device 10 is determined using these first angular velocities. Based on the direction angle of the gravity vector and the dynamic rotation angle, the first attitude of the electronic device 10 can be determined. For example, the sum of the direction angle of the gravity vector and the dynamic rotation angle can be determined, and this sum is used as the corrected device attitude angle. If the corrected device attitude angle is close to 0 degrees or 180 degrees, the electronic device 10 is determined to be in a vertical orientation; if the corrected device attitude angle is close to 90 degrees or 270 degrees, the electronic device 10 is determined to be in a horizontal orientation. Here, "close to" indicates that the angle difference between the two is less than or equal to a preset angle value. For example, a corrected device attitude angle close to 0 degrees can indicate that the angle difference between the corrected device attitude angle and 0 degrees is less than or equal to a preset angle value. The preset angle value can be set according to actual needs; for example, the preset angle value can be 1 degree, 5 degrees, 6 degrees, etc. In some embodiments, the direction angle of the gravity vector can be determined using the arctangent function based on the first acceleration of the electronic device 10 in the X-axis direction and the first acceleration in the Y-axis direction.In some embodiments, the first angular velocity that has the greatest impact on the first attitude determination of the electronic device 10 can be selected as the dynamic rotation angle of the electronic device 10. For example, the first angular velocity of the electronic device 10 in the Z-axis direction can be used as the dynamic rotation angle of the electronic device 10.

[0037] In some embodiments, the wearable device 20 may include smart glasses, smartwatches / bracelets, virtual reality headsets, augmented reality headsets, smart rings, and smart clothing, etc. This application embodiment uses smart glasses as an example to illustrate the wearable device 20. The wearable device 20 includes a second display screen 201 and a second monitoring module 202. The second display screen 201 has a display function for displaying multimedia content. The number of second display screens 201 can be set according to actual needs; for example, the number of second display screens 201 can be one, two, or more. This application embodiment uses two second display screens 201 as an example for illustration. For example, refer to... Figure 1 The second display screen 201 can be two lenses of the wearable device 20. The second monitoring module 202 is used to monitor the attitude of the wearable device 20 (for ease of description, it is referred to as "second attitude" in this application). The second monitoring module 202 may include a gyroscope, a gravity sensor, etc., and is not limited thereto.

[0038] The second posture can include a horizontal posture (see reference). Figure 1 The wearable device is classified into three orientations: horizontal, vertical, and tilted. If the angle between the line containing the two lenses in the wearable device 20 and the X-axis (referred to as the "first axis" for ease of description) is less than or equal to a preset angle value, the wearable device 20 is determined to be in a horizontal orientation. If the angle between the line containing the two lenses in the wearable device 20 and the Y-axis (referred to as the "second axis" for ease of description) is less than or equal to a preset angle value, the wearable device 20 is determined to be in a vertical orientation. If the wearable device 20 is not in either a horizontal or vertical orientation, it is determined to be in a tilted orientation. The preset angle value can be set according to actual needs; for example, the preset angle value can be 1 degree, 5 degrees, 6 degrees, etc.

[0039] In some embodiments, the second monitoring module 202 can determine the second posture of the wearable device 20 by monitoring the second acceleration and / or second angular velocity of the wearable device 20 in a preset axis. If the wearable device 20 is stationary, the second posture of the wearable device 20 can be determined by monitoring the second acceleration of the wearable device 20 in the preset axis. If the wearable device 20 is in motion, the second posture of the wearable device 20 is determined by monitoring the second acceleration and second angular velocity of the wearable device 20 in the preset axis. For example, the second monitoring module 202 uses a gravity sensor to monitor the second acceleration of the wearable device 20 in the X-axis, Y-axis, and Z-axis directions, and the second monitoring module 202 uses a gyroscope to monitor the second angular velocity of the wearable device 20 in the X-axis, Y-axis, and Z-axis directions. If the wearable device 20 is stationary, and its second acceleration in the X-axis direction is greater than its second acceleration in the Y-axis and Z-axis directions, then the wearable device 20 is determined to be in a horizontal orientation. If its second acceleration in the Y-axis direction is greater than its second acceleration in the X-axis and Z-axis directions, then the wearable device 20 is determined to be in a vertical orientation. If the wearable device 20 is in motion, its second accelerations in the X-axis, Y-axis, and Z-axis directions are determined, and the direction angle of the gravity vector is determined based on these second accelerations. The second angular velocities of the wearable device 20 in the X-axis, Y-axis, and Z-axis directions are also determined, and the dynamic rotation angle of the wearable device 20 is determined using these second angular velocities. Based on the direction angle of the gravity vector and the dynamic rotation angle, the second attitude of the wearable device 20 can be determined. For example, the sum of the direction angle of the gravity vector and the dynamic rotation angle can be determined, and this sum is used as the corrected device attitude angle. If the corrected device posture angle is close to 0 degrees or 180 degrees, the wearable device 20 is determined to be in a vertical posture; if the corrected device posture angle is close to 90 degrees or 270 degrees, the wearable device 20 is determined to be in a horizontal posture. Here, "close to" indicates that the angle difference between the two is less than or equal to a preset angle value. For example, a corrected device posture angle close to 0 degrees can indicate that the angle difference between the corrected device posture angle and 0 degrees is less than or equal to a preset angle value. The preset angle value can be set according to actual needs; for example, the preset angle value can be 1 degree, 5 degrees, 6 degrees, etc. In some embodiments, the direction angle of the gravity vector can be determined using the arctangent function based on the second acceleration of the wearable device 20 in the X-axis direction and the second acceleration in the Y-axis direction. In some embodiments, the first angular velocity that has the greatest impact on the second posture determination of the wearable device 20 can be selected as the dynamic rotation angle of the wearable device 20; for example, the second angular velocity of the wearable device 20 in the Z-axis direction can be used as the dynamic rotation angle of the wearable device 20.

[0040] In some embodiments, in response to a first operation by a user on a first display screen 101 in an electronic device 10, the electronic device 10 may send a control command to a wearable device 20, causing the wearable device 20 to control the display information by executing the first operation. In other embodiments, in response to a first operation by a user on a first display screen 101 in an electronic device 10, the electronic device 10 adjusts the first operation according to a first posture and a second posture to obtain a second operation, and sends a control command to the wearable device 20, causing the wearable device 20 to control the display information by executing the second operation.

[0041] In the above application scenario, electronic device 10 and wearable device 20 are communicatively connected, with electronic device 10 providing multimedia content to wearable device 20. Responding to a user's first operation on the first display screen 101 of electronic device 10, the system controls the information displayed on the second display screen 201 of wearable device 20, making wearable device 20 easier to control and improving its control efficiency. Furthermore, electronic device 10 sends control commands to wearable device 20 based on a first and second posture, avoiding the impact of posture changes on device control and improving the accuracy of device control.

[0042] Figure 2 This is a flowchart of a device control method provided in an embodiment of this application. The device control method is applied to electronic devices (e.g., Figure 1 Electronic devices 10). Figure 2 As shown, the equipment control method includes the following steps. Depending on different requirements, the order of the steps in this flowchart can be changed, and some steps can be omitted.

[0043] S11, in response to the user's first operation, determine the first posture of the electronic device and the second posture of the wearable device.

[0044] In at least one embodiment of this application, a user can activate the first display screen of the electronic device by performing related operations on physical buttons or functional controls on the touch area of ​​the electronic device, thereby executing a first operation on the first display screen to control the display information of the wearable device. The first operation can represent a touch operation performed by the user on the first display screen of the electronic device, and the first operation can include operations such as swiping, two-finger zooming, clicking / continuous clicking, and multi-finger dragging.

[0045] In some embodiments, a first posture is used to describe the posture information of an electronic device. The first posture may include a horizontal posture, a vertical posture, and a tilted posture. Specifically, if the angle between the line containing the long side of the first display screen and the first axis is less than or equal to a preset angle value, the electronic device is determined to be in a horizontal posture. For example, in gaming scenarios, electronic devices are mostly in a horizontal posture. If the angle between the line containing the short side of the first display screen and the first axis is less than or equal to a preset angle value, the electronic device is determined to be in a vertical posture. For example, in social chat scenarios, electronic devices are mostly in a vertical posture. A tilted posture describes an electronic device placed at an angle, such as an electronic device that is neither in a horizontal nor a vertical posture.

[0046] In some embodiments, the second posture describes the posture information of the wearable device, and the second posture may include a horizontal posture, a vertical posture, and a tilted posture. Specifically, if the angle between the straight line containing the two lenses of the wearable device and the first axis is less than or equal to a preset angle value, the wearable device is determined to be in a horizontal posture. For example, in a scenario where the user is sitting, the wearable device is mostly in a horizontal posture. If the angle between the straight line containing the two lenses of the wearable device and the second axis is less than or equal to a preset angle value, the wearable device is determined to be in a vertical posture. For example, in a scenario where the user is lying on their side, the wearable device is mostly in a vertical posture. The tilted posture describes the wearable device being tilted, for example, the wearable device is neither in a horizontal nor a vertical posture.

[0047] In some embodiments, taking gravity sensors and gyroscopes as examples, determining the first posture of the electronic device and the second posture of the wearable device includes: determining the first angular velocity and / or first acceleration of the electronic device in a plurality of preset axes; determining the first posture of the electronic device based on the first angular velocity and / or the first acceleration; and determining the second angular velocity and / or second acceleration of the wearable device in the plurality of preset axes; and determining the second posture of the wearable device based on the second angular velocity and / or the second acceleration.

[0048] If the electronic device is stationary, its first attitude is determined based on its first accelerations in the X, Y, and Z axes. If the electronic device is in motion, its first attitude is determined based on its first accelerations and first angular velocities in the X, Y, and Z axes. The method for determining the first attitude has been described in detail above and will not be repeated here.

[0049] If the wearable device is stationary, its second attitude is determined based on its first acceleration in the X, Y, and Z axes. If the wearable device is in motion, its second attitude is determined based on its second acceleration and second angular velocity in the X, Y, and Z axes. The method for determining the second attitude has been described in detail above and will not be repeated here.

[0050] This application embodiment utilizes the first angular velocity and / or first acceleration of an electronic device along multiple preset axes. When the electronic device is in motion, the first angular velocity of the gyroscope is combined with the first acceleration of the gravity sensor to dynamically compensate for the first acceleration. This reduces judgment errors in motion and improves the accuracy of determining the first attitude of the electronic device. Furthermore, it utilizes the second angular velocity and / or second acceleration of a wearable device along multiple preset axes. When the wearable device is in motion, the second angular velocity of the gyroscope is combined with the second acceleration of the gravity sensor to dynamically compensate for the second acceleration. This reduces judgment errors in motion and improves the accuracy of determining the second attitude of the wearable device, thereby improving the accuracy and speed of device control.

[0051] S12, if the second posture does not match the first posture, then based on the first posture and the second posture, a second operation is determined and a control command is sent to the wearable device, so that the wearable device controls the display information by executing the second operation.

[0052] In at least one embodiment of this application, a first preset posture and a second preset posture are preset. Based on the first posture and the first preset posture, and the second posture and the second preset posture, it can be determined whether the second posture matches the first posture. The first preset posture and the second preset posture can be the same or different, and this is not limited here. This application embodiment uses the example of the first preset posture and the second preset posture being the same, and both being a horizontal posture. In some embodiments, if the first posture is a vertical posture and the second posture is also a vertical posture, or if the first posture is a horizontal posture and the second posture is also a horizontal posture, then it is determined that the second posture matches the first posture. If the first posture is a vertical posture and the second posture is a horizontal posture, or if the first posture is a horizontal posture and the second posture is a vertical posture, then it is determined that the second posture does not match the first posture. If the first posture is a first tilted posture and the second posture is a second tilted posture, then it is determined that the second posture does not match the first posture.

[0053] In some embodiments, if the second posture matches the first posture, it indicates that the user's first operation on the electronic device can be sent to the wearable device without adjusting the first operation. For example, if the first posture is a vertical orientation and the second posture is also a vertical orientation, or if the first posture is a horizontal orientation and the second posture is also a horizontal orientation: the control command is sent to the wearable device, causing the wearable device to control the display information by executing the first operation. The control command is used to instruct the wearable device to control the display information according to the first operation.

[0054] In some embodiments, if the second posture does not match the first posture, it indicates that the first operation needs to be converted so that the first operation matches the orientation of the wearable device's display interface. For example, if the first posture is a vertical orientation and the second posture is a horizontal orientation, or if the first posture is the horizontal orientation and the second posture is the vertical orientation, or if the first posture is a first tilted orientation and the second posture is a second tilted orientation: based on the first posture and the second posture, a second operation is determined and a control command is sent to the wearable device, causing the wearable device to control the display information by executing the second operation.

[0055] The device control method provided in this application identifies a first posture of an electronic device and a second posture of a wearable device. It then uses these two postures to convert a first operation on the electronic device into a second operation. This allows the wearable device to control and display information by executing the second operation, thus avoiding the influence of posture changes on device control and improving the accuracy of device control. Furthermore, this application achieves operation control of the wearable device through operation on the electronic device, making the wearable device easier to control and improving its control efficiency.

[0056] In at least one embodiment of this application, if the second posture does not match the first posture, the first operation needs to be converted to obtain the second operation, so that the wearable device controls the display information by executing the second operation. Figure 3 This is a flowchart illustrating the operation conversion method provided in an embodiment of this application. The first operation conversion method is applied to an electronic device. Figure 3 As shown, the steps include the following.

[0057] S21, determine operation transition information based on the first posture and the second posture.

[0058] In at least one embodiment of this application, a mismatch between the second posture of the wearable device and the first posture of the electronic device may include: the first posture being a vertical posture and the second posture being a horizontal posture, or the first posture being a horizontal posture and the second posture being a vertical posture, or the first posture being a first tilted posture and the second posture being a second tilted posture. Operation conversion information is used to indicate information for adjusting the operation values ​​of the first operation in each axis.

[0059] In some embodiments, the description is given by taking as an example that the first posture is a vertical posture and the second posture is a horizontal posture, or the first posture is a horizontal posture and the second posture is a vertical posture. For example, Figure 4 As shown, a user wearing wearable device 20 operates electronic device 10 while sitting in a chair. At this time, electronic device 10 is in a vertical orientation, and wearable device 20 is in a horizontal orientation. In some embodiments, operation conversion information is determined based on the first orientation and the second orientation, including: determining a first operation value for the first operation along a first axis and a second operation value along a second axis; determining that the operation conversion information is to swap the first operation value and the second operation value. Wherein, since the first preset orientation and the second preset orientation are both horizontal orientations, when the first orientation is vertical and the second orientation is horizontal, or vice versa, the orientation of the first operation does not match the display interface of wearable device 20. The operation information of the first operation along the first axis corresponds to the operation information of wearable device 20 along the second axis, and vice versa. Based on this, the first operation value along the first axis and the second operation value along the second axis are swapped so that the converted second operation matches the orientation of the display interface of wearable device 20.

[0060] For example, the first operation of the electronic device 10 is denoted as x1 in the first axis (hereinafter referred to as "first operation value" for ease of description) and y1 in the second axis. By swapping the first operation value and the second operation value, that is, the second operation of the wearable device 20 is denoted as y1 in the first axis and x1 in the second axis, the first operation in the electronic device 10 can be correctly output to the display interface of the wearable device 20. This embodiment of the application avoids the influence of the posture changes of the electronic device 10 and the wearable device 20 on the device control by swapping the first operation value and the second operation value, thereby improving the device control accuracy of the wearable device 20.

[0061] In some embodiments, the description is given by taking the first posture as a first tilt posture and the second posture as a second tilt posture, for example, as follows: Figure 5As shown, a user is wearing wearable device 20 and operating electronic device 10 while lying on a sofa. At this time, electronic device 10 is in a first tilted posture, and wearable device 20 is also in a first tilted posture. In some embodiments, determining operation conversion information based on the first posture and the second posture includes: if the first posture is a first tilted posture and the second posture is a second tilted posture, then determining a first tilt angle of the electronic device based on the first tilted posture, and determining a second tilt angle of the wearable device 20 based on the second tilted posture; determining a first operation value for the first operation along a first axis and a second operation value along a second axis; and determining the operation conversion information as adjusting the first operation value and the second operation value based on the first tilt angle and the second tilt angle.

[0062] The angle between the line containing the longer side of the electronic device 10 and the first axis is denoted as the first tilt angle. The angle between the line containing the two lenses of the wearable device 20 and the first axis is denoted as the second tilt angle. Please refer to [link to relevant documentation]. Figure 6 and Figure 7 , Figure 6 This is a schematic diagram of the first tilt angle provided in an embodiment of this application. Figure 7 This is a schematic diagram of the second tilt angle provided in an embodiment of this application. The electronic device 10 is in a first tilt posture, and the angle between the electronic device 10 and the first axis is denoted as α, i.e., the first tilt angle is α. The wearable device 20 is in a second tilt posture, and the angle between the wearable device 20 and the first axis is denoted as β, i.e., the second tilt angle is β. This embodiment of the application determines the first tilt angle of the electronic device 10 and the second tilt angle of the wearable device 20, and adjusts the first operation based on the first and second tilt angles, thereby avoiding the influence of posture changes of the electronic device 10 and the wearable device 20 on device control and improving the accuracy of device control of the wearable device 20.

[0063] In some embodiments, adjusting the first operation value and the second operation value based on the first tilt angle and the second tilt angle includes: determining the angle difference between the first tilt angle and the second tilt angle; adjusting the first operation value using a first trigonometric function based on the angle difference; and adjusting the second operation value using a second trigonometric function based on the angle difference. The first trigonometric function can be a cosine function, and the second trigonometric function can be a sine function. This application, through trigonometric functions, can dynamically adjust the first and second operation values ​​according to angle changes, adapting to different scenario requirements and improving the accuracy of operation conversion.

[0064] For example, by using Formula 1, the first operation value is adjusted to obtain the operation value of the first axis corresponding to the second operation.

[0065] Where X'n represents the operation value of the second operation corresponding to the first axis, Xn represents the first operation value, α represents the first tilt angle, and β represents the second tilt angle.

[0066] For example, by using Formula 2, the second operation value is adjusted to obtain the operation value of the second axis corresponding to the second operation.

[0067] Where Y'h represents the operation value corresponding to the second axis of the second operation, Yh represents the second operation value, α represents the first tilt angle, and β represents the second tilt angle.

[0068] S22, using the operation conversion information, the first operation is converted to obtain the second operation.

[0069] In at least one embodiment of this application, by utilizing operation conversion information, a first operation in the electronic device 10 can be converted into a second operation in the wearable device 20, so that the wearable device 20 controls the display information by executing the second operation.

[0070] In the device control method provided in this application embodiment, by identifying the first posture of the electronic device and the second posture of the wearable device, the first operation on the electronic device is converted using the first posture and the second posture to obtain the second operation, and the display information of the wearable device is controlled according to the second operation, so as to avoid the influence of the posture changes of the electronic device and the wearable device on the device control and improve the device control accuracy of the wearable device.

[0071] Please see Figure 8 , Figure 8 This is a schematic diagram of the structure of a device control apparatus provided in an embodiment of this application. In some embodiments, the device control apparatus 30 may include multiple functional modules composed of computer program segments. The computer programs of each program segment in the device control apparatus 30 may be stored in the memory of the electronic device 10 and executed by at least one processor to perform (see details). Figure 2 (Description) The functions of equipment control.

[0072] In some embodiments, the device control device 30 can be divided into multiple functional modules according to the functions it performs. The functional modules may include an attitude determination module 301 and an operation control module 302. As used in this application, a module refers to a series of computer program segments that can be executed by at least one processor and perform a fixed function, and which are stored in memory. In this embodiment, the functions of each module will be described in detail in subsequent embodiments.

[0073] The attitude determination module 301 can be used to determine the first attitude of the electronic device 10 and the second attitude of the wearable device 20 in response to a first operation by the user.

[0074] The operation control module 302 can be used to determine a second operation and send a control command to the wearable device based on the first and second postures if the second posture does not match the first posture, so that the wearable device controls the display information by executing the second operation, the second operation being different from the first operation.

[0075] It is understood that the device control device 30 and the device control method of the above embodiments belong to the same inventive concept. The specific implementation of each module of the device control device 30 corresponds to each step of the device control method in the above embodiments, and will not be repeated here.

[0076] The module division described above is a logical functional division, and other division methods may be used in actual implementation. Furthermore, the functional modules in the various embodiments of this application can be integrated into the same processing unit, or each module can exist physically separately, or two or more modules can be integrated into the same unit. The integrated modules described above can be implemented in hardware or in a combination of hardware and software functional modules.

[0077] Figure 9 This is a schematic diagram of the structure of the electronic device provided in an embodiment of this application. For example... Figure 9 As shown, the electronic device 10 includes a first display screen 101, a first monitoring module 102, a communication module 103, a memory 104, a processor 105, an input / output (I / O) interface 106, and a bus 107. The processor 105 is coupled to the communication module 103, the memory 104, and the input / output interface 106 via the bus 107.

[0078] In some embodiments, the communication module 103 may include a wired communication module and / or a wireless communication module. The wired communication module may provide one or more wired communication solutions such as Universal Serial Bus (USB) and Controller Area Network (CAN). The wireless communication module may provide one or more wireless communication solutions such as Wireless Fidelity (Wi-Fi), Bluetooth (BT), mobile communication networks, frequency modulation (FM), near field communication (NFC), and infrared (IR).

[0079] In some embodiments, memory 104 is used to store one or more computer programs. The one or more computer programs are configured to be executed by processor 105. The one or more computer programs include a plurality of instructions that, when executed by processor 105, can implement a device control method executed on electronic device 10.

[0080] In some embodiments, memory 104 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM). The RAM can be directly read and written by the processor 105 and can be used to store executable programs (e.g., machine instructions) of other running programs, as well as user and application data. The RAM may include static random-access memory (SRAM), dynamic random-access memory (DRAM), synchronous dynamic random-access memory (SDRAM), double data rate synchronous dynamic random-access memory (DDR SDRAM), etc.

[0081] In some embodiments, the non-volatile memory may also store executable programs and user and application data, which can be pre-loaded into random access memory for direct reading and writing by the processor 105. The non-volatile memory may include disk storage devices and flash memory.

[0082] In other embodiments, the electronic device 10 also includes an external memory interface for connecting to an external memory to expand the storage capacity of the electronic device 10.

[0083] In some embodiments, the processor 105 provides computing and control capabilities, for example, the processor 105 is used to execute computer programs stored in the memory 104 to implement the device control method described above.

[0084] In some embodiments, processor 105 may include one or more processing units, such as an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), and / or a neural network processing unit (NPU). These different processing units may be independent devices or integrated into one or more processors.

[0085] In some embodiments, the input / output interface 106 is used to provide a channel for user input or output. For example, the input / output interface 106 can be used to connect various input / output devices, such as a mouse, keyboard, touch device, display screen, etc., so that users can enter information or visualize information.

[0086] In some embodiments, bus 107 is at least used to provide a channel for communication between communication modules 103, memory 104, processor 105, and input / output interface 106 in electronic device 10.

[0087] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 10. In other embodiments of this application, the electronic device 10 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0088] This application also provides a computer-readable storage medium storing a computer program, which includes program instructions. When the program instructions are executed, the method implemented can refer to the methods in the above embodiments of this application.

[0089] The computer-readable storage medium can be the internal memory of the electronic device described in the above embodiments, such as the hard disk or memory of the electronic device. Alternatively, the computer-readable storage medium can be an external storage device of the electronic device, such as a plug-in hard disk, smart media card (SMC), secure digital card (SD), flash card, etc., installed on the electronic device.

[0090] In some embodiments, a computer-readable storage medium may include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program required for at least one function, etc.; and the stored data area may store data created based on the use of the electronic device, etc.

[0091] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and other division methods may be used in actual implementation.

[0092] The modules described as separate components may or may not be physically separate. The components shown as modules 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.

[0093] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in the form of hardware plus software functional modules.

[0094] Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of this application is defined by the appended claims rather than the foregoing description. Thus, all variations falling within the meaning and scope of equivalents of the claims are intended to be embraced within this application. No appended diagram markings in the claims should be construed as limiting the scope of the claims.

[0095] Furthermore, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices described in this application may also be implemented by a single unit or device through software or hardware. The terms "first," "second," etc., are used to indicate names and do not indicate any specific order.

[0096] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application and are not intended to limit it. Although this application has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of this application without departing from the spirit and scope of the technical solutions of this application.

Claims

1. A device control method, applied to electronic equipment, characterized in that, The electronic device is communicatively connected to the wearable device, and the method includes: In response to the user's first operation, a first posture of the electronic device and a second posture of the wearable device are determined; If the second posture does not match the first posture, then based on the first posture and the second posture, a second operation is determined and a control command is sent to the wearable device, so that the wearable device controls the display information by executing the second operation, which is different from the first operation.

2. The equipment control method as described in claim 1, characterized in that, Determining the first posture of the electronic device and the second posture of the wearable device includes: Determine a first angular velocity and / or a first acceleration of the electronic device along multiple preset axes; determine a first attitude of the electronic device based on the first angular velocity and / or the first acceleration; and Determine the second angular velocity and / or second acceleration of the wearable device along a plurality of preset axes; determine the second attitude of the wearable device based on the second angular velocity and / or second acceleration.

3. The equipment control method as described in claim 1 or 2, characterized in that, The method further includes: If the first posture is a vertical posture and the second posture is the vertical posture, or if the first posture is a horizontal posture and the second posture is the horizontal posture, then the second posture is determined to match the first posture, and the control command is sent to the wearable device, so that the wearable device controls the display information by executing the first operation.

4. The equipment control method as described in claim 1, characterized in that, The step of determining the second operation based on the first posture and the second posture includes: Based on the first posture and the second posture, determine the operation transition information; Using the operation conversion information, the first operation is converted to obtain the second operation.

5. The equipment control method as described in claim 4, characterized in that, Based on the first posture and the second posture, operation transition information is determined, including: If the first posture is a vertical posture and the second posture is a horizontal posture, or if the first posture is the horizontal posture and the second posture is the vertical posture, then determine the first operation value in the first axis and the second operation value in the second axis. The operation conversion information is determined to be an exchange of the first operation value and the second operation value.

6. The equipment control method as described in claim 4, characterized in that, Based on the first posture and the second posture, the operation transition information is determined, which also includes: If the first posture is a first tilt posture and the second posture is a second tilt posture, then based on the first tilt posture, the first tilt angle of the electronic device is determined, and based on the second tilt posture, the second tilt angle of the wearable device is determined. Determine a first operation value for the first operation along the first axis and a second operation value along the second axis; The operation conversion information is determined to be based on the first tilt angle and the second tilt angle, and the first operation value and the second operation value are adjusted accordingly.

7. The equipment control method as described in claim 6, characterized in that, The step of adjusting the first operation value and the second operation value based on the first tilt angle and the second tilt angle includes: Determine the angle difference between the first tilt angle and the second tilt angle; Based on the angle difference, the first operation value is adjusted using a first trigonometric function, and based on the angle difference, the second operation value is adjusted using a second trigonometric function.

8. A device control apparatus, applied to electronic equipment, characterized in that, The electronic device is communicatively connected to the wearable device, and the device includes: An attitude determination module is used to determine a first attitude of the electronic device and a second attitude of the wearable device in response to a first operation by the user. An operation control module is used to determine a second operation and send a control command to the wearable device based on the first and second postures if the second posture does not match the first posture, so that the wearable device controls the display information by executing the second operation, the second operation being different from the first operation.

9. An electronic device, characterized in that, It includes a processor and a memory, wherein the processor is configured to implement the device control method as described in any one of claims 1 to 7 when executing a computer program stored in the memory.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor in an electronic device, implements the device control method as described in any one of claims 1 to 7.