Device control method, apparatus, and electronic device

By acquiring the distance and location information of the target device, and combining it with the task scenario and authentication mechanism, the control operation of the electronic device is automatically triggered, which solves the problem of cumbersome function activation methods in the existing technology and realizes the flexibility and convenience of device control.

CN116112599BActive Publication Date: 2026-02-17GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111327021.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-10
Publication Date
2026-02-17
Estimated Expiration
2041-11-10

AI Technical Summary

Technical Problem

The current electronic devices have cumbersome and inconvenient activation methods, requiring users to go through a deep operation path to trigger the function.

Method used

By acquiring the distance and orientation information of the target device relative to the electronic device, corresponding control operations are automatically triggered, including setting specified distance thresholds and orientation conditions. Combined with task scenarios and authentication mechanisms, flexible control between devices can be achieved.

Benefits of technology

It improves the flexibility and convenience of equipment control, simplifies user operation processes, and enhances intelligent interaction and security between devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116112599B_ABST
    Figure CN116112599B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a device control method and device and electronic device. The method comprises: in response to obtaining a target device, obtaining orientation information of the target device relative to the electronic device, the target device being a device having a distance less than a specified distance threshold from the electronic device; obtaining a control operation corresponding to the orientation information; and executing the control operation. Thus, the electronic device can trigger a corresponding control operation through the detected orientation information of the target device, thereby improving the flexibility and convenience of device control.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of electronic devices, and more particularly, to a device control method and device, and an electronic device. BACKGROUND

[0002] With the development of technology, electronic devices have more functions and can perform more types of tasks. For example, an electronic device can have a data transmission function, or an electronic device can have an audio playback or screen projection function. However, the related manner of triggering the electronic device to start the corresponding function is still cumbersome, and the device control manner still lacks certain convenience. SUMMARY

[0003] In view of the above problems, the present application provides a device control method and device, and an electronic device to improve the above problems.

[0004] In a first aspect, the present application provides a device control method applied to an electronic device, the method comprising: in response to obtaining a target device, obtaining orientation information of the target device relative to the electronic device, the target device being a device with a distance less than a specified distance threshold from the electronic device; obtaining a control operation corresponding to the orientation information; and executing the control operation.

[0005] In a second aspect, the present application provides a device control method applied to an electronic device, the method comprising: receiving a control instruction sent by an external device, the control instruction being sent by the external device based on orientation information of the electronic device relative to the external device after the external device detects that the distance between the electronic device and the external device is less than a specified distance threshold; and executing the control instruction.

[0006] In a third aspect, the present application provides a device control device running on an electronic device, the device comprising: an orientation information obtaining unit configured to, in response to obtaining a target device, obtain orientation information of the target device relative to the electronic device, the target device being a device with a distance less than a specified distance threshold from the electronic device; an operation obtaining unit configured to obtain a control operation corresponding to the orientation information; and a device control unit configured to execute the control operation.

[0007] In a fourth aspect, the present application provides a device control device running on an electronic device, the device comprising: an operation obtaining unit configured to receive a control instruction sent by an external device, the control instruction being sent by the external device based on orientation information of the electronic device relative to the external device after the external device detects that the distance between the electronic device and the external device is less than a specified distance threshold; and a device control unit configured to execute the control instruction.

[0008] In a fifth aspect, the present application provides an electronic device, comprising one or more processors and a memory; one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to perform the method described above.

[0009] In a sixth aspect, the present application provides a computer readable storage medium storing processor executable program code, and the computer readable storage medium comprises stored program code, wherein the program code performs the method described above when running.

[0010] The device control method and device and electronic device provided by the present application can detect the distance and orientation of other devices relative to the electronic device, so that after obtaining a device with a distance less than a specified distance threshold as a target device, the electronic device can obtain a control operation corresponding to the orientation information and perform the control operation in response to obtaining the target device. Thus, the electronic device can trigger the corresponding control operation through the detected orientation information of the target device, thereby improving the flexibility and convenience of device control. BRIEF DESCRIPTION OF DRAWINGS

[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0012] Figure 1 An application scenario schematic diagram of a device control method proposed by the present application is shown;

[0013] Figure 2 A flowchart of a device control method proposed by the present application is shown;

[0014] Figure 3 A schematic diagram of an interface for configuring a specified distance threshold in the present application is shown;

[0015] Figure 4 A schematic diagram of an interface for configuring a control operation in the present application is shown;

[0016] Figure 5 A schematic diagram of an electronic device and an external device overlapping each other in the present application is shown;

[0017] Figure 6 A schematic diagram of the distance between an electronic device and an external device being less than a distance threshold and the orientation information not satisfying a specified orientation condition in the present application is shown;

[0018] Figure 7 A schematic diagram is shown in which the distance between the electronic device and the external device in the present application is less than the distance threshold, and the orientation information satisfies the specified orientation condition;

[0019] Figure 8 A schematic diagram is shown in which the orientation information of the external device in the present application satisfies the specified orientation condition, and the distance between the external device and the electronic device is not less than the distance threshold;

[0020] Figure 9 A schematic diagram is shown in which the orientation information of the external device in the present application satisfies the specified orientation condition, and the distance between the external device and the electronic device is less than the distance threshold;

[0021] Figure 10 A flow chart of still another device control method proposed in the present application is shown;

[0022] Figure 11 A flow chart of still another device control method proposed in the present application is shown;

[0023] Figure 12 A flow chart of still another device control method proposed in the present application is shown;

[0024] Figure 13 A flow chart of still another device control method proposed in the present application is shown;

[0025] Figure 14 A structural block diagram of a device control apparatus proposed in the present application is shown;

[0026] Figure 15 A structural block diagram of another device control apparatus proposed in the present application is shown;

[0027] Figure 16 A structural block diagram of an electronic device for executing a device control method according to an embodiment of the present application is shown;

[0028] Figure 17 is a storage unit for storing or carrying program codes for implementing a device control method according to an embodiment of the present application. DETAILED DESCRIPTION

[0029] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the scope of protection of the present application.

[0030] With the development of terminal technology, electronic devices have acquired more functions beyond basic call functionality. For example, they can play audio and video. Furthermore, with the emergence of smart devices (which can be understood as devices that can connect to the network via various protocols such as Wi-Fi / Bluetooth, thereby enabling their data and status to be online in real time), electronic devices also have the ability to control smart devices. For example, an electronic device can control a television to synchronously play the video being played on the electronic device, or the electronic device can directly project an image onto a television for playback.

[0031] However, after researching the methods for activating functions in related electronic devices, the inventors discovered that these methods were not convenient enough. In these methods, users need to operate the electronic device to launch the corresponding application, then operate the application to enter the corresponding interface, and finally activate the function within that interface. This results in users having to navigate a relatively complex process before actually triggering the function activation.

[0032] Therefore, the inventors have proposed a device control method, apparatus, and electronic device as described in this application. In this method, the electronic device can detect the distance and orientation of other devices relative to itself. Upon identifying a device whose distance from the electronic device is less than a specified distance threshold as a target device, the device can, in response to the acquisition of the target device, acquire and execute a control operation corresponding to the orientation information. This approach allows the electronic device to trigger corresponding control operations based on the detected orientation information of the target device, improving the flexibility and convenience of device control.

[0033] The application environment involved in this application will be introduced below.

[0034] like Figure 1 The application scenario shown includes a first electronic device 100 and a second electronic device 200. The first electronic device 100 can detect the distance and orientation information of the second electronic device 200 relative to itself, and trigger corresponding control operations based on the detected distance and orientation information. In this embodiment, the first electronic device 100 can obtain the distance and orientation information of the second electronic device 200 via UWB (Ultra-wideband wireless communication).

[0035] The embodiments of this application will now be described in detail with reference to the accompanying drawings.

[0036] Please see Figure 2 This application provides a device control method applied to electronic devices, the method comprising:

[0037] S110: in response to obtaining the target device, obtaining the orientation information of the target device relative to the electronic device, the target device being a device with a distance less than a specified distance threshold from the electronic device.

[0038] In the running process, the electronic device can detect the external device around itself and obtain the distance between the external device and the electronic device and the orientation information. In the embodiments of the present application, the electronic device can trigger the start of obtaining the distance and orientation information of the external device in multiple situations.

[0039] As a way, the electronic device can start detecting the distance and orientation information of the external device after starting. In this way, whether the electronic device obtains the distance and orientation information of the external device is determined by whether the electronic device is started. Correspondingly, in this way, if the electronic device is turned off, the electronic device will stop obtaining the distance and orientation information of the external device.

[0040] As another way, the electronic device can start detecting the distance and orientation information of the external device when the specified control is in an open state. The specified control is a control for controlling whether the electronic device obtains the distance and orientation information of the external device. And the control can be operated by the user, so that the user can switch the control between the open state and the closed state by operating the specified control. When the specified control is in the closed state, the electronic device will not detect the distance and orientation information of the external device.

[0041] In the embodiments of the present application, the specified distance threshold is used to trigger the electronic device to obtain the target device in order to determine the corresponding control operation according to the access information of the target device. The specified distance threshold can be configured by the developer before the electronic device is shipped, or can be configured by the operating system according to the update data provided by the electronic device manufacturer. In addition, the specified distance threshold can also be configured by the user of the electronic device according to his own needs. Optionally, the electronic device can be correspondingly configured with a specified distance configuration interface, and the distance input interface is configured in the specified distance configuration interface. The electronic device can input the specified distance threshold required by the user through the distance input interface. In addition, as a way, the electronic device can display the distance between the external device and the electronic device in real time, so that the user can intuitively feel the relative position relationship between the external device and the electronic device represented by the distance, in order to facilitate the user to configure the specified distance threshold. For example, as shown in Figure 3 , the specified distance configuration interface displayed by the electronic device can be as shown in Figure 3 , the distance input interface can be configured in the specified distance configuration interface. Figure 3The specified distance configuration interface 10 shown in the figure displays in real time the distance between the external device detected by the electronic device and the electronic device, and a confirmation control 11. For example, if the currently detected distance value is a, and it is detected that the confirmation control 11 is touched, the electronic device will configure a as the specified distance threshold.

[0042] After the electronic device obtains the distance between the external device and the electronic device once, the obtained distance is compared with the specified distance threshold. If it is determined that the obtained distance is less than the specified distance threshold, it is determined that the external device is the target device, and the orientation information of the target device relative to the electronic device is obtained. Optionally, in this embodiment, the orientation information can include the relative angle between the external device and the electronic device.

[0043] Among them, as one way, the electronic device can obtain the relative angle between the external device and the electronic device by the UWB mode. The relative angle can be understood as the angle between the direction of the line connecting the external device and the electronic device and the specified reference direction. The specified reference direction can be the orientation of the screen of the electronic device.

[0044] S120: Obtain a control operation corresponding to the orientation information.

[0045] After the electronic device determines that the target device is obtained, the subsequent control operation to be performed is determined according to the orientation information corresponding to the target device. Among them, the control operation corresponding to different orientation information can be different.

[0046] As one way, in the embodiment of the application, the control operation corresponding to the orientation information can be configured by the developer before the electronic device is shipped, or can be configured by the operating system according to the update data provided by the electronic device manufacturer obtained by the network interface. Furthermore, the control operation corresponding to the orientation information can also be configured by the user of the electronic device according to his own needs.

[0047] Optionally, the electronic device can be equipped with a control operation configuration interface. In this interface, users can input location information and the corresponding control operations, allowing the electronic device to be more personalized to meet the needs of different users. Furthermore, it should be noted that while users may input location information, the actual relative position represented by that information cannot be directly perceived. Therefore, as one approach, when the electronic device displays the control operation configuration interface, it can display the relative positional relationship (location information) between the detected external device and the electronic device in real time. Moreover, the interface can also display control operation configuration controls. Upon detecting a touch on these controls, the electronic device can display the selectable control operations corresponding to the currently acquired relative positional relationship between the external device and the electronic device. The control operation selected by the user from these selectable controls is then stored as the corresponding control operation for the currently acquired relative positional relationship.

[0048] For example, such as Figure 4 As shown, in Figure 4 The control operation configuration interface 20 shown displays the currently acquired azimuth information and a control 21 for configuring control operations. When the control 21 for configuring control operations is touched, the available control operation corresponding to the azimuth information displayed in the control operation configuration interface 20 at the time the control 21 was touched will be displayed.

[0049] In one embodiment of this application, the control operations include: transmitting a specified file to a target device; switching a specified audio; or synchronizing audio and video data to a specified device.

[0050] S130: Execute the control operation.

[0051] In this embodiment of the application, during the process of triggering the acquisition of the corresponding control operation, the directional information corresponding to the control operation can be restricted, so that only directional information that meets specified directional conditions corresponds to the control operation. In this case, as one approach, the target device is a device whose distance from the electronic device is less than a specified distance threshold, and whose directional information meets specified directional conditions; the specified directional conditions include: the target device and the electronic device are side-by-side; the target device is side-by-side in a specified direction of the electronic device; or the target device and the electronic device overlap and the degree of overlap between them reaches a specified level.

[0052] The parallel state between the electronic device and the external device can be understood as a part of the electronic device and the external device not coinciding in the perspective view, or can be understood as a part of the electronic device and the external device not coinciding when the user views the electronic device and the external device from the top. For example, as shown in the state of FIG. 1A, the first electronic device 100 and the second electronic device 200 are in the parallel state. In the embodiments of the present application, in the case of artificially configuring the electronic device and the external device to be in the parallel state, the electronic device records the parameters collected by the sensor for measuring the position as the parameters representing the parallel state of the electronic device and the external device. Further, the electronic device can determine that the external device is in the parallel state with the electronic device when the parameters collected by the sensor for measuring the position match the parameters representing the parallel state of the electronic device. Figure 1 , Figure 3 or Figure 4 As shown in the state of FIG. 1A, the first electronic device 100 and the second electronic device 200 are in the parallel state. In the embodiments of the present application, in the case of artificially configuring the electronic device and the external device to be in the parallel state, the electronic device records the parameters collected by the sensor for measuring the position as the parameters representing the parallel state of the electronic device and the external device. Further, the electronic device can determine that the external device is in the parallel state with the electronic device when the parameters collected by the sensor for measuring the position match the parameters representing the parallel state of the electronic device.

[0053] Correspondingly, the overlapping state between the electronic device and the external device can be that a part of the electronic device and the external device coincides in the perspective view. For example, as shown in the state of FIG. 1B, the first electronic device 100 and the second electronic device 200 overlap with each other. In this way, the electronic device and the external device can also be artificially configured to be in the overlapping state, and the electronic device records the parameters collected by the sensor for measuring the position as the parameters representing the overlapping state of the electronic device and the external device. Further, the electronic device can determine that the external device overlaps with the electronic device when the parameters collected by the sensor for measuring the position match the parameters representing the overlapping state of the electronic device. Figure 5 As shown in the state of FIG. 1B, the first electronic device 100 and the second electronic device 200 overlap with each other. In the embodiments of the present application, the electronic device and the external device overlapping with each other can include a part of the electronic device and the external device overlapping with each other, or can include all regions of the electronic device and the external device overlapping with each other.

[0054] Then, in the case of setting the specified position condition, the electronic device determines the target device not only based on whether the distance between the external device and the electronic device is less than the specified distance threshold, but also based on whether the position information of the external device corresponding to the distance less than the specified distance threshold satisfies the specified position condition. If the distance between the external device and the electronic device is less than the specified distance threshold, and the position information of the external device satisfies the specified position condition, the electronic device determines that the external device is the target device.

[0055] Furthermore, when it is necessary to determine the target device by simultaneously considering specified directional conditions, one approach is for the electronic device to first detect the distance between itself and an external device. If it detects that the distance between an external device and the electronic device is less than a specified distance threshold, it further detects whether the directional information of the external device whose distance to the electronic device is less than the specified distance threshold meets the specified directional conditions. If the directional information meets the specified directional conditions, the external device is determined to be the target device.

[0056] For example, such as Figure 6 As shown, if the first electronic device 100 detects that the distance between the second electronic device 200 and the first electronic device 100 meets a specified distance threshold, but the orientation information does not yet meet the specified orientation conditions, it will continue to detect the orientation information and detect if the second electronic device 200 has moved backwards. Figure 7 When the state shown is reached, it can be determined that the orientation information of the electronic device 200 meets the specified orientation conditions.

[0057] Furthermore, as another approach, when an electronic device can detect the presence of an external device, it can first detect whether the orientation information between the external device and the electronic device meets the specified orientation conditions. If the orientation information between the external device and the electronic device meets the specified orientation conditions, it can further detect whether the distance between the external device and the electronic device that meets the specified orientation conditions is less than a specified distance threshold. If the distance is less than the specified distance threshold, the external device is identified as the target device.

[0058] For example, such as Figure 8 As shown, when the first electronic device 100 detects that the orientation information between the second electronic device 200 (external device) and the first electronic device 100 satisfies the condition of being in a parallel state, it obtains a distance d1 between the second electronic device 200 and the first electronic device 100, and if this d1 is greater than a specified distance threshold, it will perform distance detection. Furthermore, as shown in... Figure 9 When the distance between the second electronic device 200 and the first electronic device 100 is further reduced to d2 (a specified distance threshold), the second electronic device 200 is determined to be the target device.

[0059] It should be noted that in the embodiments of the present application, the electronic device can obtain the orientation information and distance of the external device relative to the electronic device through a specified wireless communication manner (for example, UWB). In some cases, the control operation determined by the electronic device based on the orientation information can also be based on the wireless communication manner to transmit data to the target device. Optionally, the wireless communication manner used by the electronic device to obtain the distance and orientation information of the target device can be the same as or different from the wireless communication manner used to transmit data to the target device. For example, the electronic device can obtain the distance and orientation information of the external device based on UWB, and in the case of determining that the external device is the target device, data can be transmitted to the target device based on the Bluetooth communication manner. For another example, the electronic device can obtain the distance and orientation information of the external device based on UWB, and in the case of determining that the external device is the target device, data can still be transmitted to the target device through UWB. Among them, for text type data, the electronic device can transmit through UWB, and for picture or video type data, the electronic device can transmit to the target device through the Bluetooth communication manner.

[0060] The device control method provided in the embodiments can detect the distance and orientation of other devices relative to the electronic device, so that after a device with a distance less than a specified distance threshold from the electronic device is determined as a target device, a control operation corresponding to the orientation information can be obtained in response to obtaining the target device, and the control operation can be executed. Thus, through the above manner, the electronic device can trigger the corresponding control operation through the orientation information of the detected target device, and the flexibility and convenience of device control are improved.

[0061] Please refer to Figure 10 The device control method provided in the present application is applied to an electronic device, and the method comprises:

[0062] S210: In response to obtaining the target device, obtaining the orientation information of the target device relative to the electronic device, the target device being a device with a distance less than a specified distance threshold from the electronic device.

[0063] S220: Obtain the current task scenario of the electronic device.

[0064] It should be noted that in the embodiments of the present application, the task scenario represents a task currently performed by the electronic device. For example, if the electronic device is currently performing picture display, the task scenario of the electronic device is a picture display scenario. For another example, if the electronic device is currently performing audio playing, the task scenario of the electronic device is an audio playing scenario. For another example, if the electronic device is currently displaying text, the task scenario of the electronic device is a text processing scenario. In some cases, the user of the electronic device triggers the corresponding control operation by the distance and / or orientation information of the external device, which may be intended to trigger an operation related to the current task scenario. If the electronic device can trigger the corresponding control operation in combination with the current task scenario, the electronic device can be more intelligent in performing the control operation.

[0065] As a manner, the obtaining the task scenario currently performed by the electronic device comprises determining the task scenario currently performed by the electronic device based on an application interface displayed by the electronic device in the foreground. It should be noted that generally, an application displays a picture display interface, which means that the application is performing picture display. Therefore, the electronic device can determine the task scenario currently performed by the electronic device by the identification of the currently displayed interface. Optionally, the electronic device can establish a corresponding relationship between the interface identification and the task scenario. When the electronic device needs to determine the task scenario currently performed by the electronic device, the electronic device can obtain the task scenario by querying the corresponding relationship between the interface identification and the task scenario after obtaining the identification of the currently displayed interface.

[0066] S230: obtaining a control operation corresponding to the orientation information based on the task scenario.

[0067] In the embodiments of the present application, the electronic device can directly determine the corresponding control operation according to the obtained orientation information of the target device, or can jointly determine the corresponding control operation in combination with the task scenario currently performed by the electronic device and the orientation information of the target device.

[0068] As a manner, the control operation corresponding to the orientation information is acquired based on the task scenario, including: if corresponding operation is found based on the task scenario and the orientation information, the found operation is taken as the acquired control operation. If corresponding operation is not found based on the task scenario and the orientation information, a control operation input interface is displayed, an operation task input through the control operation input interface is acquired, and the operation task is stored corresponding to the task scenario and the orientation information. For example, if the current task scenario is a picture display scenario, the corresponding control operation can be to transmit the currently displayed picture to the target device. For another example, if the current task scenario is an audio playing scenario, the corresponding control operation can be to transmit the identifier of the currently played audio to the target device, or can be to synchronize the remaining part of the currently played audio that has not been played to the target device for playing.

[0069] S240: execute the control operation.

[0070] The device control method provided in the embodiment can detect the distance and orientation of other devices relative to the electronic device, so that after a device with a distance less than a specified distance threshold from the electronic device is acquired as a target device, the control operation corresponding to the orientation information can be acquired in response to the acquisition of the target device, and the control operation is executed. Thus, the electronic device can trigger the corresponding control operation through the detected orientation information of the target device, improving the flexibility and convenience of device control. In addition, in the embodiment, the control operation corresponding to the orientation information of the acquired target device can be further determined in combination with the current task scenario of the electronic device, so that the electronic device can trigger the corresponding control operation based on the orientation information of the external device more flexibly and diversely.

[0071] Please refer to Figure 11 The device control method provided in the embodiment is applied to an electronic device, and includes:

[0072] S310: in response to the acquisition of the target device, the orientation information of the target device relative to the electronic device is acquired, and the target device is a device with a distance less than a specified distance threshold from the electronic device.

[0073] S320: whether the target device is an authentication device is identified.

[0074] It should be noted that, in some cases, in order to make not any external device can trigger the electronic device to perform the corresponding control operation, the detected target device can be authenticated. Wherein, the specific steps of authenticating the target device can be before executing the device control method provided by the embodiment of the application, or in the process of executing the device control method provided by the embodiment of the application. Furthermore, in the embodiment of the application, authenticating the external device can be understood as establishing the association relationship between the external device and the electronic device, and the established association relationship exists locally.

[0075] As a way, if the electronic device is to obtain the distance and orientation information of the external device by UWB, the external device can carry the identification of the external device in the broadcast signal sent based on UWB. The electronic device can obtain the identification of the external device from the broadcast signal sent by the external device through UWB, and can query whether the electronic device has a corresponding association relationship with the identification through the identification. If the electronic device has a corresponding association relationship with the identification, it is determined that the external device is an authentication device. Correspondingly, if it is identified that the target device is the target device, it can still be performed by the foregoing manner.

[0076] Wherein, according to the type of the identification sent by the external device, the way of detecting whether the electronic device has an association relationship with the identification is also different. Optionally, if the identification sent by the external device is a telephone number, the electronic device can query whether there is a telephone number of the external device in the address book. If yes, it is determined that the electronic device has an association relationship with the telephone number, and further determines that the external device is an authentication device. Furthermore, if the external device sends an account, the electronic device can query whether the account sent by the external device exists in the friend account corresponding to the account bound by the electronic device. If yes, it is determined that the electronic device has an association relationship with the account sent by the external device, and further determines that the external device is an authentication device. Wherein, the account bound by the electronic device can include at least one of the account bound by the operating system of the electronic device and the account bound by the application program in the electronic device.

[0077] S321: if it is not the authentication device, triggering authentication of the target device.

[0078] Wherein, in the embodiment of the application, as a way, whether to trust the target device currently being authenticated can be displayed in the electronic device. If the electronic device receives feedback information representing trust, it is determined that the target device passes the authentication. If the electronic device receives feedback information representing distrust, it is determined that the target device does not pass the authentication.

[0079] S322: If the target device is authenticated, obtain the control operation corresponding to the orientation information.

[0080] S330: If the target device is authenticated, obtain the control operation corresponding to the orientation information.

[0081] If the target device is not an authentication device and is not authenticated, the current process is ended.

[0082] S340: Perform the control operation.

[0083] It should be noted that in the case where the target device is authenticated by S321, the identification of the target device can be stored so that the electronic device can record that the target device has been authenticated. Then in this case, after obtaining the identification sent by the target device, the electronic device can first query whether the identification of the target device has an association relationship, and in the case where there is no association relationship, it can further query whether the identification of the target device is stored locally, if not, it will trigger the authentication of the target device.

[0084] The device control method provided in this embodiment, in which the electronic device can detect the distance and orientation of other devices relative to itself, so that after obtaining a device with a distance less than a specified distance threshold as a target device, the electronic device can obtain a control operation corresponding to the orientation information in response to obtaining the target device, and execute the control operation. Thus, by the above method, the electronic device can trigger the corresponding control operation through the detected orientation information of the target device, improving the flexibility and convenience of device control. In this embodiment, after obtaining the target device, it is also confirmed whether the target device has been authenticated, thereby improving the security of interactive control between devices.

[0085] Please refer to Figure 12 The device control method provided in this embodiment is applied to an electronic device, and the method comprises:

[0086] S410: If the target information sent by the external component is received, it is determined that the target device is obtained, and the orientation information of the target device relative to the electronic device sent by the external component is obtained, the target device being a device with a distance less than a specified distance threshold from the electronic device.

[0087] It should be noted that the external component can be a protective case of the electronic device, or can be other objects that can be installed on the electronic device. Alternatively, the external component can establish a connection with the electronic device through Bluetooth communication, so that the external component can send target information to the electronic device through Bluetooth communication. Wherein, the target information represents that the external component detects a target device. In addition, the external component can send the position information and the distance of the target device to the electronic device through Bluetooth communication.

[0088] S420: Obtain a control operation corresponding to the position information.

[0089] S430: Perform the control operation.

[0090] The device control method provided in the embodiment can detect the distance and the position of other devices relative to the electronic device, so that after obtaining a device with a distance less than a specified distance threshold as a target device, the electronic device can obtain a control operation corresponding to the position information in response to obtaining the target device, and perform the control operation. In this way, the electronic device can trigger the corresponding control operation through the position information of the detected target device, improving the flexibility and convenience of device control. In addition, in the embodiment, if the electronic device itself does not support obtaining the distance and position information of external devices, the target device can also be obtained through an external component that establishes a connection with the electronic device, thereby expanding the function of the electronic device.

[0091] Please refer to Figure 13 The device control method provided in the embodiment is applied to an electronic device, and the method comprises:

[0092] S510: Receive a control instruction sent by an external device, wherein the control instruction is sent by the external device based on position information of the electronic device relative to the external device after the external device detects that the distance between the electronic device and the external device is less than a specified distance threshold.

[0093] S520: Perform the control instruction. As one way, the control operation comprises an operation of transmitting a specified file, and after performing the control operation, the method further comprises: displaying the specified file transmitted by the external device, and an interface for operating the specified file. For example, please refer to Figure 7 In Figure 7In the embodiment, the target device displays a picture transmitted from the electronic device, and a viewing control and an editing control related to the picture. If a touch operation acting on the viewing control is detected, the target device can call a local picture viewing software to display the transmitted picture. Correspondingly, if a touch operation acting on the editing control is detected, the target device can call a local picture editing software to edit the transmitted picture.

[0094] The device control method provided in the embodiment can acquire a control instruction sent by an external device based on orientation information of an electronic device relative to the external device after the external device detects that the distance between the electronic device and the external device is less than a specified distance threshold, and execute the control instruction. In this way, the devices can trigger corresponding control operations through relative distance and orientation, improving the flexibility and convenience of device control.

[0095] Referring to Figure 14 The device control apparatus 600 provided in the present application runs on an electronic device, and the apparatus 600 comprises:

[0096] The orientation information acquisition unit 610 is configured to acquire orientation information of a target device relative to the electronic device in response to acquiring the target device, the target device being a device with a distance less than a specified distance threshold from the electronic device;

[0097] The operation acquisition unit 620 is configured to acquire a control operation corresponding to the orientation information.

[0098] The device control unit 630 is configured to execute the control operation.

[0099] As one way, the operation acquisition unit 620 is specifically configured to acquire a current task scenario of the electronic device, and acquire a control operation corresponding to the orientation information based on the task scenario. Optionally, the operation acquisition unit 620 is specifically configured to, if a corresponding operation is found based on the task scenario and the orientation information, take the found operation as the acquired control operation. The operation acquisition unit 620 is also specifically configured to, if a corresponding operation is not found based on the task scenario and the orientation information, display a control operation input interface, acquire an operation task input through the control operation input interface, and store the operation task in correspondence with the task scenario and the orientation information.

[0100] Optionally, the operation acquisition unit 620 is specifically configured to determine the current task scenario based on an application interface displayed in the foreground of the electronic device.

[0101] As one way, as shown in Figure 15 The apparatus 600 further comprises:

[0102] The device verification unit 640 is configured to identify whether the target device is an authentication device before the control operation corresponding to the orientation information is acquired; if the target device is the authentication device, the operation acquisition unit 620 is configured to acquire the control operation corresponding to the orientation information; if the target device is not the authentication device, triggering authentication of the target device; and if the target device passes the authentication, acquiring the control operation corresponding to the orientation information.

[0103] As a manner, the orientation information acquisition unit 610 is specifically configured to, if the target information sent by the external component is received, determine that the target device is acquired, and acquire the orientation information of the target device relative to the electronic device sent by the external component.

[0104] As a manner, the target device is a device with a distance less than a specified distance threshold to the electronic device, and the orientation information satisfies a specified orientation condition; the specified orientation condition includes: the target device is parallel to the electronic device; the target device is parallel to a specified direction of the electronic device; or the target device overlaps with the electronic device and the degree of coincidence of the target device and the electronic device reaches a specified degree.

[0105] As a manner, the control operation includes: an operation of transmitting a specified file to the target device; an operation of switching a specified audio; or an operation of synchronizing audio and video data to a specified device.

[0106] Please refer to Figure 16 The device control apparatus 700 provided in the present application is configured to run on an electronic device, and the apparatus 700 includes:

[0107] The operation acquisition unit 710 is configured to receive a control instruction sent by an external device, and the control operation is sent by the external device based on orientation information of the electronic device relative to the external device after the external device detects that the distance between the electronic device and the external device is less than a specified distance threshold.

[0108] The device control unit 720 is configured to execute the control operation.

[0109] The device control apparatus provided in the embodiment can detect the distance and orientation of other devices relative to the electronic device in the method, so that after a device with a distance less than a specified distance threshold to the electronic device is acquired as a target device, the control operation corresponding to the orientation information can be acquired in response to the acquisition of the target device, and the control operation is executed. Therefore, the electronic device can trigger the corresponding control operation through the detected orientation information of the target device in the above manner, and the flexibility and convenience of device control are improved.

[0110] It should be noted that the device embodiments in the present application correspond to the foregoing method embodiments, and the specific implementation principles of each unit in the device embodiments are similar to those in the foregoing method embodiments. The specific content in the device embodiments can be referred to the method embodiments, and will not be described again in the device embodiments.

[0111] The specific implementation principles of the device embodiments in the present application will be described below. Figure 16 An electronic device provided by the present application is described.

[0112] Please refer to Figure 16 Based on the device control method and device described above, the present application further provides an electronic device 1000 which can execute the foregoing device control method. The electronic device 1000 includes one or more (only one is shown in the figure) processors 105, a memory 104, a camera 106 and an audio acquisition device 108 which are coupled to each other. The memory 104 stores programs which can execute the content in the foregoing embodiments, and the processor 105 can execute the programs stored in the memory 104.

[0113] The processor 105 can include one or more processing cores. The processor 105 connects various parts in the entire electronic device 1000 by using various interfaces and lines, executes various functions of the electronic device 1000 and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 104 and calling data stored in the memory 104. Optionally, the processor 105 can be realized in at least one of the hardware forms of a digital signal processing (DSP), a field-programmable gate array (FPGA) and a programmable logic array (PLA). The processor 105 can be integrated with a combination of one or several of a central processing unit (CPU), a graphics processing unit (GPU) and a modem. The CPU is mainly used to process operating systems, user interfaces and application programs; the GPU is used to render and draw display content; and the modem is used to process wireless communication. It can be understood that the foregoing modem can also not be integrated into the processor 105, but be realized by a separate communication chip.

[0114] The memory 104 can include a random access memory (RAM) and can also include a read-only memory (ROM). The memory 104 can be used to store instructions, programs, codes, code sets, or instruction sets. The memory 104 can include a program storage area and a data storage area, where the program storage area can store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing each of the methods described below, and the like.

[0115] In addition, the electronic device 1000 can include a network module 110 and a sensor module 112 in addition to the devices shown in the foregoing.

[0116] The network module 110 is used to realize information interaction between the electronic device 1000 and other devices, such as transmitting device control instructions, manipulation request instructions, and state information acquisition instructions, and the like. When the electronic device 200 is a different device, the corresponding network module 110 can be different.

[0117] The sensor module 112 can include at least one sensor. Specifically, the sensor module 112 can include, but is not limited to, a light sensor, a motion sensor, a pressure sensor, an infrared thermal sensor, a distance sensor, an acceleration sensor, and other sensors.

[0118] The pressure sensor can detect the pressure generated by pressing on the electronic device 1000. That is, the pressure sensor detects the pressure generated by the contact or pressing between the user and the electronic device, such as the pressure generated by the contact or pressing between the user's ear and the mobile terminal. Therefore, the pressure sensor can be used to determine whether contact or pressing occurs between the user and the electronic device 1000, and the size of the pressure.

[0119] The acceleration sensor can detect the size of the acceleration in each direction (generally three axes), and when at rest, it can detect the size and direction of the gravity, which can be used for applications that identify the posture of the electronic device 1000 (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometers, taps), and the like. In addition, the electronic device 1000 can also be configured with a gyroscope, a barometer, a hygrometer, a thermometer, and other sensors, which will not be described here.

[0120] The audio acquisition device 110 is used to acquire audio signals. Optionally, the audio acquisition device 110 includes a plurality of audio acquisition devices, which can be microphones.

[0121] As a manner, the network module of the electronic device 1000 is a radio frequency module for receiving and sending electromagnetic waves, realizing mutual conversion between electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The radio frequency module can include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption / decryption chip, a subscriber identity module (SIM) card, a memory, and the like. For example, the radio frequency module can interact with external devices through transmitted or received electromagnetic waves. For example, the radio frequency module can send instructions to a target device.

[0122] Please refer to Figure 17 which shows a structural block diagram of a computer readable storage medium provided by an embodiment of the present application. The computer readable medium 1100 stores program code, which can be called by a processor to execute the methods described in the above method embodiments.

[0123] The computer readable storage medium 1100 can be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer readable storage medium 1100 includes a non-volatile computer readable medium. The computer readable storage medium 1100 has storage space for program code 1110 for executing any of the method steps described above. These program codes can be read from or written to one or more computer program products. The program code 1110 can be compressed in an appropriate form, for example.

[0124] In summary, the device control method, apparatus and electronic device provided by the present application, in the method, the electronic device can detect the distance and orientation of other devices relative to itself, so that after obtaining a device with a distance less than a specified distance threshold as a target device, the electronic device can obtain a control operation corresponding to the orientation information in response to obtaining the target device, and execute the control operation. Thus, by the above-mentioned manner, the electronic device can trigger the corresponding control operation through the detected orientation information of the target device, thereby improving the flexibility and convenience of device control.

[0125] In the description of the application, reference to "one embodiment", "some embodiments", "an example", "a specific example", or "some examples" means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. The illustrative appearances of the above- described terms in various places in the specification are not intended to exclude that the terms so described can be used, for example, to refer to the same feature, structure, material, or characteristic, but that different features, structures, materials, or characteristics can be covered by the terms, for example, as dependent on the particular usage of the terms.

[0126] Furthermore, the terms "first", "second", or the like, are used only to describe the different features, and do not imply or suggest relative importance of, or a number of, the indicated features. Thus, a feature defined with "first", "second" can explicitly or implicitly include at least one of the feature. In the description of the application, the meaning of "a plurality" is at least two, for example, two, three, etc., unless otherwise explicitly specifically limited.

[0127] Any process or method descriptions or descriptions of the flow diagrams in the present application can be understood as representing code modules, segments, or portions of code which include one or more executable instructions for performing specific logic functions or steps in the process, and that the various systems and methods described herein can be implemented via appropriate codes and commands in one or more computers or computer programs that are part of the design for the computer if these systems and methods do not vary from those that are described. Storage media can be implemented as a non-transitory computer- readable storage medium or media (e.g., a computer program product), which is a medium or article of manufacture which can include a tangible, non-transitory computer usable or readable medium. Storage media can take the form of a computer disk, magnetic disk, magnetic tape, tape drive, cartridge, cassette, server, cloud storage, or the like.

[0128] The logic and / or steps represented in the flow diagrams or otherwise described herein, for example, can be embodied in non-transitory computer- readable media, which can be implemented in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor- containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions, or a combination thereof.

[0129] It should be understood that portions of the application can be implemented in hardware, software, firmware, or combinations thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, implementation can be with any or a combination of the following technologies, which are all well-known in the art: a discrete logic circuit having logic gates for implementing logic functions upon an application of data signals, an application specific integrated circuit having appropriate combinational logic gates, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0130] Finally, it should be noted that the above embodiments are merely used to illustrate the technical solutions of the present application, rather than limit the same; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that the technical solutions recorded in the foregoing embodiments can still be modified, or some technical features can be replaced by equivalent ones; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A device control method characterized by, The method is applied to an electronic device, and the method comprises: In response to obtaining a target device, obtaining orientation information of the target device relative to the electronic device, the target device being a device determined by the electronic device to be an external device, wherein the target device is a device in the external device that is less than a specified distance threshold from the electronic device, and the distance is obtained by the electronic device through a specified wireless communication method, and wherein the orientation information comprises a relative angle between the target device and the electronic device, and the relative angle is an angle between a direction of a line connecting the target device and the electronic device and a specified reference direction; Obtaining a control operation corresponding to the orientation information, wherein the control operation corresponding to the orientation information is configured by a user of the electronic device, and different orientation information corresponds to different control operations; Executing the control operation.

2. The method of claim 1, wherein, The obtaining of the control operation corresponding to the orientation information comprises: Obtaining a current task scenario of the electronic device; Obtaining a control operation corresponding to the orientation information based on the task scenario.

3. The method of claim 2, wherein, The obtaining of the control operation corresponding to the orientation information based on the task scenario comprises: If a corresponding operation is found based on the task scenario and the orientation information, the found operation is taken as the obtained control operation.

4. The method of claim 3, wherein, The method further comprises: If a corresponding operation is not found based on the task scenario and the orientation information, a control operation input interface is displayed; Obtaining an operation task input through the control operation input interface; Storing the operation task corresponding to the task scenario and the orientation information.

5. The method of claim 2, wherein, The obtaining of the current task scenario of the electronic device comprises: Determining the current task scenario based on an application interface displayed in the foreground of the electronic device.

6. The method of claim 1, wherein, The method further comprises, before the obtaining of the control operation corresponding to the orientation information: Identifying whether the target device is an authentication device; If the target device is the authentication device, the obtaining of the control operation corresponding to the orientation information is performed.

7. The method of claim 6, wherein, The method further comprises, after the identifying of whether the target device is the authentication device: If the target device is not the authentication device, triggering authentication of the target device; If the target device passes the authentication, obtaining the control operation corresponding to the orientation information.

8. The method of claim 1, wherein, The obtaining of the orientation information of the target device relative to the electronic device in response to the obtaining of the target device comprises: If target information sent by an external component is received, it is determined that the target device is obtained, and the orientation information of the target device relative to the electronic device sent by the external component is obtained.

9. The method according to any of claims 1 to 8, characterized in that, The target device is a device that is less than a specified distance threshold from the electronic device and whose orientation information satisfies a specified orientation condition; The specified orientation condition comprises: The target device is parallel to the electronic device; The target device is parallel to a specified direction of the electronic device; or The target device overlaps the electronic device, and a degree of coincidence of the target device and the electronic device reaches a specified degree.

10. The method according to any one of claims 1 to 8, characterized in that, The control operation comprises: An operation of transmitting a specified file to the target device; An operation of switching a specified audio; or An operation of transmitting a specified file to the target device; Synchronizing audio and video data to a designated device.

11. An apparatus control device characterized by comprising: An electronic device, the apparatus comprising: an orientation information obtaining unit, configured to obtain orientation information of a target device relative to the electronic device in response to obtaining the target device, the target device being a device determined by the electronic device to be an external device, wherein the target device is a device in the external devices having a distance to the electronic device less than a specified distance threshold, the distance being obtained by the electronic device through a specified wireless communication manner, and wherein the orientation information comprises a relative angle between the target device and the electronic device, the relative angle being an angle between a direction of a line connecting the target device and the electronic device and a specified reference direction; an operation obtaining unit, configured to obtain a control operation corresponding to the orientation information, wherein the control operation corresponding to the orientation information is configured by a user of the electronic device, and different orientation information corresponds to different control operations; a device control unit, configured to execute the control operation.

12. An electronic device, comprising: one or more processors and memory; one or more programs stored in the memory and configured for execution by the one or more processors, the one or more programs configured for performing the method of any of claims 1-10.

13. A computer readable storage medium storing a program code executable by a processor, the program code comprising instructions for causing the processor to perform the method of any one of claims 1-12. the computer-readable storage medium comprising stored program code, wherein the program code, when executed, performs the method of any of claims 1-10.

Citation Information

Patent Citations

  • Equipment control method and device, electronic equipment and storage medium

    CN110430558A