Device control method, apparatus and device
Patent Information
- Application Number
- CN202611157159.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-31
- Publication Date
- 2026-10-27
AI Technical Summary
[0010]第六方面,本申请实施例提供一种计算机程序产品,所述程序产品被存储在存储介质中,所述程序产品被至少一个处理器执行以实现本申请实施例提供的设备控制方法的步骤。
Smart Images

Figure CN122994422A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of electronic equipment technology, specifically relating to a device control method, apparatus, and device. Background Technology
[0002] Equipment control refers to controlling electronic devices through physical or digital interfaces to enable them to perform corresponding operations.
[0003] In related technologies, controlling electronic devices mainly includes button control, touch control, voice control, gesture control, and remote control. Button control involves users controlling the electronic device using physical buttons; touch control involves users controlling the device using its touchscreen; voice control involves users inputting voice commands through a microphone; gesture control involves users controlling the device using hand gestures; and remote control control involves users sending remote control signals to the device. Therefore, enriching the methods for controlling electronic devices is a problem that needs to be addressed. Summary of the Invention
[0004] The purpose of this application is to provide a device control method, apparatus, and device that can enrich the control methods for electronic devices.
[0005] In a first aspect, embodiments of this application provide a device control method applied to a first electronic device, the method comprising: When the first electronic device and the second electronic device are connected, the spatial positional relationship between the first electronic device and the second electronic device is determined by ultra-wideband (UWB) positioning. The motion information of the first electronic device is obtained through the inertial measurement unit (IMU) of the first electronic device; Based on spatial relationships and motion information, the second electronic device is controlled to perform corresponding operations.
[0006] Secondly, embodiments of this application provide a device control apparatus applied to a first electronic device, the apparatus comprising: The determination module is used to determine the spatial positional relationship between the first electronic device and the second electronic device by ultra-wideband positioning when the first electronic device and the second electronic device are connected. The acquisition module is used to acquire motion information of the first electronic device through the inertial measurement unit of the first electronic device; The control module is used to control the second electronic device to perform corresponding operations based on spatial positional relationships and motion information.
[0007] Thirdly, embodiments of this application provide an electronic device, which includes a processor and a memory. The memory stores programs or instructions that can run on the processor, and when the programs or instructions are executed by the processor, they implement the steps of the device control method provided in embodiments of this application.
[0008] Fourthly, embodiments of this application provide a readable storage medium storing a program or instructions, which, when executed by a processor, implement the steps of the device control method provided in embodiments of this application.
[0009] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the steps of the device control method provided in embodiments of this application.
[0010] Sixthly, embodiments of this application provide a computer program product, which is stored in a storage medium and executed by at least one processor to implement the steps of the device control method provided in embodiments of this application.
[0011] In this embodiment, when the first electronic device and the second electronic device are connected, the first electronic device determines its spatial position relative to the second electronic device through ultra-wideband positioning and acquires its motion information through an inertial measurement unit. Based on the spatial position and motion information, it controls the second electronic device to perform corresponding operations. Thus, one electronic device can control another based on its motion information, enriching the methods for controlling electronic devices. Attached Figure Description
[0012] Figure 1 This is a schematic flowchart of a device control method provided in some embodiments of this application; Figure 2 This is a first schematic diagram of controlling a second electronic device provided in some embodiments of this application; Figure 3 This is a second schematic diagram of controlling a second electronic device provided in some embodiments of this application; Figure 4 This is a third schematic diagram of controlling a second electronic device provided in some embodiments of this application; Figure 5 This is a fourth schematic diagram of controlling a second electronic device provided in some embodiments of this application; Figure 6 This is a fifth schematic diagram of controlling a second electronic device provided in some embodiments of this application; Figure 7These are schematic diagrams of the device control apparatus provided in some embodiments of this application; Figure 8 These are schematic diagrams of the structure of electronic devices provided in some embodiments of this application; Figure 9 These are schematic diagrams of the hardware structure of electronic devices provided in some embodiments of this application. Detailed Implementation
[0013] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0014] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0015] The device control method, apparatus, equipment, and medium provided in this application will be described in detail below with reference to the accompanying drawings and through specific embodiments and application scenarios.
[0016] It should be noted that the device control method provided in this application can be executed by a first electronic device. The first electronic device in this application can be a mobile phone, tablet computer, PDA, or other electronic device. The second electronic device in this application can be a mobile phone, tablet computer, laptop computer, PDA, vehicle-mounted electronic device, or other electronic device. Some embodiments of this application use an electronic device as the executing entity to illustrate the device control method provided in this application.
[0017] Figure 1 This is a schematic flowchart illustrating a device control method provided in some embodiments of this application. The device control method includes: Step 101: When the first electronic device and the second electronic device are connected, determine the spatial positional relationship between the first electronic device and the second electronic device by ultra-wideband positioning; In some embodiments of this application, the spatial positional relationships may include orientation, distance, deviation angle, and attitude.
[0018] In some embodiments of this application, a three-dimensional spatial coordinate system with the center of the screen of the second electronic device as the origin can be established, and the spatial position relationship between the first electronic device and the second electronic device can be determined by ultra-wideband positioning.
[0019] Step 102: Obtain motion information of the first electronic device through the inertial measurement unit of the first electronic device; In some embodiments of this application, the first electronic device may include an inertial measurement unit (IMU). The IMU may include a gyroscope and an accelerometer for measuring the attitude angle (or angular velocity) and acceleration of the first electronic device.
[0020] In some embodiments of this application, the motion information in these embodiments includes, but is not limited to, motion trajectory, motion direction, angular velocity, and acceleration.
[0021] Step 103: Based on the spatial positional relationship and motion information, control the second electronic device to perform the corresponding operation.
[0022] In some embodiments of this application, step 103 may include: if the spatial positional relationship satisfies the first condition, controlling the second electronic device to perform a corresponding operation based on motion information.
[0023] In some embodiments of this application, the first condition may include: the angle between the normal direction of the bottom surface of the first electronic device and the plane where the screen of the second electronic device is located is within a preset angle range.
[0024] The first electronic device includes a front (the plane where the screen is located), a back, a top, a bottom, a left side, and a right side.
[0025] In some embodiments of this application, the preset angle range can be set according to actual needs, for example, the preset angle range is 75° to 90°. When the angle between the normal direction of the bottom surface of the first electronic device and the plane where the screen of the second electronic device is located is between 75° and 90°, it is determined that the top surface of the first electronic device faces the screen of the second electronic device. At this time, based on the motion information of the first electronic device, the second electronic device is controlled to perform corresponding operations.
[0026] In this embodiment of the application, the second electronic device is controlled only when the top surface of the first electronic device is facing the screen of the second electronic device, thereby preventing miscontrol of the second electronic device and ensuring the accuracy of the control.
[0027] In some embodiments of this application, when controlling a second electronic device to perform a corresponding operation based on motion information from a first electronic device, a control command corresponding to the motion information can be generated and sent to the second electronic device. Upon receiving the control command, the second electronic device executes the operation corresponding to the control command.
[0028] In some embodiments of this application, step 103 may include: controlling the second electronic device to lock its screen when the motion information includes the first electronic device moving toward the screen of the second electronic device; or, controlling the second electronic device to unlock its screen when the motion information includes the first electronic device moving away from the screen of the second electronic device.
[0029] For example, such as Figure 2 and Figure 3 As shown, Figure 2 This is a first schematic diagram of controlling a second electronic device provided in some embodiments of this application. Figure 3 This is a second schematic diagram of controlling a second electronic device provided in some embodiments of this application.
[0030] exist Figure 2 In this system, the first electronic device is a mobile phone, and the second electronic device is a computer. When the mobile phone 201 moves toward the screen of the computer 202, the mobile phone 201 controls the computer 202 to lock the screen.
[0031] exist Figure 3 In this system, the first electronic device is a mobile phone, and the second electronic device is a computer. When the mobile phone 201 moves away from the screen of the computer 202, the mobile phone 201 controls the computer 202 to unlock.
[0032] In some embodiments of this application, the motion information in these embodiments may further include the acceleration of the first electronic device; accordingly, step 103 may include: controlling the second electronic device to lock its screen when the motion information includes the first electronic device moving toward the screen of the second electronic device and the acceleration of the first electronic device in the vertical direction of the screen of the first electronic device being greater than a second threshold; or, controlling the second electronic device to unlock its screen when the motion information includes the first electronic device moving away from the screen of the second electronic device and the acceleration of the first electronic device in the vertical direction of the screen of the first electronic device being greater than a first threshold.
[0033] In some embodiments of this application, the second threshold can be set according to actual needs. For example, the second threshold is 2g, where g is the gravitational acceleration.
[0034] In this embodiment of the application, when the first electronic device moves toward the screen of the second electronic device and the acceleration of the first electronic device in the vertical direction of the screen of the first electronic device is greater than a second threshold, the second electronic device is controlled to lock the screen; when the first electronic device moves away from the screen of the second electronic device and the acceleration of the first electronic device in the vertical direction of the screen of the first electronic device is greater than the second threshold, the second electronic device is controlled to unlock.
[0035] In some embodiments of this application, step 103 may include: controlling the second electronic device to display the interface of the previously used application when the motion information, including the acceleration of the first electronic device in the horizontal direction of the screen of the first electronic device, is greater than a first threshold. The acceleration in the horizontal direction of the screen of the first electronic device may be a force received by the first electronic device from the user swinging it to the left or right.
[0036] In some embodiments of this application, the first threshold can be set according to actual needs. For example, the first threshold is 2g, where g is the gravitational acceleration.
[0037] For example, such as Figure 4 As shown, Figure 4 This is a third schematic diagram of controlling a second electronic device provided in some embodiments of this application.
[0038] exist Figure 4 In this system, the first electronic device is a mobile phone, and the second electronic device is a computer. When the horizontal acceleration of the mobile phone 201 on its screen exceeds a first threshold, the mobile phone 201 controls the computer 202 to display the interface of the previously used application.
[0039] For example, computer 202 is currently displaying a browser interface, and the last application used was an instant messaging application. When the horizontal acceleration of mobile phone 201 on the screen of mobile phone 201 exceeds a first threshold, computer 202 switches the browser interface to display the instant messaging application interface.
[0040] In some embodiments of this application, the interface of the previously used application can be the main interface of the previously used application or the interface displayed by the previously used application before exiting.
[0041] In some embodiments of this application, step 103 may include: controlling the second electronic device to display the desktop when the motion information includes the first electronic device's flip angle being greater than the target angle or the first electronic device's motion trajectory being projected as a closed shape on the second electronic device's screen.
[0042] In some embodiments of this application, the target angle can be set according to actual needs, for example, the target angle is 90°, 180°, or 360°.
[0043] For example, such as Figure 5 and Figure 6 As shown, Figure 5 This is a fourth schematic diagram of controlling a second electronic device provided in some embodiments of this application. Figure 6 This is a fifth schematic diagram of controlling a second electronic device provided in some embodiments of this application.
[0044] exist Figure 5 In this system, the first electronic device is a mobile phone, and the second electronic device is a computer. When the mobile phone 201 rotates 360° around the vertical axis of its screen, the mobile phone 201 controls the computer 202 to display the desktop.
[0045] exist Figure 6 In this system, the first electronic device is a mobile phone, and the second electronic device is a computer. When the motion trajectory of the mobile phone 201 is projected as a closed shape on the screen of the computer 202, the mobile phone 201 controls the computer 202 to display the desktop.
[0046] In this embodiment, when the first electronic device and the second electronic device are connected, the first electronic device determines its spatial position relative to the second electronic device through ultra-wideband positioning and acquires its motion information through an inertial measurement unit. Based on the spatial position and motion information, it controls the second electronic device to perform corresponding operations. Thus, one electronic device can control another based on its motion information, enriching the methods for controlling electronic devices.
[0047] The device control method provided in the embodiments of this application will be described below through specific examples.
[0048] For example, the first electronic device is a mobile phone and the second electronic device is a computer.
[0049] When it is determined via UWB that the top of the phone is pointing at the computer screen, the motion information of the phone is acquired through the inertial measurement unit.
[0050] Control the computer screen to lock when the phone is moved towards the computer screen.
[0051] Control the computer to unlock when the phone moves away from the computer screen.
[0052] When the acceleration of the phone in the horizontal direction of the phone screen exceeds a first threshold, the computer is controlled to display the interface of the last used application.
[0053] When the phone rotates 360° around the vertical axis of the phone screen or when the projection of the phone's movement trajectory on the computer screen is a closed shape, the computer will display the desktop.
[0054] Figure 7 This is a schematic diagram of the structure of a device control apparatus provided in some embodiments of this application. The device control apparatus provided in the embodiments of this application can be applied to a first electronic device. The device control apparatus 700 may include: The determination module 701 is used to determine the spatial positional relationship between the first electronic device and the second electronic device by ultra-wideband positioning when the first electronic device and the second electronic device are connected. The acquisition module 702 is used to acquire motion information of the first electronic device through the inertial measurement unit of the first electronic device; The control module 703 is used to control the second electronic device to perform corresponding operations based on spatial positional relationships and motion information.
[0055] In some embodiments of this application, the control module 703 is specifically used for: If the spatial relationship satisfies the first condition, the second electronic device is controlled to perform corresponding operations based on the motion information; The first condition includes: The angle between the normal direction of the bottom surface of the first electronic device and the plane where the screen of the second electronic device is located is within a preset angle range.
[0056] In some embodiments of this application, the control module 703 is specifically used for: If the motion information includes the first electronic device moving toward the screen of the second electronic device, control the second electronic device to lock its screen; or, When motion information includes movement of the first electronic device away from the screen of the second electronic device, the second electronic device is unlocked.
[0057] In some embodiments of this application, the control module 703 is specifically used for: When the motion information, including the acceleration of the first electronic device in the horizontal direction of the screen of the first electronic device, is greater than a first threshold, the second electronic device is controlled to display the interface of the previously used application.
[0058] In some embodiments of this application, the control module 703 is specifically used for: When the motion information includes the first electronic device's flip angle being greater than the target angle or the first electronic device's motion trajectory being projected as a closed shape on the second electronic device's screen, the second electronic device is controlled to display the desktop.
[0059] The first electronic device in this application embodiment can be a mobile phone, tablet computer, handheld computer, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), etc., and this application embodiment does not make specific limitations.
[0060] The first electronic device in this application embodiment can be an electronic device with an operating system. The operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system.
[0061] The first electronic device provided in this application embodiment can achieve... Figures 1 to 6 The various processes implemented in the device control method embodiment will not be described again here to avoid repetition.
[0062] Optionally, such as Figure 8 As shown, this application embodiment also provides an electronic device 800, including a processor 801 and a memory 802. The memory 802 stores a program or instructions that can run on the processor 801. When the program or instructions are executed by the processor 801, they implement the various steps of the device control method embodiment provided in this application embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0063] Figure 9 This is a schematic diagram of the hardware structure of an electronic device according to some embodiments of this application.
[0064] The electronic device 900 includes, but is not limited to, components such as: radio frequency unit 901, network module 902, audio output unit 903, input unit 904, sensor 905, display unit 906, user input unit 907, interface unit 908, memory 909, and processor 910.
[0065] Those skilled in the art will understand that the electronic device 900 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 910 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 9 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0066] The processor 910 is used to: determine the spatial position relationship between the electronic device 900 and the second electronic device by ultra-wideband positioning when the electronic device 900 and the second electronic device are connected; acquire motion information of the electronic device 900 by inertial measurement unit of the electronic device 900; and control the second electronic device to perform corresponding operations according to the spatial position relationship and motion information.
[0067] In some embodiments of this application, the processor 910 is specifically used for: If the spatial relationship satisfies the first condition, the second electronic device is controlled to perform corresponding operations based on the motion information; The first condition includes: The angle between the normal direction of the bottom surface of the electronic device 900 and the plane where the screen of the second electronic device is located is within a preset angle range.
[0068] In some embodiments of this application, the processor 910 is specifically used for: If the motion information includes the electronic device 900 moving towards the screen of the second electronic device, control the second electronic device to lock its screen; or, When motion information includes movement of the electronic device 900 away from the screen of the second electronic device, the second electronic device is unlocked.
[0069] In some embodiments of this application, the processor 910 is specifically used for: If the motion information, including the acceleration of the electronic device 900 in the horizontal direction of its screen, is greater than a first threshold, the second electronic device is controlled to display the interface of the previously used application.
[0070] In some embodiments of this application, the processor 910 is specifically used for: When the motion information includes the flip angle of the electronic device 900 being greater than the target angle or the motion trajectory of the electronic device 900 being projected as a closed figure on the screen of the second electronic device, the second electronic device is controlled to display the desktop.
[0071] It should be understood that, in this embodiment, the input unit 904 may include a graphics processing unit (GPU) 9041 and a microphone 9042. The GPU 9041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 906 may include a display panel 9061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 907 includes at least one of a touch panel 9071 and other input devices 9072. The touch panel 9071 is also called a touch screen. The touch panel 9071 may include a touch detection device and a touch controller. Other input devices 9072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.
[0072] The memory 909 can be used to store software programs and various data. The memory 909 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 909 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 909 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.
[0073] Processor 910 may include one or more processing units; optionally, processor 910 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 910.
[0074] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the device control method provided in this application and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0075] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0076] This application also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the device control method provided in this application and achieve the same technical effect. To avoid repetition, it will not be described again here.
[0077] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0078] This application also provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the device control method embodiment provided in this application, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0079] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0080] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better 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 computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the device control methods provided in the various embodiments of this application.
[0081] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A device control method, characterized in that, Applied to a first electronic device, the method includes: When the first electronic device and the second electronic device are connected, the spatial positional relationship between the first electronic device and the second electronic device is determined by ultra-wideband positioning. The motion information of the first electronic device is obtained through the inertial measurement unit of the first electronic device; Based on the spatial positional relationship and the motion information, the second electronic device is controlled to perform corresponding operations.
2. The method according to claim 1, characterized in that, The step of controlling the second electronic device to perform corresponding operations based on the spatial position relationship and the motion information includes: When the spatial positional relationship satisfies the first condition, the second electronic device is controlled to perform corresponding operations based on the motion information; The first condition includes: The angle between the normal direction of the bottom surface of the first electronic device and the plane where the screen of the second electronic device is located is within a preset angle range.
3. The method according to claim 2, characterized in that, The step of controlling the second electronic device to perform corresponding operations based on the motion information includes: If the motion information includes the first electronic device moving towards the screen of the second electronic device, control the second electronic device to lock its screen; or, If the motion information includes movement of the first electronic device away from the screen of the second electronic device, the second electronic device is controlled to unlock.
4. The method according to claim 2, characterized in that, The step of controlling the second electronic device to perform corresponding operations based on the motion information includes: If the motion information includes the first electronic device having an acceleration in the horizontal direction of its screen that is greater than a first threshold, the second electronic device is controlled to display the interface of the previously used application.
5. The method according to claim 2, characterized in that, The step of controlling the second electronic device to perform corresponding operations based on the motion information includes: When the motion information includes the first electronic device having a flip angle greater than the target angle or the first electronic device's motion trajectory projected onto the second electronic device's screen as a closed shape, the second electronic device is controlled to display the desktop.
6. A device control apparatus, characterized in that, Applied to a first electronic device, the device includes: The determination module is used to determine the spatial positional relationship between the first electronic device and the second electronic device by ultra-wideband positioning when the first electronic device and the second electronic device are connected. The acquisition module is used to acquire motion information of the first electronic device through the inertial measurement unit of the first electronic device; The control module is used to control the second electronic device to perform corresponding operations based on the spatial position relationship and the motion information.
7. The apparatus according to claim 6, characterized in that, The control module is specifically used for: When the spatial positional relationship satisfies the first condition, the second electronic device is controlled to perform corresponding operations based on the motion information; The first condition includes: The angle between the normal direction of the bottom surface of the first electronic device and the plane where the screen of the second electronic device is located is within a preset angle range.
8. The apparatus according to claim 7, characterized in that, The control module is specifically used for: If the motion information includes the first electronic device moving towards the screen of the second electronic device, control the second electronic device to lock its screen; or, If the motion information includes movement of the first electronic device away from the screen of the second electronic device, the second electronic device is controlled to unlock.
9. The apparatus according to claim 7, characterized in that, The control module is specifically used for: If the motion information includes the first electronic device having an acceleration in the horizontal direction of its screen that is greater than a first threshold, the second electronic device is controlled to display the interface of the previously used application.
10. The apparatus according to claim 7, characterized in that, The control module is specifically used for: When the motion information includes the first electronic device having a flip angle greater than the target angle or the first electronic device's motion trajectory projected onto the second electronic device's screen as a closed shape, the second electronic device is controlled to display the desktop.
11. An electronic device, characterized in that, The electronic device includes a processor and a memory, the memory storing programs or instructions that can run on the processor, the programs or instructions being executed by the processor to implement the steps of the device control method as described in any one of claims 1-5.