Method for occupying device and electronic device

By obtaining and matching user information to determine whether the device to be occupied is occupied, the problem of frequent device switching and audio data not meeting user expectations in electronic devices under wireless communication protocols is solved, improving user experience and privacy protection.

CN117909082BActive Publication Date: 2024-09-20HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410128319.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-12-31
Publication Date
2024-09-20
Estimated Expiration
2039-12-31

AI Technical Summary

Technical Problem

In electronic devices, when connected through wireless communication protocols, there are problems such as frequent switching between devices and audio data that does not meet user expectations, especially when multiple devices are connected at the same time, resulting in poor user experience.

Method used

By obtaining and matching user information, it determines whether to occupy the equipment to be occupied and ensures that the occupation process meets user expectations, including broadcasting messages, receiving response messages, matching user information, determining business priority and displaying prompt information to determine whether to occupy the equipment.

Benefits of technology

It reduces the risk of user privacy leakage, improves the user experience during the device occupation process, ensures that the switching of occupation status meets the needs of the scene, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117909082B
    Figure CN117909082B
Patent Text Reader

Abstract

The present application provides a method for occupying a device, comprising: a first device obtains information related to the first device and / or information related to a second device, the second device currently occupies a first device to be occupied, and the first device is ready to occupy the first device to be occupied; when the information matches, the first device occupies the first device to be occupied. The present application also provides an electronic device, the purpose of which is to make the process of an electronic device occupying other devices more in line with user expectations, improve user experience, enhance the intelligence of the device, and facilitate the protection of user privacy. The method can be used in artificial intelligence (AI) terminals.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic devices, and more particularly, to a method for occupying a device and an electronic device. Background Art

[0002] With the help of wireless communication protocols, electronic devices can exchange data with other electronic devices. For example, through Bluetooth technology, a mobile phone can connect to a Bluetooth headset and send the audio data being played by the mobile phone to the Bluetooth headset so that the Bluetooth headset can play the audio data being played by the mobile phone.

[0003] When electronic device 1 is successfully connected to electronic device 2 via a wireless communication protocol, there may be an electronic device 3 that is ready to be connected to electronic device 2 via a wireless communication protocol, wherein electronic device 2 may not be able to be connected to both electronic device 1 and electronic device 3 at the same time. Assume that the connection between electronic device 1 and electronic device 2 is wireless connection 1, and the connection between electronic device 3 and electronic device 2 is wireless connection 2. If electronic device 1 and electronic device 3 are allowed to occupy electronic device 2 at will, frequent switching from wireless connection 1 to wireless connection 2 will occur, which is not conducive to user experience. If electronic device 3 is prohibited from connecting to electronic device 2 while electronic device 1 is connected to electronic device 2, flexible switching in special scenarios cannot be achieved, which is also not conducive to user experience.

[0004] Assume that electronic device 2 can be connected to electronic device 1 and electronic device 3 at the same time through the wireless communication protocol. When electronic device 1 is successfully connected to electronic device 2 through the wireless communication protocol, electronic device 2 can play audio 1 sent by electronic device 1; when electronic device 3 is successfully connected to electronic device 2 through the wireless communication protocol, electronic device 2 can play audio 2 sent by electronic device 3. However, electronic device 2 is usually unable to play audio 1 and audio 2 at the same time. If electronic device 2 randomly plays audio 1 and audio 2, or electronic device 2 plays in the order in which data is received, there will be a problem that the playback effect does not meet the user's expectations. Summary of the invention

[0005] The present application provides a device occupation method and an electronic device, so that the process of an electronic device occupying other devices can better meet the user's expectations.

[0006] In a first aspect, a method for occupying a device is provided, including: a first device acquires information related to a first device to be occupied, the first device to be occupied is currently occupied by a second device, wherein user information of the first device to be occupied includes at least one of the following: first user information collected by the first device to be occupied, second user information acquired by the second device, a first user matching result between the first user information and the user information of the first device, a second user matching result between the second user information and the user information of the first device, the first user information indicates a user currently using the first device to be occupied, and the second user information indicates a user currently using the first device to be occupied; the first device determines whether to occupy the first device to be occupied based on the information related to the first device to be occupied.

[0007] In the embodiment of the present application, if the user matches the result, it can be determined whether the user using the first device to be occupied is the same user as the user using the first device. Therefore, the result that the first device occupies the first device to be occupied can reduce the leakage of user privacy and more easily meet the user's expectations.

[0008] In combination with the first aspect, the first device judging whether to occupy the first device to be occupied at least according to the information related to the first device to be occupied includes:

[0009] When a first condition is met, the first device occupies the first device to be occupied;

[0010] The first condition includes at least one of the following: the first user information successfully matches the user information of the first device; the second user information successfully matches the user information of the first device.

[0011] In combination with the first aspect, in some implementations of the first aspect, before the first device obtains information related to the first device to be occupied, the method also includes: the first device broadcasts a first message, and the first message is used to indicate that the first device is ready to occupy the first device to be occupied; the first device obtains information related to the first device to be occupied, including: the first device receives a second message sent by the second device in response to the first message, and the second message includes the first user information and / or the second user information.

[0012] In combination with the first aspect, in some implementations of the first aspect, before the first device obtains information related to the first device to be occupied, the method also includes: the first device broadcasts a first message, and the first message is used to indicate that the first device is ready to occupy the first device to be occupied; the first device obtains information related to the first device to be occupied, including: the first device receives a third message sent by the first device to be occupied in response to the first message, and the third message includes the first user information and / or the second user information.

[0013] In combination with the first aspect, in certain implementations of the first aspect, before the first device obtains information related to the first device to be occupied, the method also includes: the first device sends a fourth message to the server, and the fourth message is used to indicate that the first device is ready to occupy the first device to be occupied; the first device obtains information related to the first device to be occupied, including: the first device receives a fifth message sent by the server in response to the fourth message, and the fifth message includes the first user information and / or the second user information.

[0014] In combination with the first aspect, in certain implementations of the first aspect, before the first device obtains information related to the first device to be occupied, the method also includes: the first device broadcasts a sixth message, the sixth message includes user information of the first device, and the sixth message is used to indicate that the first device is ready to occupy the first device to be occupied; the first device obtains information related to the first device to be occupied, including: the first device receives a seventh message sent by the second device in response to the sixth message, and the seventh message includes the second user matching result.

[0015] In combination with the first aspect, in certain implementations of the first aspect, before the first device obtains information related to the first device to be occupied, the method also includes: the first device broadcasts a sixth message, the sixth message includes user information of the first device, and the sixth message is used to indicate that the first device is ready to occupy the first device to be occupied; the first device obtains information related to the first device to be occupied, including: the first device receives an eighth message sent by the first device to be occupied in response to the sixth message, and the eighth message includes the first user matching result.

[0016] In combination with the first aspect, in certain implementations of the first aspect, before the first device obtains information related to the first device to be occupied, the method also includes: the first device sends a ninth message to the server, the ninth message includes user information of the first device, and the ninth message is used to indicate that the first device is ready to occupy the first device to be occupied; the first device obtains information related to the first device to be occupied, including: the first device receives a tenth message sent by the server in response to the ninth message, the tenth message includes the first user matching result and / or the second user matching result.

[0017] In combination with the first aspect, in certain implementations of the first aspect, the first service of the first device is ready to occupy the first device to be occupied. Before the first device determines whether to occupy the first device to be occupied based on the information related to the first device to be occupied, the method also includes: the first device obtains the priority of a second service, and the second service is the service of the first device to be occupied by the second device at present; the determining whether to occupy the first device to be occupied based on the information related to the first device to be occupied includes: determining whether to occupy the first device to be occupied based on the information related to the first device to be occupied, the priority of the first service, and the priority of the second service.

[0018] In combination with the first aspect, in some implementations of the first aspect, the priority of the first service is determined by at least one of an importance index of the first service, an applicability index of the first device, and a user preference index of the first service.

[0019] In combination with the first aspect, in some implementations of the first aspect, the priorities of the services are, from high to low, call service, video call service, audio playback service, video playback service, recording service, and shooting service.

[0020] In combination with the first aspect, in certain implementations of the first aspect, judging whether to occupy the first device to be occupied based on the information related to the first device to be occupied, the priority of the first service, and the priority of the second service includes: when a second condition is met, the first device occupies the first device to be occupied; the second condition includes any one of the following: the priority of the first service is higher than the priority of the second service; or, the priority of the first service is lower than the priority of the second service, and the first device detects a second operation, and the first operation is used to instruct the first device to preempt the first device to be occupied.

[0021] In combination with the first aspect, in some implementations of the first aspect, when the first device determines that the first device to be occupied is occupied, the method further includes: the first device displays first prompt information, and the first prompt information indicates that the first device to be occupied is occupied by the first device.

[0022] In combination with the first aspect, in certain implementations of the first aspect, the first device determines whether to occupy the first device to be occupied based on the information related to the first device to be occupied, including: the first device displays first prompt information based on the information related to the first device to be occupied, the first prompt information indicating the relationship between a user currently using the first device to be occupied and a user currently using the first device, and the first prompt information provides an option for the user currently using the first device to select whether to occupy the first device to be occupied; in response to receiving a first operation performed by the user currently using the first device based on the first prompt information, determining whether to occupy the first device to be occupied.

[0023] In combination with the first aspect, in some implementations of the first aspect, the first operation is an operation performed on the first device, the second device, or the first device to be occupied by a user currently using the first device.

[0024] In combination with the first aspect, in some implementations of the first aspect, the user information includes at least one of the following: auricle information, brain wave information, face information, voiceprint information, and electronic account information.

[0025] In combination with the first aspect, in some implementations of the first aspect, the first device to be occupied is any one of the following: headphones, speakers, and a camera; or, the first device to be occupied is a device including any one of the following elements: headphones, speakers, and a camera.

[0026] In combination with the first aspect, in some implementations of the first aspect, the determining whether to occupy the first device to be occupied includes: the first device determining whether to occupy a media path of the first device to be occupied.

[0027] In a second aspect, a method for occupying a device is provided, including: a first device determines that a first device to be occupied is currently occupied by a second device, and the first device prepares to occupy the first device to be occupied; the first device sends a message to obtain information related to the first device to be occupied, wherein the information related to the first device to be occupied includes at least one of the following: first user information collected by the first device to be occupied, second user information acquired by the second device, a first user matching result between the first user information and the user information of the first device, and a second user matching result between the second user information and the user information of the first device; if the first device fails to acquire the information related to the first device to be occupied, the first device displays a third prompt message, and the third prompt message is used to indicate that the first device cannot identify the user using the first device to be occupied.

[0028] In combination with the second aspect, in some implementations of the second aspect, the method further includes: if the first device fails to obtain the information related to the first device to be occupied, the first device gives up occupying the first device to be occupied.

[0029] In combination with the second aspect, in some implementations of the second aspect, the method also includes: after displaying the third prompt information, the first device occupies the first device to be occupied according to a detected second operation, and the second operation is used to instruct the first device to occupy the first device to be occupied.

[0030] According to a third aspect, a method for occupying a device is provided, including: a first device obtains information related to a second device, the second device currently occupies a first device to be occupied, wherein the information related to the second device includes any one of the following: device information of the second device, a device matching result between the device information of the first device and the device information of the second device, user information of the second device, and a user matching result between the user information of the first device and the user information of the second device; the first device determines whether the second device is a trusted device based on the information related to the second device; and when the second device is the trusted device, the first device occupies the first device to be occupied.

[0031] The first device may be, for example, a mobile phone, a tablet computer, a smart watch, a video player, a desktop computer, a television, etc.

[0032] The first device to be occupied may be, for example, headphones, speakers, a camera, etc.

[0033] The second device may be, for example, a mobile phone, a tablet computer, a smart watch, a video player, a desktop computer, a television, etc.

[0034] The user information of the second device may refer to information of a user using the second device, or information of a user using the first device to be occupied.

[0035] Optionally, in the case where the first device to be occupied can only establish a wireless connection with one device, the idle state of the first device to be occupied may refer to that the first device to be occupied has not established a wireless connection with any device. The non-idle state of the first device to be occupied may refer to that the first device to be occupied has currently established a wireless connection with the target device.

[0036] Optionally, in the case where the first device to be occupied can establish a wireless connection with multiple devices, the idle state of the first device to be occupied may refer to that no device is using the first device to be occupied. The non-idle state of the first device to be occupied may refer to that the target device that establishes a wireless connection with the first device to be occupied is using the first device to be occupied.

[0037] The first device occupying the first device to be occupied may mean that the first device establishes a wireless connection with the first device to be occupied, and the first device uses the first device to be occupied.

[0038] In the embodiment of the present application, if the second device is a trusted device, it can be considered that the user using the first device trusts the user using the second device. For example, when the user information of the second device successfully matches the user information of the first device, it can be considered that the user using the first device is the same user as the user using the first device. Therefore, the result that the first device occupies the first device to be occupied can be understood as a choice authorized in advance by the user, which is more likely to meet the user's expectations.

[0039] In combination with the third aspect, in certain implementations of the third aspect, when the information related to the second device includes device information of the second device or a device matching result between the device information of the first device and the device information of the second device, the second device belongs to a trusted device at least if the device information of the second device successfully matches the device information of the first device; when the information related to the second device includes user information of the second device or a user matching result between the user information of the first device and the user information of the second device, the second device belongs to a trusted device at least if the user information of the second device successfully matches the user information of the first device.

[0040] In combination with the third aspect, in certain implementations of the third aspect, before the first device obtains information related to the second device, the method also includes: the first device broadcasts a first message, and the first message is used to indicate that the first device is ready to occupy the first device to be occupied; the first device obtains information related to the second device, including: the first device receives a second message sent by the second device in response to the first message, the second message includes device information of the second device or user information of the second device, and the second message indicates that the first device to be occupied is currently occupied by the second device.

[0041] In the embodiment of the present application, the first device can negotiate with the second device, so that when the first device occupies the first device to be occupied, the second device can promptly know that the first device to be occupied is occupied by the first device. The second device can promptly feedback the occupancy status of the first device to be occupied to the user, which helps to improve the user experience.

[0042] In combination with the third aspect, in certain implementations of the third aspect, before the first device obtains information related to the second device, the method also includes: the first device broadcasts a first message, and the first message is used to indicate that the first device is ready to occupy the first device to be occupied; the first device obtains information related to the second device, including: the first device receives a third message sent by the first device to be occupied in response to the first message, the third message includes device information of the second device or user information of the second device, and the third message indicates that the first device to be occupied is currently occupied by the second device.

[0043] In the embodiment of the present application, when the target device occupies the first device to be occupied for the first time, the first device to be occupied can store the user information of the target device. Therefore, the first device to be occupied can directly send the user information of the second device to the first device, which can reduce the number of signaling interactions, and is conducive to the first device to quickly determine whether to occupy the first device, thereby helping to improve the user experience.

[0044] Optionally, the first message includes identification information of the first device to be occupied.

[0045] In combination with the third aspect, in certain implementations of the third aspect, before the first device obtains information related to the second device, the method also includes: the first device sends a fourth message to the server, and the fourth message is used to indicate that the first device is ready to occupy the first device to be occupied; the first device obtains information related to the second device, including: the first device receives a fifth message sent by the server in response to the fourth message, the fifth message includes device information of the second device or user information of the second device, and the fourth message indicates that the first device to be occupied is currently occupied by the second device.

[0046] The server may also be referred to as a cloud server. That is, the first device may exchange data with the cloud server via a wireless communication protocol.

[0047] Optionally, the fourth message includes identification information of the first device to be occupied.

[0048] In the embodiment of the present application, in order to improve the privacy of user information, uploading the user information to a server with a higher security factor can reduce the leakage of user information.

[0049] In combination with the third aspect, in certain implementations of the third aspect, before the first device obtains information related to the second device, the method also includes: the first device broadcasts a sixth message, the sixth message includes device information of the first device or user information of the first device, and the sixth message is used to indicate that the first device is ready to occupy the first to-be-occupied device; the first device obtains information related to the second device, including: the first device receives a seventh message sent by the second device in response to the sixth message, wherein, in a case where the sixth message includes the device information of the first device, the seventh message includes the device matching result, or, in a case where the sixth message includes the user information of the first device, the seventh message includes the user matching result.

[0050] In the embodiment of the present application, the amount of data in the matching result is small. In addition, the first device can negotiate with the second device, so that when the first device occupies the first device to be occupied, the second device can determine the reason why the first device can automatically occupy the first device to be occupied, and then prompt the user with the reason why the first device can automatically occupy the first device to be occupied, which helps to improve the user experience.

[0051] In combination with the third aspect, in certain implementations of the third aspect, before the first device obtains information related to the second device, the method also includes: the first device broadcasts a sixth message, the sixth message includes device information of the first device or user information of the first device, and the sixth message is used to indicate that the first device is ready to occupy the first device to be occupied; the first device obtains information related to the second device, including: the first device receives an eighth message sent by the first device to be occupied in response to the sixth message, wherein, in a case where the sixth message includes the device information of the first device, the eighth message includes the device matching result, or, in a case where the sixth message includes the user information of the first device, the eighth message includes the user matching result.

[0052] In the embodiment of the present application, the amount of data in the matching result is small. When the target device occupies the first device to be occupied for the first time, the first device to be occupied can store the user information of the target device. Therefore, the first device to be occupied can be grouped according to the user information to distinguish devices with unmatched user information. The first device to be occupied can quickly determine whether the user information of the first device matches the user information of the second device, which is conducive to the first device to quickly determine whether to occupy the first device, thereby helping to improve the user experience.

[0053] Optionally, the sixth message includes identification information of the first device to be occupied.

[0054] In combination with the third aspect, in certain implementations of the third aspect, before the first device obtains information related to the second device, the method also includes: the first device sends a ninth message to the server, the ninth message includes device information of the first device or user information of the first device, and the ninth message is used to indicate that the first device is ready to occupy the first to-be-occupied device; the first device obtains information related to the second device, including: the first device receives a tenth message sent by the server in response to the ninth message, wherein, in a case where the ninth message includes the device information of the first device, the tenth message includes the device matching result, or, in a case where the ninth message includes the user information of the first device, the tenth message includes the user matching result.

[0055] Optionally, the ninth message includes identification information of the first device to be occupied.

[0056] In the embodiment of the present application, the amount of data in the matching result is small. Since the second device and the first device may have a mismatch in device type, etc., the server has strong computing power, storage capacity, etc., and can have a stronger ability to identify user information. Therefore, directly receiving the matching result from the server can increase the possibility of the first device successfully obtaining the matching result.

[0057] In combination with the third aspect, in certain implementations of the third aspect, when the second device belongs to the trusted device, the first device occupies the first device to be occupied, including: when the second device belongs to the trusted device and the priority of the first service is higher than the priority of the second service, the first device occupies the first device to be occupied, and the service occupying the first device to be occupied is changed from the second service to the first service, the first service is the service of the first device, and the second service is the service of the second device.

[0058] The first service may be, for example, a call service, a video call service, an audio playback service, a video playback service, a recording service, a shooting service, etc.

[0059] The second service may be, for example, a call service, a video call service, an audio playback service, a video playback service, a recording service, a shooting service, etc.

[0060] In the embodiment of the present application, if the user using the first device and the user using the second device are the same user, and the service of the first device is relatively more important or relatively more suitable, the first device can occupy the first device to be occupied. Therefore, in addition to reducing the risk of privacy leakage and reducing the operations related to switching the occupied state, the switching of the occupied state can also be made more in line with the needs of the scene, which is conducive to improving the user experience.

[0061] In combination with the third aspect, in certain implementations of the third aspect, the priority of the first service is determined by at least one of an importance index of the first service, an applicability index of the first device, and a user preference index of the first service.

[0062] In an embodiment of the present application, different indication types are divided according to specific scenarios and different services are scored, so that the priority of the services can be determined quickly and appropriately, and the scenario applicability of the method for switching occupancy status provided by the present application can be better reflected.

[0063] In combination with the third aspect, in certain implementations of the third aspect, the priorities of the services are, from high to low, call service, video call service, audio playback service, video playback service, recording service, and shooting service.

[0064] In combination with the third aspect, in certain implementations of the third aspect, when the second device belongs to the trusted device, the first device occupies the first device to be occupied, including: when the second device belongs to the trusted device and the priority of the first service is lower than the priority of the second service, the first device occupies the first device to be occupied according to the detected second operation, and the service occupying the first device to be occupied is changed from the second service to the first service, the first service is the service of the first device, and the second service is the service of the second device.

[0065] According to a specific scenario, the priority of the first service is lower than the priority of the second service, which may include that the priority of the second service is equal to the priority of the first service.

[0066] The priority of the first service is lower than the priority of the second service, which may include that the first device does not obtain a priority comparison result, where the priority comparison result is a comparison result between the priority of the second service and the priority of the first service.

[0067] In the embodiment of the present application, the first device does not meet the condition of automatically occupying the first device to be occupied, but can occupy the first device to be occupied according to the user's operation. When the automatic occupation condition is not met, the first device responds to the operation and occupies the first device to be occupied, which can improve the flexibility of switching the occupation state of the first device to be occupied.

[0068] In combination with the third aspect, in some implementations of the third aspect, the method further includes: the first device displays first prompt information, and the first prompt information indicates that the first device to be occupied is occupied by the first device.

[0069] In the embodiment of the present application, the first device can remind the user that the occupation state of the first device to be occupied has been switched. Therefore, the user's misoperation of the first device to be occupied can be reduced, and the user can clearly know the occupation state of the first device to be occupied.

[0070] In combination with the third aspect, in some implementations of the third aspect, the first device occupying the first device to be occupied includes: the first device occupying the first device to be occupied according to a detected first operation.

[0071] In the embodiment of the present application, the timing of switching the occupied state of the first device to be occupied can be determined by the first operation, thereby improving the flexibility of switching the occupied state.

[0072] In combination with the third aspect, in some implementations of the third aspect, the first operation is an operation performed by a user on the first device, the second device, or the first device to be occupied.

[0073] In the embodiment of the present application, the first operation may be an operation that occurs on multiple devices, so the user can perform the first operation on multiple devices, which has strong flexibility and is easier to adapt to specific usage scenarios.

[0074] In combination with the third aspect, in certain implementations of the third aspect, the user information of the second device includes at least one of the following: user information collected by the second device; user information collected by the first device to be occupied during the process of the second device occupying the first device to be occupied.

[0075] In combination with the third aspect, in certain implementations of the third aspect, the user information of the second device includes at least one of the following: auricle information, brain wave information, face information, voiceprint information, and electronic account information.

[0076] In combination with the third aspect, in some implementations of the third aspect, the first device to be occupied is any one of the following: headphones, speakers, and a camera.

[0077] In combination with the third aspect, in some implementations of the third aspect, the first device occupying the first device to be occupied includes: the first device occupying a media path of the first device to be occupied.

[0078] In an embodiment of the present application, one or more types may be used to determine whether the user information of the second device matches the user information of the first device. On the one hand, there are many types of user information and they are applicable to many scenarios. On the other hand, matching multiple types of user information can improve the accuracy of the matching process.

[0079] In a fourth aspect, a method for occupying a device is provided, including: a first device determines that a first device to be occupied is currently occupied by a second device, and the first device prepares to occupy the first device to be occupied; the first device sends a target message to obtain information related to the second device, and the information related to the second device includes any one of the following: device information of the second device, a device matching result between the device information of the first device and the device information of the second device, user information of the second device, and a user matching result between the user information of the first device and the user information of the second device; when the first device fails to obtain the information related to the second device, or when the first device determines that the second device is not a trusted device based on the information related to the second device, the first device displays a third prompt information, and the third prompt information is used to indicate that the second device is not a trusted device.

[0080] In the embodiment of the present application, the first device can remind the user that the reason why the first device cannot automatically occupy the first device to be occupied is that the user information of the second device fails to match the user information of the first device, so that the user can adapt to various scenarios in which the first device automatically occupies the first device to be occupied and various scenarios in which the first device cannot automatically occupy the first device to be occupied according to the third prompt information.

[0081] The failure to match the user information of the second device with the user information of the first device may mean that the user indicated by the user information of the second device is different from the user indicated by the user information of the first device, or the first device has not obtained the user matching information, or the first device cannot recognize the user information of the second device.

[0082] In combination with the fourth aspect, in some implementations of the fourth aspect, the method further includes: the first device giving up occupying the first device to be occupied.

[0083] In the embodiment of the present application, if the user information of the second device fails to match the user information of the first device, it can be considered that the user using the second device is a different user from the user using the first device. Therefore, the first device gives up occupying the first device to be occupied, which is conducive to reducing the risk of leaking user privacy.

[0084] In combination with the fourth aspect, in some implementations of the fourth aspect, the method further includes: the first device occupies the first device to be occupied according to the detected second operation.

[0085] In the embodiment of the present application, the first device does not meet the condition of automatically occupying the first device to be occupied, but can occupy the first device to be occupied according to the user's operation. When the automatic occupation condition is not met, the first device responds to the operation and occupies the first device to be occupied, which can improve the flexibility of switching the occupation state of the first device to be occupied.

[0086] In a fifth aspect, a method for occupying a device is provided, including: a second device obtains user matching information of a first device and the second device, the user matching information is used for matching the user information of the first device with the user information of the second device, the first device prepares to occupy a first device to be occupied, and the occupancy state of the first device to be occupied is currently a non-idle state occupied by the second device; when the user matching information indicates that the user information of the second device matches the user information of the first device, the second device gives up occupying the first device to be occupied, and the changed occupancy state is a non-idle state occupied by the first device.

[0087] In combination with the fifth aspect, in certain implementations of the fifth aspect, the user matching information includes user information of the first device, and the second device obtains the user matching information, including: the second device receives an eleventh message sent by the first device or server, and the eleventh message includes the user information of the first device and identification information of the first device to be occupied.

[0088] In combination with the fifth aspect, in certain implementations of the fifth aspect, the user matching information includes user information of the first device, and the second device obtains the user matching information, including: the second device receives a twelfth message sent by the first device to be occupied, and the twelfth message includes the user information of the first device.

[0089] In combination with the fifth aspect, in certain implementations of the fifth aspect, the user matching information includes a matching result between user information of the second device and user information of the first device, and before the second device obtains the user matching information, the method also includes: the second device sends a thirteenth message to the first device, the thirteenth message includes the user information of the second device; the second device obtains the user matching information, including: the second device receives a fourteenth message sent by the first device, the fourteenth message includes the matching result.

[0090] In combination with the fifth aspect, in some implementations of the fifth aspect, the second device obtains the user matching information, including: the second device receives a fifteenth message sent by the first device to be occupied, and the fifteenth message includes the matching result.

[0091] In combination with the fifth aspect, in certain implementations of the fifth aspect, the user matching information includes a matching result between user information of the second device and user information of the first device, and before the second device obtains the user matching information, the method also includes: the second device sends a sixteenth message to the server, the sixteenth message includes the user information of the second device; the second device obtains the user matching information, including: the second device receives a seventeenth message sent by the server, the seventeenth message includes the matching result.

[0092] In combination with the fifth aspect, in certain implementations of the fifth aspect, when the user matching information indicates that the user information of the second device matches the user information of the first device, the second device gives up occupying the first device to be occupied, including: when the user matching information indicates that the user information of the second device matches the user information of the first device, and the priority of the first service is higher than the priority of the second service, the second device gives up occupying the first device to be occupied, the first service is the service of the first device, the second service is the service of the second device, and the first service and the second service are both used to occupy the first device to be occupied.

[0093] In combination with the fifth aspect, in certain implementations of the fifth aspect, the priority of the first service is determined by at least one of an importance index of the first service, an applicability index of the first device, and a user preference index of the first service.

[0094] In combination with the fifth aspect, in certain implementations of the fifth aspect, when the user matching information indicates that the user information of the second device matches the user information of the first device, the second device gives up occupying the first device to be occupied, including: when the user matching information indicates that the user information of the second device matches the user information of the first device, and the priority of the first service is lower than the priority of the second service, the second device gives up occupying the first device to be occupied according to the second operation, the first service is the service of the first device, the second service is the service of the second device, and the first service and the second service are both used to occupy the first device to be occupied.

[0095] In combination with the fifth aspect, in some implementations of the fifth aspect, the method further includes: the second device displays second prompt information, and the second prompt information indicates that the first device to be occupied is occupied by the first device.

[0096] In combination with the fifth aspect, in some implementations of the fifth aspect, the second device giving up occupying the first device to be occupied includes: the second device giving up occupying the first device to be occupied according to the first operation.

[0097] In combination with the fifth aspect, in some implementations of the fifth aspect, the first operation is an operation performed by a user on the first device, the second device, or the first device to be occupied.

[0098] In combination with the fifth aspect, in certain implementations of the fifth aspect, the user information includes at least one of the following: brain wave information, face information, voiceprint information, and electronic account information.

[0099] In a sixth aspect, a method for occupying a device is provided, including: a second device obtains user matching information of a first device and the second device, the user matching information is used for matching the user information of the first device with the user information of the second device, the first device is ready to occupy a first device to be occupied, and the occupation state of the first device to be occupied is currently a non-idle state occupied by the second device; when the user matching information indicates that the user information of the second device fails to match the user information of the first device, the second device displays a fourth prompt message, and the fourth prompt message is used to indicate that the user information of the second device fails to match the user information of the first device.

[0100] In combination with the sixth aspect, in some implementations of the sixth aspect, the method further includes: the second device continues to occupy the first device to be occupied.

[0101] In combination with the sixth aspect, in some implementations of the sixth aspect, the method further includes: the second device gives up occupying the first device to be occupied according to a second operation, and the changed occupation state is a non-idle state occupied by the first device.

[0102] In the seventh aspect, a method for occupying a device is provided, including: a first device to be occupied obtains user matching information of a first device and a second device, the user matching information is used for matching the user information of the first device with the user information of the second device, the occupancy state of the first device to be occupied is currently a non-idle state occupied by the second device, and the first device is ready to occupy the first device to be occupied; when the user matching information indicates that the user information of the second device matches the user information of the first device, the first device to be occupied changes the occupancy state, and the changed occupancy state is a non-idle state occupied by the first device.

[0103] In combination with the seventh aspect, in some implementations of the seventh aspect, the user matching information includes user information of the first device and user information of the second device, and the first device to be occupied obtains user matching information of the first device and the second device, including: the first device to be occupied receives user information of the first device sent by the first device; the first device to be occupied receives user information of the second device sent by the second device.

[0104] In combination with the seventh aspect, in some implementations of the seventh aspect, the user matching information includes user information of the first device and user information of the second device, and the first device to be occupied obtains user matching information of the first device and the second device, including: the first device to be occupied receives user information of the first device and user information of the second device sent by the server.

[0105] In combination with the seventh aspect, in certain implementations of the seventh aspect, the user matching information includes a matching result between user information of the second device and user information of the first device, and the first device to be occupied obtains user matching information of the first device and the second device, including: the first device to be occupied receives the matching result sent by the first device, the second device or the server.

[0106] In combination with the seventh aspect, in certain implementations of the seventh aspect, when the user matching information indicates that the user information of the second device matches the user information of the first device, the first device to be occupied changes the occupancy state of the first device to be occupied, including: when the user matching information indicates that the user information of the second device matches the user information of the first device, and the priority of the first service is higher than the priority of the second service, the first device to be occupied changes the occupancy state of the first device to be occupied, the first service is the service of the first device, the second service is the service of the second device, and the first service and the second service are both used to occupy the first device to be occupied.

[0107] In combination with the seventh aspect, in certain implementations of the seventh aspect, the priority of the first service is determined by at least one of an importance index of the first service, an applicability index of the first device, and a user preference index of the first service.

[0108] In combination with the seventh aspect, in certain implementations of the seventh aspect, when the user matching information indicates that the user information of the second device matches the user information of the first device, the first device to be occupied changes the occupancy state of the first device to be occupied, including: when the user matching information indicates that the user information of the second device matches the user information of the first device, and the priority of the first service is lower than the priority of the second service, the first device to be occupied changes the occupancy state of the first device to be occupied according to a second operation, the first service is the service of the first device, the second service is the service of the second device, and the first service and the second service are both used to occupy the first device to be occupied.

[0109] In combination with the seventh aspect, in some implementations of the seventh aspect, the first device to be occupied changes the occupation state of the first device to be occupied, including: the first device to be occupied changes the occupation state of the first device to be occupied according to a first operation.

[0110] In combination with the seventh aspect, in some implementations of the seventh aspect, the first operation is an operation performed by a user on the first device, the second device, or the first device to be occupied.

[0111] In combination with the seventh aspect, in certain implementations of the seventh aspect, the user information includes at least one of the following: brain wave information, face information, voiceprint information, and electronic account information.

[0112] In an eighth aspect, a method for occupying a device is provided, including: a first device to be occupied obtains user matching information of a first device and a second device, the user matching information is used for matching user information of the first device with user information of the second device, the occupancy state of the first device to be occupied is currently a non-idle state occupied by the second device, and the first device is ready to occupy the first device to be occupied; when the user matching information indicates that the user information of the second device fails to match the user information of the first device, the first device to be occupied abandons changing the occupancy state of the first device to be occupied.

[0113] In a ninth aspect, a method for occupying a device is provided, including: a first device to be occupied obtains user matching information of a first device and a second device, the user matching information is used for matching user information of the first device with user information of the second device, the second device currently occupies the first device to be occupied, and the first device is ready to occupy the first device to be occupied; when the user matching information indicates that the user information of the second device fails to match the user information of the first device, the first device to be occupied changes the occupied state according to a second operation, and the occupied state after the change is a non-idle state occupied by the first device.

[0114] In the tenth aspect, an electronic device is provided, including: an acquisition module, used to acquire information related to a second device, the second device currently occupying a first device to be occupied, wherein the information related to the second device includes any one of the following: device information of the second device, a device matching result between the device information of the first device and the device information of the second device, user information of the second device, and a user matching result between the user information of the first device and the user information of the second device; a processing module, used to determine whether the second device is a trusted device based on the information related to the second device; the processing module is also used to occupy the first device to be occupied when the second device is the trusted device.

[0115] In combination with the tenth aspect, in certain implementations of the tenth aspect, when the information related to the second device includes device information of the second device or a device matching result between the device information of the first device and the device information of the second device, the second device belongs to a trusted device at least if the device information of the second device successfully matches the device information of the first device; when the information related to the second device includes user information of the second device or a user matching result between the user information of the first device and the user information of the second device, the second device belongs to a trusted device at least if the user information of the second device successfully matches the user information of the first device.

[0116] In combination with the tenth aspect, in some implementations of the tenth aspect, the electronic device also includes: a sending module, used to broadcast a first message before the acquisition module acquires information related to the second device, the first message being used to indicate that the first device is ready to occupy the first device to be occupied; the acquisition module is specifically used to receive a second message sent by the second device in response to the first message, the second message including device information of the second device or user information of the second device, and the second message indicating that the first device to be occupied is currently occupied by the second device.

[0117] In combination with the tenth aspect, in some implementations of the tenth aspect, the electronic device also includes: a sending module, used to broadcast a first message before the acquisition module acquires information related to the second device, the first message being used to indicate that the first device is ready to occupy the first device to be occupied; the acquisition module is specifically used to receive a third message sent by the first device to be occupied in response to the first message, the third message including device information of the second device or user information of the second device, and the third message indicating that the first device to be occupied is currently occupied by the second device.

[0118] In combination with the tenth aspect, in certain implementations of the tenth aspect, the electronic device also includes: a sending module, used to send a fourth message to the server before the acquisition module acquires information related to the second device, the fourth message being used to indicate that the first device is ready to occupy the first device to be occupied; the acquisition module is specifically used to receive a fifth message sent by the server in response to the fourth message, the fifth message including device information of the second device or user information of the second device, and the fourth message indicating that the first device to be occupied is currently occupied by the second device.

[0119] In combination with the tenth aspect, in some implementations of the tenth aspect, the electronic device also includes: a sending module, used to broadcast a sixth message before the acquisition module acquires information related to the second device, the sixth message including device information of the first device or user information of the first device, and the sixth message is used to indicate that the first device is ready to occupy the first to-be-occupied device; the acquisition module is specifically used to receive a seventh message sent by the second device in response to the sixth message, wherein, when the sixth message includes the device information of the first device, the seventh message includes the device matching result, or, when the sixth message includes the user information of the first device, the seventh message includes the user matching result.

[0120] In combination with the tenth aspect, in some implementations of the tenth aspect, the electronic device also includes: a sending module, used to broadcast a sixth message before the acquisition module acquires information related to the second device, the sixth message including device information of the first device or user information of the first device, and the sixth message is used to indicate that the first device is ready to occupy the first device to be occupied; the acquisition module is specifically used to receive an eighth message sent by the first device to be occupied in response to the sixth message, wherein, when the sixth message includes the device information of the first device, the eighth message includes the device matching result, or, when the sixth message includes the user information of the first device, the eighth message includes the user matching result.

[0121] In combination with the tenth aspect, in some implementations of the tenth aspect, the electronic device also includes: a sending module, used to send a ninth message to the server before the acquisition module acquires information related to the second device, the ninth message including device information of the first device or user information of the first device, and the ninth message is used to indicate that the first device is ready to occupy the first device to be occupied; the acquisition module is specifically used to receive a tenth message sent by the server in response to the ninth message, wherein, when the ninth message includes the device information of the first device, the tenth message includes the device matching result, or, when the ninth message includes the user information of the first device, the tenth message includes the user matching result.

[0122] In combination with the tenth aspect, in certain implementations of the tenth aspect, the processing module is specifically used to, when the second device belongs to the trusted device and the priority of the first service is higher than the priority of the second service, the first device occupies the first device to be occupied, and the service occupying the first device to be occupied is changed from the second service to the first service, the first service is the service of the first device, and the second service is the service of the second device.

[0123] In combination with the tenth aspect, in certain implementations of the tenth aspect, the priority of the first service is determined by at least one of an importance index of the first service, an applicability index of the first device, and a user preference index of the first service.

[0124] In combination with the tenth aspect, in certain implementations of the tenth aspect, the priorities of the services are, from high to low, as follows: call service, video call service, audio playback service, video playback service, recording service, and shooting service.

[0125] In combination with the tenth aspect, in certain implementations of the tenth aspect, the processing module is specifically used to, when the second device belongs to the trusted device and the priority of the first service is lower than the priority of the second service, the first device occupies the first device to be occupied according to the detected second operation, and the service occupying the first device to be occupied is changed from the second service to the first service, the first service is the service of the first device, and the second service is the service of the second device.

[0126] In combination with the tenth aspect, in some implementations of the tenth aspect, the processing module is also used for the first device to display first prompt information, where the first prompt information indicates that the first device to be occupied is occupied by the first device.

[0127] In combination with the tenth aspect, in certain implementations of the tenth aspect, the processing module is specifically used to enable the first device to occupy the first to-be-occupied device according to a detected first operation.

[0128] In combination with the tenth aspect, in certain implementations of the tenth aspect, the first operation is an operation performed by a user on the first device, the second device, or the first device to be occupied.

[0129] In combination with the tenth aspect, in certain implementations of the tenth aspect, the user information of the second device includes at least one of the following: user information collected by the second device; user information collected by the first device to be occupied during the process of the second device occupying the first device to be occupied.

[0130] In combination with the tenth aspect, in certain implementations of the tenth aspect, the user information of the second device includes at least one of the following: auricle information, brain wave information, face information, voiceprint information, and electronic account information.

[0131] In combination with the tenth aspect, in certain implementations of the tenth aspect, the first device to be occupied is any one of the following: headphones, speakers, and a camera.

[0132] In combination with the tenth aspect, in certain implementations of the tenth aspect, the processing module is specifically used to occupy a media path of the first device to be occupied.

[0133] In the eleventh aspect, an electronic device is provided, comprising: a processing module for determining that a first device to be occupied is currently occupied by a second device, and that the first device is ready to occupy the first device to be occupied; a sending module for sending a target message to obtain information related to the second device, wherein the information related to the second device includes any one of the following: device information of the second device, a device matching result between the device information of the first device and the device information of the second device, user information of the second device, and a user matching result between the user information of the first device and the user information of the second device; the processing module is also used to display a third prompt message when the first device fails to obtain the information related to the second device, or when the first device determines that the second device is not a trusted device based on the information related to the second device, wherein the third prompt message is used to indicate that the second device is not a trusted device.

[0134] In combination with the eleventh aspect, in certain implementations of the eleventh aspect, the processing module is further configured to give up occupying the first device to be occupied.

[0135] In combination with the eleventh aspect, in certain implementations of the eleventh aspect, the processing module is further used to occupy the first device to be occupied according to a detected second operation.

[0136] In the twelfth aspect, an electronic device is provided, including: an acquisition module, used to acquire user matching information between a first device and the electronic device, the user matching information is used to match the user information of the first device with the user information of the second device, the first device is ready to occupy a first device to be occupied, and the occupation state of the first device to be occupied is currently a non-idle state occupied by the second device; a processing module, used to give up occupying the first device to be occupied when the user matching information indicates that the user information of the electronic device matches the user information of the first device, and the changed occupation state is a non-idle state occupied by the first device.

[0137] In combination with the twelfth aspect, in some implementations of the twelfth aspect, the user matching information includes user information of the first device, and the acquisition module is specifically used to receive user information of the first device sent by the first device, the first device to be occupied, or the server.

[0138] In combination with the twelfth aspect, in certain implementations of the twelfth aspect, the user matching information includes a matching result between the user information of the electronic device and the user information of the first device, and the electronic device further includes: a sending module, used to send the user information of the electronic device to the first device before the acquisition module acquires the user matching information; the acquisition module is specifically used to receive the matching result sent by the first device.

[0139] In combination with the twelfth aspect, in some implementations of the twelfth aspect, the acquisition module is specifically used to receive the matching result sent by the first device to be occupied.

[0140] In combination with the twelfth aspect, in certain implementations of the twelfth aspect, the user matching information includes a matching result between the user information of the electronic device and the user information of the first device, and the electronic device further includes: a sending module, used to send the user information of the electronic device to a server before the acquisition module acquires the user matching information; the acquisition module is specifically used to receive the matching result sent by the server.

[0141] In combination with the twelfth aspect, in certain implementations of the twelfth aspect, the processing module is specifically used to abandon occupying the first device to be occupied when the user matching information indicates that the user information of the electronic device matches the user information of the first device, and the priority of the first service is higher than the priority of the second service, the first service is the service of the first device, the second service is the service of the electronic device, and both the first service and the second service are used to occupy the first device to be occupied.

[0142] In combination with the twelfth aspect, in certain implementations of the twelfth aspect, the priority of the first service is determined by at least one of an importance index of the first service, an applicability index of the first device, and a user preference index of the first service.

[0143] In combination with the twelfth aspect, in some implementations of the twelfth aspect, the processing module is further used to display second prompt information, where the second prompt information indicates that the first device to be occupied is occupied by the first device.

[0144] In combination with the twelfth aspect, in certain implementations of the twelfth aspect, the processing module is specifically used to, based on a first operation, give up occupying the first device to be occupied.

[0145] In combination with the twelfth aspect, in certain implementations of the twelfth aspect, the first operation is an operation performed by a user on the first device, the electronic device, or the first device to be occupied.

[0146] In combination with the twelfth aspect, in certain implementations of the twelfth aspect, the processing module is specifically used to, when the user matching information indicates that the user information of the electronic device matches the user information of the first device, and the priority of the first service is lower than the priority of the second service, give up occupying the first device to be occupied according to the second operation, the first service being the service of the first device, the second service being the service of the electronic device, and both the first service and the second service being used to occupy the first device to be occupied.

[0147] In combination with the twelfth aspect, in certain implementations of the twelfth aspect, the user information includes at least one of the following: brain wave information, face information, voiceprint information, and electronic account information.

[0148] In the thirteenth aspect, an electronic device is provided, including: an acquisition module, used to acquire user matching information between a first device and the electronic device, the user matching information being used to match the user information of the first device with the user information of the second device, the first device preparing to occupy a first device to be occupied, the occupation state of the first device to be occupied being currently a non-idle state occupied by the second device; a processing module, used to display a fourth prompt message when the user matching information indicates that the user information of the electronic device fails to match the user information of the first device, the fourth prompt message being used to indicate that the user information of the electronic device fails to match the user information of the first device.

[0149] In combination with the thirteenth aspect, in certain implementations of the thirteenth aspect, the processing module is specifically used to continue occupying the first device to be occupied.

[0150] In combination with the thirteenth aspect, in certain implementations of the thirteenth aspect, the processing module is specifically used to, according to a second operation, give up occupying the first device to be occupied, and the changed occupancy state is a non-idle state occupied by the first device.

[0151] In a fourteenth aspect, an electronic device is provided, including: an acquisition module, used to acquire user matching information of a first device and a second device, the user matching information is used to match the user information of the first device with the user information of the second device, the occupancy state of the first device to be occupied is currently a non-idle state occupied by the second device, and the first device is ready to occupy the first device to be occupied; a processing module, used to change the occupancy state of the electronic device when the user matching information indicates that the user information of the second device matches the user information of the first device, the occupancy state after the change is a non-idle state occupied by the first device.

[0152] In combination with the fourteenth aspect, in certain implementations of the fourteenth aspect, the user matching information includes user information of the first device and user information of the second device, and the acquisition module is specifically used to receive the user information of the first device sent by the first device, and to receive the user information of the second device sent by the second device.

[0153] In combination with the fourteenth aspect, in certain implementations of the fourteenth aspect, the user matching information includes user information of the first device and user information of the second device, and the acquisition module is specifically used to receive user information of the first device and user information of the second device sent by the server.

[0154] In combination with the fourteenth aspect, in certain implementations of the fourteenth aspect, the user matching information includes a matching result between user information of the second device and user information of the first device, and the acquisition module is specifically used to receive the matching result sent by the first device, the second device or the server.

[0155] In combination with the fourteenth aspect, in certain implementations of the fourteenth aspect, the processing module is specifically used to change the occupancy state of the electronic device when the user matching information indicates that the user information of the second device matches the user information of the first device, and the priority of the first service is higher than the priority of the second service, the first service is the service of the first device, the second service is the service of the second device, and both the first service and the second service are used to occupy the electronic device.

[0156] In combination with the fourteenth aspect, in certain implementations of the fourteenth aspect, the priority of the first service is determined by at least one of an importance index of the first service, an applicability index of the first device, and a user preference index of the first service.

[0157] In combination with the fourteenth aspect, in certain implementations of the fourteenth aspect, the processing module is specifically used to change the occupancy state of the electronic device according to the first operation.

[0158] In combination with the fourteenth aspect, in certain implementations of the fourteenth aspect, the first operation is an operation performed by a user on the first device, the second device, or the electronic device.

[0159] In combination with the fourteenth aspect, in certain implementations of the fourteenth aspect, the processing module is specifically used to, when the user matching information indicates that the user information of the second device matches the user information of the first device, and the priority of the first service is lower than the priority of the second service, change the occupancy state of the electronic device according to a second operation, the first service being the service of the first device, the second service being the service of the second device, and both the first service and the second service being used to occupy the electronic device.

[0160] In combination with the fourteenth aspect, in certain implementations of the fourteenth aspect, the user information includes at least one of the following: brain wave information, face information, voiceprint information, and electronic account information.

[0161] In the fifteenth aspect, an electronic device is provided, including: an acquisition module, used to acquire user matching information of a first device and a second device, the user matching information is used to match the user information of the first device with the user information of the second device, the occupancy state of the first device to be occupied is currently a non-idle state occupied by the second device, and the first device is ready to occupy the first device to be occupied; a processing module, used to abandon changing the occupancy state of the electronic device when the user matching information indicates that the user information of the second device fails to match the user information of the first device.

[0162] In the sixteenth aspect, an electronic device is provided, including: an acquisition module, acquiring user matching information of a first device and a second device, the user matching information being used for matching user information of the first device with user information of the second device, the second device currently occupying the first device to be occupied, and the first device preparing to occupy the first device to be occupied; a processing module, for changing the occupation state of the electronic device according to a second operation when the user matching information indicates that the user information of the second device fails to match the user information of the first device, the occupied state after the change being a non-idle state occupied by the first device.

[0163] In the seventeenth aspect, an electronic device is provided, comprising: a processor, a memory and a transceiver, the memory being used to store a computer program, and the processor being used to execute the computer program stored in the memory; wherein the transceiver is used to obtain information related to a first device to be occupied, the first device to be occupied is currently occupied by a second device, wherein the user information of the first device to be occupied includes at least one of the following: first user information collected by the first device to be occupied, second user information acquired by the second device, a first user matching result between the first user information and the user information of the first device, and a second user matching result between the second user information and the user information of the first device; the processor is used to determine whether the first device occupies the first device to be occupied according to the information related to the first device to be occupied, the first user information indicating a user currently using the first device to be occupied, and the second user information indicating a user currently using the first device to be occupied.

[0164] In combination with the seventeenth aspect, in certain implementations of the seventeenth aspect, the processor is specifically used to, when a first condition is met, cause the first device to occupy the first device to be occupied; the first condition includes at least one of the following: the first user information successfully matches the user information of the first device; the second user information successfully matches the user information of the first device.

[0165] In combination with the seventeenth aspect, in certain implementations of the seventeenth aspect, the transceiver is also used to broadcast a first message before the transceiver obtains information related to the first device to be occupied, and the first message is used to indicate that the first device is ready to occupy the first device to be occupied; the transceiver is specifically used to receive a second message sent by the second device in response to the first message, and the second message includes the first user information and / or the second user information.

[0166] In combination with the seventeenth aspect, in certain implementations of the seventeenth aspect, the transceiver is also used to broadcast a first message before the transceiver obtains information related to the first device to be occupied, the first message being used to indicate that the first device is ready to occupy the first device to be occupied; the transceiver is specifically used to receive a third message sent by the first device to be occupied in response to the first message, the third message including the first user information and / or the second user information.

[0167] In combination with the seventeenth aspect, in certain implementations of the seventeenth aspect, the transceiver is also used to send a fourth message to the server before the transceiver obtains information related to the first device to be occupied, and the fourth message is used to indicate that the first device is ready to occupy the first device to be occupied; the transceiver is specifically used to receive a fifth message sent by the server in response to the fourth message, and the fifth message includes the first user information and / or the second user information.

[0168] In combination with the seventeenth aspect, in certain implementations of the seventeenth aspect, the transceiver is also used to broadcast a sixth message before the transceiver obtains information related to the first device to be occupied, the sixth message including user information of the first device, and the sixth message being used to indicate that the first device is ready to occupy the first device to be occupied; the transceiver is specifically used to receive a seventh message sent by the second device in response to the sixth message, the seventh message including the second user matching result.

[0169] In combination with the seventeenth aspect, in certain implementations of the seventeenth aspect, the transceiver is also used to, before the transceiver obtains information related to the first device to be occupied, broadcast a sixth message, the sixth message including user information of the first device, and the sixth message being used to indicate that the first device is ready to occupy the first device to be occupied; the transceiver is specifically used to receive an eighth message sent by the first device to be occupied in response to the sixth message, the eighth message including the first user matching result.

[0170] In combination with the seventeenth aspect, in certain implementations of the seventeenth aspect, the transceiver is also used to, before the transceiver obtains information related to the first device to be occupied, send a ninth message to the server, the ninth message including user information of the first device, and the ninth message being used to indicate that the first device is ready to occupy the first device to be occupied; the transceiver is specifically used to receive a tenth message sent by the server in response to the ninth message, the tenth message including the first user matching result and / or the second user matching result.

[0171] In combination with the seventeenth aspect, in certain implementations of the seventeenth aspect, the first service of the first device is ready to occupy the first device to be occupied, and the transceiver is also used to obtain the priority of the second service before the processor determines whether to occupy the first device to be occupied based on the information related to the first device to be occupied, the second service being the service of the second device currently occupying the first device to be occupied; the processor is specifically used to determine whether to occupy the first device to be occupied based on the information related to the first device to be occupied, the priority of the first service and the priority of the second service.

[0172] In combination with the seventeenth aspect, in certain implementations of the seventeenth aspect, the priority of the first service is determined by at least one of an importance index of the first service, an applicability index of the first device, and a user preference index of the first service.

[0173] In combination with the seventeenth aspect, in certain implementations of the seventeenth aspect, the priority of the service includes at least one of the following: the priority of the call service is higher than the priority of the audio playback service; the priority of the call service is higher than the priority of the video call service; the priority of the call service is higher than the priority of the audio playback service; the priority of the call service is higher than the priority of the video playback service; the priority of the call service is higher than the priority of the recording service; the priority of the call service is higher than the priority of the shooting service; the priority of the video call service is higher than the priority of the audio playback service; the priority of the video call service is higher than the priority of the video playback service; the priority of the video call service is higher than the priority of the recording service; the priority of the video call service is higher than the priority of the shooting service.

[0174] In combination with the seventeenth aspect, in certain implementations of the seventeenth aspect, the processor is specifically used to, when a second condition is met, cause the first device to occupy the first device to be occupied; the second condition includes any one of the following: the priority of the first service is higher than the priority of the second service; or, the priority of the first service is lower than the priority of the second service, and the first device detects a second operation, and the first operation is used to instruct the first device to preempt the first device to be occupied.

[0175] In combination with the seventeenth aspect, in certain implementations of the seventeenth aspect, the processor is further used to, when the first device determines that the first device to be occupied is occupied, display a first prompt message indicating that the first device to be occupied is occupied by the first device.

[0176] In combination with the seventeenth aspect, in certain implementations of the seventeenth aspect, the processor is specifically used to display first prompt information based on the information related to the first device to be occupied, the first prompt information indicating the relationship between a user currently using the first device to be occupied and a user currently using the first device, and the first prompt information provides an option for the user currently using the first device to select whether to occupy the first device to be occupied; the processor is specifically used to determine whether to occupy the first device to be occupied in response to receiving a first operation performed by the user currently using the first device based on the first prompt information.

[0177] In combination with the seventeenth aspect, in certain implementations of the seventeenth aspect, the first operation is an operation performed on the first device, the second device, or the first device to be occupied by a user currently using the first device.

[0178] In combination with the seventeenth aspect, in certain implementations of the seventeenth aspect, the user information includes at least one of the following: auricle information, brain wave information, face information, voiceprint information, and electronic account information.

[0179] In combination with the seventeenth aspect, in certain implementations of the seventeenth aspect, the first device to be occupied is any one of the following: headphones, speakers, and a camera; or, the first device to be occupied is a device including any one of the following elements: headphones, speakers, and a camera.

[0180] In combination with the seventeenth aspect, in certain implementations of the seventeenth aspect, the processor is specifically used to determine whether to occupy a media path of the first device to be occupied.

[0181] In the eighteenth aspect, an electronic device is provided, comprising: a processor, a memory and a transceiver, the memory being used to store a computer program, and the processor being used to execute the computer program stored in the memory; wherein the processor is used to determine that a first device to be occupied is currently occupied by a second device, and that the first device is ready to occupy the first device to be occupied; the transceiver is used to send a message to obtain information related to the first device to be occupied, wherein the user information of the first device to be occupied includes at least one of the following: first user information collected by the first device to be occupied, second user information acquired by the second device, a first user matching result between the first user information and information related to the first device, and a second user matching result between the second user information and user information of the first device; the processor is also used to display a third prompt message when the transceiver fails to obtain the information related to the first device to be occupied, and the third prompt message is used to indicate that the first device cannot identify the user using the first device to be occupied.

[0182] In combination with the eighteenth aspect, in certain implementations of the eighteenth aspect, the processor is further used to give up occupying the first device to be occupied if the first device fails to obtain the information related to the first device to be occupied.

[0183] In combination with the eighteenth aspect, in certain implementations of the eighteenth aspect, the processor is also used to, after displaying the third prompt information, occupy the first device to be occupied according to a detected second operation, wherein the second operation is used to instruct the first device to occupy the first device to be occupied.

[0184] In the nineteenth aspect, an electronic device is provided, comprising: a processor, a memory and a transceiver, the memory being used to store a computer program, and the processor being used to execute the computer program stored in the memory; wherein the transceiver is used to obtain information related to a second device, the second device currently occupying a first device to be occupied, wherein the information related to the second device includes any one of the following: device information of the second device, a device matching result between the device information of the first device and the device information of the second device, user information of the second device, and a user matching result between the user information of the first device and the user information of the second device; the processor is used to determine whether the second device is a trusted device based on the information related to the second device; and the processor is used to occupy the first device to be occupied if the second device is the trusted device.

[0185] In combination with the nineteenth aspect, in certain implementations of the nineteenth aspect, when the information related to the second device includes device information of the second device or a device matching result between the device information of the first device and the device information of the second device, the second device belongs to a trusted device at least if the device information of the second device successfully matches the device information of the first device; when the information related to the second device includes user information of the second device or a user matching result between the user information of the first device and the user information of the second device, the second device belongs to a trusted device at least if the user information of the second device successfully matches the user information of the first device.

[0186] In combination with the nineteenth aspect, in certain implementations of the nineteenth aspect, the transceiver is also used to, before the transceiver obtains information related to the second device, broadcast a first message used to indicate that the first device is ready to occupy the first device to be occupied; the transceiver is specifically used to receive a second message sent by the second device in response to the first message, the second message including device information of the second device or user information of the second device, and the second message indicating that the first device to be occupied is currently occupied by the second device.

[0187] In combination with the nineteenth aspect, in certain implementations of the nineteenth aspect, the transceiver is also used to, before the transceiver obtains information related to the second device, broadcast a first message used to indicate that the first device is ready to occupy the first device to be occupied; the transceiver is specifically used to receive a third message sent by the first device to be occupied in response to the first message, the third message including device information of the second device or user information of the second device, and the third message indicating that the first device to be occupied is currently occupied by the second device.

[0188] In combination with the nineteenth aspect, in certain implementations of the nineteenth aspect, the transceiver is also used to, before the transceiver obtains information related to the second device, send a fourth message to the server, the fourth message being used to indicate that the first device is ready to occupy the first device to be occupied; the transceiver is specifically used to receive a fifth message sent by the server in response to the fourth message, the fifth message including device information of the second device or user information of the second device, and the fourth message indicating that the first device to be occupied is currently occupied by the second device.

[0189] In combination with the nineteenth aspect, in certain implementations of the nineteenth aspect, the transceiver is also used to, before the transceiver obtains information related to the second device, broadcast a sixth message, the sixth message including device information of the first device or user information of the first device, and the sixth message is used to indicate that the first device is ready to occupy the first device to be occupied; the transceiver is specifically used to receive a seventh message sent by the second device in response to the sixth message, wherein, when the sixth message includes the device information of the first device, the seventh message includes the device matching result, or, when the sixth message includes the user information of the first device, the seventh message includes the user matching result.

[0190] In combination with the nineteenth aspect, in certain implementations of the nineteenth aspect, the transceiver is also used to, before the transceiver obtains information related to the second device, broadcast a sixth message, the sixth message including device information of the first device or user information of the first device, and the sixth message is used to indicate that the first device is ready to occupy the first device to be occupied; the transceiver is specifically used to receive an eighth message sent by the first device to be occupied in response to the sixth message, wherein, in a case where the sixth message includes the device information of the first device, the eighth message includes the device matching result, or, in a case where the sixth message includes the user information of the first device, the eighth message includes the user matching result.

[0191] In combination with the nineteenth aspect, in certain implementations of the nineteenth aspect, the transceiver is also used to, before the transceiver obtains information related to the second device, send a ninth message to the server, the ninth message including device information of the first device or user information of the first device, and the ninth message is used to indicate that the first device is ready to occupy the first device to be occupied; the transceiver is specifically used to receive a tenth message sent by the server in response to the ninth message, wherein, when the ninth message includes the device information of the first device, the tenth message includes the device matching result, or, when the ninth message includes the user information of the first device, the tenth message includes the user matching result.

[0192] In combination with the nineteenth aspect, in certain implementations of the nineteenth aspect, the processor is specifically used to, when the second device belongs to the trusted device and the priority of the first service is higher than the priority of the second service, the first device occupies the first device to be occupied, and the service occupying the first device to be occupied is changed from the second service to the first service, the first service is the service of the first device, and the second service is the service of the second device.

[0193] In combination with the nineteenth aspect, in certain implementations of the nineteenth aspect, the priority of the first service is determined by at least one of an importance index of the first service, an applicability index of the first device, and a user preference index of the first service.

[0194] In combination with the nineteenth aspect, in certain implementations of the nineteenth aspect, the priorities of the services are, from high to low, as follows: call service, video call service, audio playback service, video playback service, recording service, and shooting service.

[0195] In combination with the nineteenth aspect, in certain implementations of the nineteenth aspect, the processor is specifically used to, when the second device belongs to the trusted device and the priority of the first service is lower than the priority of the second service, the first device occupies the first device to be occupied according to the detected second operation, and the service occupying the first device to be occupied is changed from the second service to the first service, the first service is the service of the first device, and the second service is the service of the second device.

[0196] In combination with the nineteenth aspect, in certain implementations of the nineteenth aspect, the processor is further used to, the first device displays first prompt information, wherein the first prompt information indicates that the first device to be occupied is occupied by the first device.

[0197] In combination with the nineteenth aspect, in certain implementations of the nineteenth aspect, the processor is specifically configured to cause the first device to occupy the first to-be-occupied device according to a detected first operation.

[0198] In combination with the nineteenth aspect, in certain implementations of the nineteenth aspect, the first operation is an operation performed by a user on the first device, the second device, or the first device to be occupied.

[0199] In combination with the nineteenth aspect, in certain implementations of the nineteenth aspect, the user information of the second device includes at least one of the following: user information collected by the second device; user information collected by the first device to be occupied during the process of the second device occupying the first device to be occupied.

[0200] In combination with the nineteenth aspect, in certain implementations of the nineteenth aspect, the user information of the second device includes at least one of the following: auricle information, brain wave information, face information, voiceprint information, and electronic account information.

[0201] In combination with the nineteenth aspect, in certain implementations of the nineteenth aspect, the first device to be occupied is any one of the following: headphones, speakers, and a camera.

[0202] In combination with the nineteenth aspect, in certain implementations of the nineteenth aspect, the processor is specifically used to occupy a media path of the first device to be occupied.

[0203] In aspect 20, an electronic device is characterized by comprising: a processor, a memory and a transceiver, wherein the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory; wherein:

[0204] The processor is used to determine that a first device to be occupied is currently occupied by a second device, and the first device is ready to occupy the first device to be occupied;

[0205] The transceiver is used to send a target message to obtain information related to the second device, where the information related to the second device includes any one of the following: device information of the second device, a device matching result between the device information of the first device and the device information of the second device, user information of the second device, and a user matching result between the user information of the first device and the user information of the second device;

[0206] The processor is also used to display a third prompt message when the first device fails to obtain the information related to the second device, or when the first device determines that the second device is not a trusted device based on the information related to the second device, wherein the third prompt message is used to indicate that the second device is not a trusted device.

[0207] In combination with the twentieth aspect, in certain implementations of the twentieth aspect, the processor is further used to give up occupying the first device to be occupied.

[0208] In combination with the twentieth aspect, in certain implementations of the twentieth aspect, the processor is further used to occupy the first device to be occupied based on a detected second operation.

[0209] In the twenty-first aspect, an electronic device is provided, including: an acquisition module, used to acquire information related to a first device to be occupied, the first device to be occupied is currently occupied by a second device, wherein the user information of the first device to be occupied includes at least one of the following: first user information collected by the first device to be occupied, second user information acquired by the second device, a first user matching result between the first user information and the user information of the first device, a second user matching result between the second user information and the user information of the first device, the first user information indicates a user currently using the first device to be occupied, and the second user information indicates a user currently using the first device to be occupied; and a processing module, used to determine whether the first device occupies the first device to be occupied based on the information related to the first device to be occupied.

[0210] In combination with the twenty-first aspect, in certain implementations of the twenty-first aspect, the processing module is specifically used to, when a first condition is met, cause the first device to occupy the first device to be occupied; the first condition includes at least one of the following: the first user information successfully matches the user information of the first device; the second user information successfully matches the user information of the first device.

[0211] In combination with the twenty-first aspect, in certain implementations of the twenty-first aspect, the electronic device also includes: a sending module, used to broadcast a first message before the acquisition module acquires information related to the first device to be occupied, the first message being used to indicate that the first device is ready to occupy the first device to be occupied; the acquisition module is specifically used to receive a second message sent by the second device in response to the first message, the second message including the first user information and / or the second user information.

[0212] In combination with the twenty-first aspect, in certain implementations of the twenty-first aspect, the electronic device also includes: a sending module, used to broadcast a first message before the transceiver obtains information related to the first device to be occupied, the first message being used to indicate that the first device is ready to occupy the first device to be occupied; the acquisition module is specifically used to receive a third message sent by the first device to be occupied in response to the first message, the third message including the first user information and / or the second user information.

[0213] In combination with the twenty-first aspect, in certain implementations of the twenty-first aspect, the electronic device also includes: a sending module, used to send a fourth message to the server before the transceiver obtains information related to the first device to be occupied, the fourth message being used to indicate that the first device is ready to occupy the first device to be occupied; the acquisition module is specifically used to receive a fifth message sent by the server in response to the fourth message, the fifth message including the first user information and / or the second user information.

[0214] In combination with the twenty-first aspect, in certain implementations of the twenty-first aspect, the electronic device also includes: a sending module, used to broadcast a sixth message before the transceiver obtains information related to the first device to be occupied, the sixth message including user information of the first device, and the sixth message is used to indicate that the first device is ready to occupy the first device to be occupied; the acquisition module is specifically used to receive a seventh message sent by the second device in response to the sixth message, the seventh message including the second user matching result.

[0215] In combination with the twenty-first aspect, in certain implementations of the twenty-first aspect, the electronic device also includes: a sending module, used to broadcast a sixth message before the transceiver obtains information related to the first device to be occupied, the sixth message including user information of the first device, and the sixth message is used to indicate that the first device is ready to occupy the first device to be occupied; the acquisition module is specifically used to receive an eighth message sent by the first device to be occupied in response to the sixth message, the eighth message including the first user matching result.

[0216] In combination with the twenty-first aspect, in certain implementations of the twenty-first aspect, the electronic device also includes: a sending module, used to send a ninth message to the server before the transceiver obtains information related to the first device to be occupied, the ninth message including user information of the first device, and the ninth message is used to indicate that the first device is ready to occupy the first device to be occupied; the acquisition module is specifically used to receive a tenth message sent by the server in response to the ninth message, the tenth message including the first user matching result and / or the second user matching result.

[0217] In combination with the twenty-first aspect, in certain implementations of the twenty-first aspect, the first service of the first device is ready to occupy the first device to be occupied, and the acquisition module is also used to obtain the priority of the second service before the processing module determines whether to occupy the first device to be occupied based on the information related to the first device to be occupied, the second service being the service of the second device currently occupying the first device to be occupied; the processing module is specifically used to determine whether to occupy the first device to be occupied based on the information related to the first device to be occupied, the priority of the first service and the priority of the second service.

[0218] In combination with the twenty-first aspect, in certain implementations of the twenty-first aspect, the priority of the first service is determined by at least one of an importance index of the first service, an applicability index of the first device, and a user preference index of the first service.

[0219] In combination with the twenty-first aspect, in certain implementations of the twenty-first aspect, the priority of the service includes at least one of the following: the priority of the call service is higher than the priority of the audio playback service; the priority of the call service is higher than the priority of the video call service; the priority of the call service is higher than the priority of the audio playback service; the priority of the call service is higher than the priority of the video playback service; the priority of the call service is higher than the priority of the recording service; the priority of the call service is higher than the priority of the shooting service; the priority of the video call service is higher than the priority of the audio playback service; the priority of the video call service is higher than the priority of the video playback service; the priority of the video call service is higher than the priority of the recording service; the priority of the video call service is higher than the priority of the shooting service.

[0220] In combination with the twenty-first aspect, in certain implementations of the twenty-first aspect, the processing module is specifically used to, when a second condition is met, cause the first device to occupy the first device to be occupied; the second condition includes any one of the following: the priority of the first service is higher than the priority of the second service; or, the priority of the first service is lower than the priority of the second service, and the first device detects a second operation, and the first operation is used to instruct the first device to preempt the first device to be occupied.

[0221] In combination with the twenty-first aspect, in certain implementations of the twenty-first aspect, the processing module is also used to, when the first device determines that the first device to be occupied is occupied, display a first prompt message, wherein the first prompt message indicates that the first device to be occupied is occupied by the first device.

[0222] In combination with the twenty-first aspect, in certain implementations of the twenty-first aspect, the processing module is specifically used to display first prompt information based on the information related to the first device to be occupied, the first prompt information indicating the relationship between a user currently using the first device to be occupied and a user currently using the first device, and the first prompt information providing an option for the user currently using the first device to select whether to occupy the first device to be occupied; in response to receiving a first operation performed by the user currently using the first device based on the first prompt information, determine whether to occupy the first device to be occupied.

[0223] In combination with the twenty-first aspect, in certain implementations of the twenty-first aspect, the first operation is an operation performed on the first device, the second device, or the first device to be occupied by a user currently using the first device.

[0224] In combination with the twenty-first aspect, in certain implementations of the twenty-first aspect, the user information includes at least one of the following: auricle information, brain wave information, face information, voiceprint information, and electronic account information.

[0225] In combination with the twenty-first aspect, in certain implementations of the twenty-first aspect, the first device to be occupied is any one of the following: headphones, speakers, and a camera; or, the first device to be occupied is a device including any one of the following elements: headphones, speakers, and a camera.

[0226] In combination with the twenty-first aspect, in certain implementations of the twenty-first aspect, the processing module is specifically used to determine whether to occupy a media channel of the first device to be occupied.

[0227] In the twenty-second aspect, an electronic device is provided, comprising: a processing module, used to determine that a first device to be occupied is currently occupied by a second device, and that the first device is ready to occupy the first device to be occupied; a sending module, used to send a message to obtain information related to the first device to be occupied, wherein the information related to the first device to be occupied includes at least one of the following: first user information collected by the first device to be occupied, second user information acquired by the second device, a first user matching result between the first user information and the user information of the first device, and a second user matching result between the second user information and the user information of the first device; the processing module is also used to, if the receiving module fails to acquire the information related to the first device to be occupied, display a third prompt message, wherein the third prompt message is used to indicate that the first device cannot identify the user using the first device to be occupied.

[0228] In combination with the twenty-second aspect, in certain implementations of the twenty-second aspect, the processing module is further used to give up occupying the first device to be occupied if the first device fails to obtain the information related to the first device to be occupied.

[0229] In combination with the twenty-second aspect, in certain implementations of the twenty-second aspect, the processing module is also used to, after displaying the third prompt information, occupy the first device to be occupied according to a detected second operation, and the second operation is used to instruct the first device to occupy the first device to be occupied.

[0230] In the twenty-third aspect, a computer program storage medium is provided, wherein the computer readable medium stores program code, and when the computer program code runs on a computer, the computer executes instructions of any possible implementation method of the first to ninth aspects.

[0231] In the twenty-fourth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute a method in any one of the implementations of the first to ninth aspects above.

[0232] In the twenty-fifth aspect, a chip is provided, comprising a processor and a data interface, wherein the processor reads instructions stored in a memory through the data interface to execute a method in any one of the implementation modes of the first to ninth aspects above.

[0233] Optionally, as an implementation method, the chip may also include a memory, in which instructions are stored, and the processor is used to execute the instructions stored in the memory. When the instructions are executed, the processor is used to execute the method in any one of the implementation methods of the first aspect to the ninth aspect.

[0234] In the twenty-sixth aspect, a terminal device is provided, comprising a module for executing any possible implementation method of the first to ninth aspects above.

[0235] In the twenty-seventh aspect, a communication device is provided for executing the method described in any possible implementation of the first to ninth aspects above.

[0236] In the twenty-eighth aspect, a communication device is provided, comprising: a processor and a memory, wherein the processor is coupled to the memory, the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the communication device executes the method described in any possible implementation method of the first to ninth aspects above.

[0237] In the twenty-ninth aspect, a communication device is provided, comprising: a processor, a memory and a transceiver, the memory being used to store a computer program, and the processor being used to execute the computer program stored in the memory, so that the device executes the method described in any possible implementation method of the first to ninth aspects above.

[0238] In the thirtieth aspect, a communication device is provided, comprising: at least one processor and a communication interface, wherein the communication interface is used for the communication device to exchange information with other communication devices, and when program instructions are executed in the at least one processor, the communication device implements the method described in any possible implementation method of the first to ninth aspects.

[0239] In aspect thirty-first, a processor is provided, comprising: at least one circuit for executing the method described in any possible implementation of aspect one to aspect nine above.

[0240] In aspect thirty-second, a chip system is provided, comprising at least one processor, wherein when program instructions are executed in the at least one processor, the chip system implements the method described in any possible implementation method of aspect one to aspect nine. BRIEF DESCRIPTION OF THE DRAWINGS

[0241] Figure 1 It is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.

[0242] Figure 2 It is a schematic diagram of an application scenario provided by an embodiment of the present application.

[0243] Figure 3 It is a scenario diagram of a method for occupying a device provided in an embodiment of the present application.

[0244] Figure 4 It is a schematic flowchart of a method for occupying a device provided in an embodiment of the present application.

[0245] Figure 5 It is a schematic flowchart of a method for occupying a device provided in an embodiment of the present application.

[0246] Figure 6 It is a schematic flowchart of a method for occupying a device provided in an embodiment of the present application.

[0247] Figure 7 It is a scenario diagram of a method for occupying a device provided in an embodiment of the present application.

[0248] Figure 8 It is a schematic diagram of a user interface of a method for occupying a device provided in an embodiment of the present application.

[0249] Fig. 9 It is a schematic diagram of a user interface of a method for occupying a device provided in an embodiment of the present application.

[0250] Fig.10 It is a schematic diagram of a user interface of a method for occupying a device provided in an embodiment of the present application.

[0251] Fig.11 It is a schematic diagram of a user interface of a method for occupying a device provided in an embodiment of the present application.

[0252] Fig.12 It is a schematic diagram of a user interface of a method for occupying a device provided in an embodiment of the present application.

[0253] Fig.13 It is a scenario diagram of a method for occupying a device provided in an embodiment of the present application.

[0254] Fig.14 It is a schematic diagram of a user interface of a method for occupying a device provided in an embodiment of the present application.

[0255] Fig.15 It is a schematic diagram of a user interface of a method for occupying a device provided in an embodiment of the present application.

[0256] Fig.16 It is a scenario diagram of a method for occupying a device provided in an embodiment of the present application.

[0257] Fig.17 It is a schematic diagram of a user interface of a method for occupying a device provided in an embodiment of the present application.

[0258] Fig.18 It is a schematic diagram of a user interface of a method for occupying a device provided in an embodiment of the present application.

[0259] Fig.19 It is a scenario diagram of a method for occupying a device provided in an embodiment of the present application.

[0260] Fig. 20 It is a schematic diagram of a user interface of a method for occupying a device provided in an embodiment of the present application.

[0261] Fig.21 It is a schematic diagram of a user interface of a method for occupying a device provided in an embodiment of the present application.

[0262] Fig. 22 It is a schematic flowchart of a method for occupying a device provided in an embodiment of the present application.

[0263] Fig.23 It is a schematic flowchart of a method for occupying a device provided in an embodiment of the present application.

[0264] Fig.24 It is a schematic flowchart of a method for occupying a device provided in an embodiment of the present application.

[0265] Fig.25 It is a schematic flowchart of a method for occupying a device provided in an embodiment of the present application.

[0266] Fig.26 It is a scenario diagram of a method for occupying a device provided in an embodiment of the present application.

[0267] Fig. 27 It is a scenario diagram of a method for occupying a device provided in an embodiment of the present application.

[0268] Fig.28 It is a schematic block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0269] The technical solution in this application will be described below in conjunction with the accompanying drawings.

[0270] The terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to be used as limitations on the present application. As used in the specification and the appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include expressions such as "one or more", unless there is a clear contrary indication in the context. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" refer to one, two or more. The term "and / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist; for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.

[0271] References to "one embodiment" or "some embodiments" etc. described in this specification mean that a particular feature, structure or characteristic described in conjunction with the embodiment is included in one or more embodiments of the present application. Thus, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear at different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0272] The following describes an electronic device provided by an embodiment of the present application, a user interface for such an electronic device, and an embodiment for using such an electronic device. In some embodiments, the electronic device may be a portable electronic device that also includes other functions such as a personal digital assistant and / or a music player function, such as a mobile phone, a tablet computer, a wearable electronic device with wireless communication function (such as a smart watch), a video player, headphones, a speaker, a camera, etc. Exemplary embodiments of portable electronic devices include but are not limited to devices equipped with Or a portable electronic device with other operating systems. The portable electronic device may also be other portable electronic devices, such as a laptop computer, etc. It should also be understood that in some other embodiments, the electronic device may not be a portable electronic device, but a desktop computer, a television, a speaker, a camera, etc.

[0273] For example, Figure 11 shows a schematic diagram of the structure of the electronic device 100. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a button 190, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.

[0274] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0275] The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and / or a neural-network processing unit (neural-network processing unit, NPU), etc. Among them, different processing units may be independent components or integrated into one or more processors. In some embodiments, the electronic device 100 may also include one or more processors 110. Among them, the controller may generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions. In some other embodiments, a memory may also be set in the processor 110 for storing instructions and data. Exemplarily, the memory in the processor 110 may be a high-speed cache memory. The memory may store instructions or data that the processor 110 has just used or circulated. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the electronic device 100 in processing data or executing instructions.

[0276] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a SIM card interface, and / or a USB interface, etc. Among them, the USB interface is an interface that complies with the USB standard specification, and can specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and a peripheral device. The USB interface can also be used to connect headphones to play audio through the headphones.

[0277] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0278] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0279] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0280] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0281] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and filters it, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0282] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0283] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or more display screens 194.

[0284] The display screen 194 of the electronic device 100 can be a flexible screen. At present, the flexible screen has attracted much attention for its unique characteristics and huge potential. Compared with traditional screens, flexible screens have the characteristics of strong flexibility and bendability, which can provide users with a new interaction method based on bendable characteristics, and can meet users' more needs for electronic devices. For electronic devices equipped with a foldable display screen, the foldable display screen on the electronic device can be switched between a small screen in a folded form and a large screen in an unfolded form at any time. Therefore, users use the split-screen function on electronic devices equipped with a foldable display screen more and more frequently.

[0285] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

[0286] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.

[0287] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include one or more cameras 193.

[0288] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0289] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0290] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.

[0291] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0292] The internal memory 121 can be used to store one or more computer programs, which include instructions. The processor 110 can execute the above instructions stored in the internal memory 121, so that the electronic device 100 performs the method of screen-off display provided in some embodiments of the present application, as well as various applications and data processing. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system; the program storage area can also store one or more applications (such as a gallery, contacts, etc.). The data storage area can store data (such as photos, contacts, etc.) created during the use of the electronic device 100. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more disk storage components, a flash memory component, a universal flash storage (UFS), etc. In some embodiments, the processor 110 can execute the method of screen-off display provided in the embodiment of the present application, as well as other applications and data processing by running instructions stored in the internal memory 121, and / or instructions stored in a memory provided in the processor 110. The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0293] Figure 2 This is an application scenario provided by an embodiment of the present application. Figure 2 The application scenario may include at least one electronic device (eg, electronic device 210 , electronic device 220 , electronic device 230 , electronic device 240 ) and electronic device 250 . Figure 2 The electronic device 210 in the example may be a television, the electronic device 220 may be a laptop, the electronic device 230 may be a watch, the electronic device 240 may be a mobile phone, and the electronic device 250 may be an earphone, a speaker, a camera, etc. Figure 2The electronic device 210, the electronic device 220, the electronic device 230, and the electronic device 240 can establish a wireless connection with the electronic device 250 through a wireless communication protocol. The wireless communication protocol can be, for example, a wireless local area network (WLAN) (such as a wireless fidelity (Wi-Fi) network), Bluetooth (BT), a global navigation satellite system (GNSS), frequency modulation (FM), a near field communication protocol (NFC), infrared technology (IR), etc. For example, the electronic device 250 can receive information sent by the electronic device 210, the electronic device 220, the electronic device 230, and the electronic device 240. The electronic device 250 can also send information to the electronic device 210, the electronic device 220, the electronic device 230, and the electronic device 240.

[0294] It should be noted that the embodiments of the present application can be applied to application scenarios including one or more wireless communication devices and multiple electronic devices, and the multiple electronic devices can interact with the one or more wireless communication devices through a wireless communication protocol, which is not limited in the present application.

[0295] In one example, the electronic device 250 may be an earphone, and the electronic devices around the earphone may be wirelessly connected to the earphone.

[0296] For example, the electronic device 210 may be a television, which may be wirelessly connected to the headset so that the user may listen to the programs played by the television through the headset.

[0297] For another example, the electronic device 220 may be a laptop computer, and the electronic device 250 may be a headset. The laptop computer may be wirelessly connected to the headset, so that the user can listen to the audio and video played by the laptop computer through the headset, and can also realize voice communication or video communication with other users through the laptop computer and the headset.

[0298] For another example, the electronic device 230 may be a watch, and the electronic device 250 may be a headset. The watch may be wirelessly connected to the headset, so that the user can listen to the audio played by the watch through the headset, and can also communicate with other users by voice through the watch.

[0299] For another example, the electronic device 230 may be a mobile phone, and the electronic device 250 may be a headset. The mobile phone may be wirelessly connected to the headset, so that the user can listen to the audio and video played by the mobile phone through the headset, and can also communicate or video communicate with other users through the mobile phone and the headset.

[0300] Assume that electronic device 210, electronic device 220, electronic device 230, and electronic device 240 all want to occupy electronic device 250 to perform corresponding operations. For example, the earphone receives the audio sent by the watch and plays the audio. At the same time, the mobile phone is ready to occupy the earphone in order to answer the call through the earphone. If it is possible to determine whether to continue using the earphone to play the audio sent by the watch or to realize the call function with the mobile phone based on the specific scenario, it will help improve the user experience of using the earphone.

[0301] In one example, the electronic device 250 may be a speaker, and electronic devices around the speaker may be wirelessly connected to the speaker.

[0302] For example, the electronic device 210 may be a television, which may be wirelessly connected to a speaker, so that a user may listen to programs played by the television through the speaker.

[0303] For another example, the electronic device 220 may be a laptop computer, and the electronic device 250 may be a speaker. The laptop computer may be wirelessly connected to the speaker. The user may listen to the audio and video played by the laptop computer through the speaker; the user may also communicate with other users by voice or video through the laptop computer and the speaker; the user may also record the sound through the speaker to form a recording file, and store the recording file in the laptop computer.

[0304] For another example, the electronic device 230 may be a watch, and the electronic device 250 may be a speaker. The watch may be wirelessly connected to the speaker. The user may listen to the audio played by the watch through the speaker; the user may also communicate with other users through the watch; the user may also record the sound through the speaker to form a recording file, and store the recording file in the watch.

[0305] For another example, the electronic device 230 may be a mobile phone, and the electronic device 250 may be a speaker. The mobile phone may be wirelessly connected to the speaker. The user may listen to the audio and video played by the mobile phone through the speaker; the user may also realize voice communication or video communication with other users through the mobile phone and the speaker; the user may also record the sound through the speaker to form a recording file, and store the recording file in the mobile phone.

[0306] Assume that electronic device 210, electronic device 220, electronic device 230, and electronic device 240 all want to occupy electronic device 250 to implement corresponding operations. For example, a speaker receives audio sent by a TV and plays the audio. At the same time, a laptop is ready to occupy the speaker for the purpose of video chatting through the speaker. If it is possible to determine whether to continue using the speaker to play the audio sent by the TV or to implement a video call function with the laptop based on the specific scenario, it will help improve the user experience of using the speaker.

[0307] In one example, the electronic device 250 may be a camera, and the electronic devices around the camera may be wirelessly connected to the camera.

[0308] For example, the electronic device 210 may be a television, which may be wirelessly connected to the camera so that a user may watch the video captured by the camera through the television.

[0309] For another example, the electronic device 220 may be a laptop computer, and the electronic device 250 may be a camera. The laptop computer may be wirelessly connected to the camera. The user may watch the video captured by the camera through the mobile phone; the user may also realize video communication with other users through the laptop computer and the camera; the user may also capture images through the camera to form a multimedia file, and store the multimedia file in the laptop computer, and the multimedia file may be an image file or a video file.

[0310] For another example, the electronic device 230 may be a watch, and the electronic device 250 may be a camera. The watch may be wirelessly connected to the camera. The user may use the watch and the camera to achieve video communication with other users; the user may also use the camera to capture images to form multimedia files, and store the multimedia files in the watch. The multimedia files may be image files or video files.

[0311] For another example, the electronic device 230 may be a mobile phone, and the electronic device 250 may be a camera. The mobile phone may be wirelessly connected to the camera. The user may watch the video captured by the camera through the mobile phone; the user may also realize video communication with other users through the mobile phone and the camera; the user may also capture images through the camera to form a multimedia file, and store the multimedia file in the mobile phone, and the multimedia file may be an image file or a video file.

[0312] Assume that electronic device 210, electronic device 220, electronic device 230, and electronic device 240 all want to occupy electronic device 250 to perform corresponding operations. For example, a user is watching a video captured by a camera through a mobile phone. At the same time, a laptop is preparing to occupy the camera for video chat through the camera. If it is possible to determine whether to continue playing the video sent by the camera through the mobile phone or to implement a video call function with the laptop based on the specific scenario, it will help improve the user experience of using the camera.

[0313] Combination Figure 3 , describing a specific implementation method provided by the present application. With the benefit of the guidance and enlightenment presented in the foregoing description and the related drawings, those skilled in the art will think of many improvements and other embodiments of the present application. Therefore, it should be understood that the present application is not limited to the specific embodiments disclosed.

[0314] Computer 302 currently occupies earphone 303, and the user is using computer 302 and earphone 303 to play music 305. Afterwards, mobile phone 301 receives a call 304. Mobile phone 301 can search for earphone 303 and prepare to occupy earphone 303. In addition, mobile phone 301 can also broadcast a message to determine whether the earphone 303 is occupied by other devices. Computer 302 receives the message from mobile phone 301 and can send feedback information to mobile phone 301, so that mobile phone 301 can determine that there are other devices using the earphone 303, so mobile phone 301 needs to further confirm whether it can occupy the earphone 303. Mobile phone 301 can determine whether computer 302 is a trusted device based on the information related to computer 302 sent by computer 302. If so, it means that mobile phone 301 is matched with computer 302. Therefore, mobile phone 301 can occupy the earphone 303 and answer the call 304 through the earphone 303 node.

[0315] Figure 4 It is a schematic flow chart of a method for occupying equipment provided by the present application.

[0316] 401. A first device obtains information related to a second device, where the second device currently occupies a first device to be occupied, wherein the information related to the second device includes any one of the following: device information of the second device, a device matching result between the device information of the first device and the device information of the second device, user information of the second device, and a user matching result between the user information of the first device and the user information of the second device.

[0317] The first device may be, for example, a mobile phone, a tablet computer, a smart watch, a video player, a desktop computer, a television, etc.

[0318] The first device to be occupied may be, for example, headphones, speakers, a camera, etc.

[0319] The second device may be, for example, a mobile phone, a tablet computer, a smart watch, a video player, a desktop computer, a television, etc.

[0320] Example 1

[0321] The information related to the second device may include device information of the second device or user information of the second device.

[0322] That is, the first device may obtain the device information of the second device, and determine whether the device information of the first device matches the device information of the second device based on the device information of the first device and the device information of the second device. Alternatively, the first device may obtain the user information of the second device, and determine whether the user information of the first device matches the user information of the second device based on the user information of the first device and the user information of the second device.

[0323] Figure 5 (a) is a schematic flowchart of a method for obtaining information related to the second device (including device information of the second device or user information of the second device) provided in an embodiment of the present application.

[0324] 501a. The first device broadcasts a first message, where the first message is used to indicate that the first device is ready to occupy the first device to be occupied.

[0325] Accordingly, the second device may receive the first message broadcast by the first device.

[0326] 502a: The second device sends a second message to the first device in response to the first message, where the second message includes device information of the second device or user information of the second device, and the second message indicates that the first device to be occupied is currently occupied by the second device.

[0327] Correspondingly, the first device receives the second message sent by the second device.

[0328] That is, the first device may obtain device information of the second device or user information of the second device from the second device.

[0329] For example, the first device is a computer, the second device is a mobile phone, and the first device to be occupied is a headset. The computer can broadcast a first message to announce that the headset is ready to be occupied. After receiving the first message, the mobile phone currently occupying the headset can send a second message to the computer. The computer can receive the second message sent by the mobile phone, and the second message includes the device information of the mobile phone. The computer can determine that the headset is currently occupied by other devices based on the device information of the mobile phone. Further, the computer can match the device information of the computer with the device information of the mobile phone. If the match is successful, the mobile phone can be a trusted device of the computer. Similarly, the second message includes the user information of the mobile phone. The computer can determine that the headset is currently occupied by other devices based on the user information of the mobile phone. Further, the computer can match the user information of the computer with the user information of the mobile phone. If the match is successful, the mobile phone can be a trusted device of the computer.

[0330] Figure 5 (b) is a schematic flowchart of a method for obtaining information related to the second device (including device information of the second device or user information of the second device) provided in an embodiment of the present application.

[0331] 501b. The first device broadcasts a first message, where the first message is used to indicate that the first device is ready to occupy the first device to be occupied.

[0332] Accordingly, the first device to be occupied may receive the first message broadcast by the first device.

[0333] 502b: The first device to be occupied sends a third message to the first device in response to the first message, wherein the third message includes device information of the second device or user information of the second device, and indicates that the first device to be occupied is currently occupied by the second device.

[0334] Correspondingly, the first device receives the third message sent by the first device to be occupied.

[0335] That is, the first device may obtain the device information of the second device or the user information of the second device from the first device to be occupied.

[0336] For example, the first device is a computer, the second device is a mobile phone, and the first device to be occupied is a speaker. The computer can broadcast a first message to announce that it is ready to occupy the speaker. The speaker is currently occupied by the mobile phone. The speaker can send a third message to the computer, indicating that the speaker is occupied by other devices. The computer can receive the third message sent by the speaker, and the third message includes the device information of the mobile phone. The computer can determine that the speaker is currently occupied by other devices based on the device information of the mobile phone. Further, the computer can match the device information of the computer with the device information of the mobile phone. If the match is successful, the mobile phone can be a trusted device of the computer. Similarly, the third message includes the user information of the mobile phone. The computer can determine that the headset is currently occupied by other devices based on the user information of the mobile phone. Further, the computer can match the user information of the computer with the user information of the mobile phone. If the match is successful, the mobile phone can be a trusted device of the computer.

[0337] Optionally, the first message includes identification information of the first device to be occupied.

[0338] That is, when the second device receives the first message, it can determine, based on the identification information of the first device to be occupied, that the first device to be occupied by the first device is the device currently occupied by the second device. Furthermore, the second device can feed back the device information of the second device or the user information of the second device to the first device.

[0339] That is, the first device to be occupied receives the first message and can determine that the first device is ready to occupy the first device to be occupied, and then feeds back the device information or user information of the second device currently occupying the first device to be occupied to the first device.

[0340] Figure 5 (c) is a schematic flowchart of a method for obtaining information related to the second device (including device information of the second device or user information of the second device) provided in an embodiment of the present application.

[0341] 503. The first device sends a fourth message to the server, where the fourth message is used to indicate that the first device is ready to occupy the first device to be occupied.

[0342] Correspondingly, the server may receive the fourth message sent by the first device.

[0343] 504. The server sends a fifth message to the first device in response to the fourth message, where the fifth message includes device information of the second device or user information of the second device, and indicates that the first device to be occupied is currently occupied by the second device.

[0344] Correspondingly, the first device receives the fifth message sent by the server.

[0345] That is, the first device may obtain the device information of the second device or the user information of the second device from the server.

[0346] The server may also be referred to as a cloud server. That is, the first device may exchange data with the cloud server via a wireless communication protocol.

[0347] For example, the first device is a computer, the second device is a mobile phone, and the first device to be occupied is a camera. The computer can send a fourth message to the server to inform the server that the computer is ready to occupy the camera. The server can respond to the fourth message and send a fifth message to the computer to inform the computer that other devices are currently occupying the camera. The computer can receive the fifth message sent by the server, and the fifth message includes the device information of the mobile phone. The computer can determine that the camera is currently occupied by other devices based on the device information of the mobile phone. Further, the computer can match the device information of the computer with the device information of the mobile phone. If the match is successful, the mobile phone can be a trusted device of the computer. Similarly, the fifth message includes the user information of the mobile phone. The computer can determine that the headset is currently occupied by other devices based on the user information of the mobile phone. Further, the computer can match the user information of the computer with the user information of the mobile phone. If the match is successful, the mobile phone can be a trusted device of the computer.

[0348] Optionally, the fourth message includes identification information of the first device to be occupied.

[0349] That is, after receiving the fourth message, the server may feed back the device information or user information of the second device currently occupying the first device to be occupied to the first device according to the identification information of the first device to be occupied.

[0350] The first device to be occupied, the second device, and the server can all store the device information of the second device. Similarly, the first device to be occupied, the second device, and the server can all store the user information of the second device.

[0351] For example, the second device may send the device information of the second device to the first device to be occupied and the server, so that the first device to be occupied and the server may store the device information of the second device (such as the unique identification code of the second device).

[0352] For another example, the user information of the second device obtained by the second device can be sent to the first device to be occupied and the server, so that the first device to be occupied and the server can store the user information of the second device obtained by the second device (such as the electronic account information logged in on the second device).

[0353] In addition, due to the particularity of user information, user information can also be obtained by the first device to be occupied. The user information of the second device obtained by the first device to be occupied can be sent to the second device and the server, so that the second device, the first device to be occupied, and the server can all store the user information of the second device obtained by the first device to be occupied (such as the brain wave information, voiceprint information, and face information of the user using the first device to be occupied as mentioned above).

[0354] The device information of the second device may be, for example, a unique identification code (identity, ID) of the second device, a device name of the second device (an identifier that can be changed by a user and is used to identify the device), and the like.

[0355] In one example, the user information of the second device may refer to information of a user using the second device. For example, the user information of the second device may be user information collected or stored by the second device.

[0356] For example, the user information of the second device may refer to the electronic account information (such as an email account, real-name identity information, etc.) logged in on the second device.

[0357] In one example, since the second device currently occupies the first device to be occupied, the user can use the second device as well as the first device to be occupied. That is, the user who is using the second device should be the same user as the user who is using the first device to be occupied. Therefore, the user information of the second device can also refer to the information of the user who is using the first device to be occupied. That is, the user information of the second device can be the user information collected by the first device to be occupied during the process of the second device occupying the first device to be occupied.

[0358] For example, the first device to be occupied may be a headset having a brain wave detection function, and the information of the user using the first device to be occupied may be brain wave information of the user using the headset.

[0359] For another example, the first device to be occupied may be a headset with an auricle detection function, and the information of the user using the first device to be occupied may be auricle information of the user using the headset.

[0360] For another example, the first device to be occupied may be a speaker with a voiceprint collection function, and the information of the user using the first device to be occupied may be the voiceprint information of the user using the speaker.

[0361] For another example, the first device to be occupied may be a camera with a face collection function, and the information of the user using the first device to be occupied may be the face information of the user using the camera.

[0362] As described above, in method 500, through steps 501a, 502a, or 501b, 502b, or 503, 504, the first device can obtain information related to the second device.

[0363] Example 2

[0364] The information related to the second device may include a device matching result between the device information of the first device and the device information of the second device (hereinafter referred to as the device matching result), or a user matching result between the user information of the second device and the user information of the first device (hereinafter referred to as the user matching result).

[0365] That is, the first device can directly obtain the device matching result or the user matching result without obtaining the device information of the second device or the user information of the second device.

[0366] Figure 6 (a) is a schematic flowchart of a method for obtaining information related to a second device (including the device matching result or the user matching result) provided in an embodiment of the present application.

[0367] 601a. ​​The first device broadcasts a sixth message, where the sixth message includes device information of the first device or user information of the first device, and the sixth message is used to indicate that the first device is ready to occupy the first device to be occupied.

[0368] Accordingly, the second device may receive the sixth message broadcast by the first device.

[0369] 602a, the second device sends a seventh message to the first device in response to the sixth message, wherein, when the sixth message includes the device information of the first device, the seventh message includes the device matching result, or, when the sixth message includes the user information of the first device, the seventh message includes the user matching result.

[0370] Correspondingly, the first device receives the seventh message sent by the second device.

[0371] That is, the second device can obtain the device information of the first device and determine whether the device information of the first device matches the device information of the second device; or the second device can obtain the user information of the first device and determine whether the user information of the first device matches the user information of the second device.

[0372] For example, the first device is a computer, the second device is a mobile phone, and the first device to be occupied is a headset. The computer can broadcast a sixth message to announce that the headset is ready to be occupied, wherein the sixth message includes the device information of the computer. The mobile phone can determine that there are other devices ready to occupy the headset based on the sixth message. The mobile phone can determine the device matching result between the device information of the mobile phone and the device information of the computer, and feed the device matching result back to the computer. The computer can receive a seventh message sent by the mobile phone, and the seventh message includes the device matching result. The computer can determine that the headset is currently occupied by other devices based on the device matching result. Further, if the device matching result indicates that the matching is successful, the mobile phone can be a trusted device of the computer. Similarly, the sixth message includes the user information of the computer. The mobile phone can determine the user matching result between the user information of the mobile phone and the user information of the computer, and feed the user matching result back to the computer. The computer can receive a seventh message sent by the mobile phone, and the seventh message includes the user matching result. The computer can determine that the headset is currently occupied by other devices based on the user matching result. Further, if the user matching result indicates that the matching is successful, the mobile phone can be a trusted device of the computer.

[0373] Figure 6 (b) is a schematic flowchart of a method for obtaining information related to a second device (including the device matching result or the user matching result) provided in an embodiment of the present application.

[0374] 601b. The first device broadcasts a sixth message, where the sixth message includes device information of the first device or user information of the first device, and the sixth message is used to indicate that the first device is ready to occupy the first device to be occupied.

[0375] Accordingly, the first device to be occupied may receive the sixth message broadcast by the first device.

[0376] 602b, the first device to be occupied sends an eighth message to the first device in response to the sixth message, wherein, when the sixth message includes the device information of the first device, the eighth message includes the device matching result, or, when the sixth message includes the user information of the first device, the eighth message includes the user matching result.

[0377] Correspondingly, the first device receives the eighth message sent by the first device to be occupied.

[0378] That is to say, the first device to be occupied can obtain the device information of the first device and determine whether the device information of the first device matches the device information of the second device; or the first device to be occupied can obtain the user information of the first device and the user information of the second device, and determine whether the user information of the first device matches the user information of the second device.

[0379] For example, the first device is a computer, the second device is a mobile phone, and the first device to be occupied is a speaker. The mobile phone currently occupies the speaker, and the mobile phone sends the device information of the mobile phone to the speaker. The computer can broadcast a sixth message to announce that it is ready to occupy the speaker, wherein the sixth message includes the device information of the computer. The speaker can determine that there are other devices ready to occupy the speaker based on the sixth message. The speaker can determine the device matching result between the device information of the mobile phone and the device information of the computer, and feed the device matching result back to the computer. The computer can receive the eighth message sent by the speaker, and the eighth message includes the device matching result. The computer can determine that the speaker is currently occupied by other devices based on the device matching result. Further, if the device matching result indicates that the match is successful, the mobile phone can be a trusted device of the computer. Similarly, when the mobile phone occupies the speaker, the mobile phone can send the user information of the mobile phone to the speaker. The sixth message includes the user information of the computer. The speaker can determine the user matching result between the user information of the mobile phone and the user information of the computer, and feed the user matching result back to the computer, that is, the eighth message includes the user matching result. The computer can determine that the speaker is currently occupied by another device based on the user matching result. Further, if the user matching result indicates that the match is successful, the mobile phone can be a trusted device of the computer.

[0380] Optionally, the sixth message includes identification information of the first device to be occupied.

[0381] That is, the second device receives the sixth message and can determine, based on the identification information of the first device to be occupied, that the first device to be occupied by the first device is the device currently occupied by the second device. Further, the second device can feed back the device matching result or the user matching result to the first device.

[0382] That is, the first device to be occupied receives the sixth message and can determine that the first device is ready to occupy the first device to be occupied, and then feeds back the device matching result or the user matching result to the first device.

[0383] Figure 6 (c) is a schematic flowchart of a method for obtaining information related to a second device (including the device matching result or the user matching result) provided in an embodiment of the present application.

[0384] 603. The first device sends a ninth message to the server, where the ninth message includes device information of the first device or user information of the first device, and is used to indicate that the first device is ready to occupy the first device to be occupied.

[0385] Correspondingly, the server may receive the ninth message sent by the first device.

[0386] 604. The server sends a tenth message to the first device in response to the ninth message, wherein, when the ninth message includes device information of the first device, the tenth message includes the device matching result, or, when the ninth message includes user information of the first device, the tenth message includes the user matching result.

[0387] Correspondingly, the first device receives the tenth message sent by the server.

[0388] That is, the server can obtain the device information of the first device and the device information of the second device, and determine whether the user information of the first device matches the user information of the second device; or, the server can obtain the user information of the first device and the user information of the second device, and determine whether the user information of the first device matches the user information of the second device.

[0389] For example, the first device is a computer, the second device is a mobile phone, and the first device to be occupied is a speaker. The mobile phone currently occupies the speaker, and the mobile phone sends the device information of the mobile phone and the identification information of the speaker to the server. The computer can send a ninth message to the server to inform the server that the computer is ready to occupy the speaker, wherein the ninth message includes the device information of the computer. The server can determine that there are other devices ready to occupy the speaker based on the ninth message. The server can determine the device matching result between the device information of the mobile phone and the device information of the computer, and feed the device matching result back to the computer. The computer can receive the tenth message sent by the server, and the tenth message includes the device matching result. The computer can determine that the speaker is currently occupied by other devices based on the device matching result. Further, if the device matching result indicates that the match is successful, the mobile phone can be a trusted device of the computer. Similarly, in the case where the mobile phone occupies the speaker, the mobile phone can send the user information of the mobile phone to the server. The ninth message includes the user information of the computer. The server can determine the user matching result between the user information of the mobile phone and the user information of the computer, and feed the user matching result back to the computer, that is, the tenth message includes the user matching result. The computer can determine that the speaker is currently occupied by another device based on the user matching result. Further, if the user matching result indicates that the match is successful, the mobile phone can be a trusted device of the computer.

[0390] Optionally, the ninth message includes identification information of the first device to be occupied.

[0391] That is, after receiving the ninth message, the server may feed back the device matching result or user matching result corresponding to the first device to be occupied to the first device according to the identification information of the first device to be occupied.

[0392] As described above, in method 600, through steps 601a, 602a, or 601b, 602b, or 603, 604, the first device can obtain information related to the second device.

[0393] The following describes occupying the first device to be occupied.

[0394] Optionally, in the case that the first device to be occupied can only establish a wireless connection with one device, the first device to be occupied being unoccupied may mean that the first device to be occupied has not established a wireless connection with any device; the first device to be occupied being occupied by the target device may mean that the first device to be occupied has currently established a wireless connection with the target device.

[0395] The first device to be occupied may include a wireless communication path. The first device to be occupied establishes a wireless connection with the target device, which may mean that the target device occupies the wireless communication path of the first device to be occupied. The wireless communication path may be, for example, a Bluetooth path, a Wi-Fi path, etc.

[0396] In the case where the first device to be occupied establishes a wireless connection with the target device, the first device to be occupied can receive data sent by the target device, or the first device to be occupied can send data to the target device. For example, a mobile phone can establish a wireless connection with a headset, so that the headset can play the voice of the caller sent by the mobile phone, and send the voice of the person answering the call recorded by the headset to the mobile phone. For another example, a mobile phone can establish a wireless connection with a speaker, so that the speaker can play the audio sent by the mobile phone, and / or send the audio recorded by the speaker to the mobile phone. For another example, a mobile phone can establish a wireless connection with a camera, so that the camera can send the video or image taken by the camera to the mobile phone.

[0397] It should be noted that the first device to be occupied includes one or more media channels. The establishment of a wireless connection between the first device to be occupied and the target device means the following two situations: the target device establishes a wireless connection with the first device to be occupied, but does not occupy the one or more media channels of the first device to be occupied; the target device establishes a wireless connection with the first device to be occupied, and occupies at least one media channel of the first device to be occupied. Among them, for headphones, the one or more media channels may include an audio channel. For speakers, the one or more media channels may include an audio channel. For cameras, the one or more media channels may include an audio channel and a video channel.

[0398] For example, the target device is a mobile phone, and the first device to be occupied is a headset. The mobile phone establishes a wireless connection with the headset, and the mobile phone exchanges data through the Bluetooth channel of the headset. The audio playback service of the mobile phone occupies the audio channel of the headset, so the user can use the headset to play the audio file stored on the mobile phone.

[0399] For another example, the target device is a computer, and the first device to be occupied is a camera. The computer and the camera have established a wireless connection, and the computer exchanges data through the camera's Wi-Fi channel. The user is using the computer for work. None of the computer's services occupy the camera's video channel and audio channel. The camera is in standby mode and does not take any video or picture.

[0400] For another example, the target device is a TV, and the first device to be occupied is a speaker. The TV and the speaker have established a wireless connection, and the computer exchanges data through the Wi-Fi channel of the speaker. However, none of the TV's services occupy the speaker's audio channel. The computer does not play programs, videos, audio, or pictures, and the speaker does not receive audio data sent by the TV.

[0401] Optionally, before the first device acquires information related to the second device, the method further includes: the first device storing identification information of the first device to be occupied.

[0402] That is, the first device can scan the devices around the first device by broadcasting messages, wherein the devices around the first device may include devices that have established a wireless connection with the first device and devices that have never established a wireless connection with the first device. In a possible case, the devices that have never established a wireless connection with the first device require the user to manually connect; the first device can store the information of the devices that have established a wireless connection with the first device, so that the devices that have established a wireless connection with the first device can automatically establish a wireless connection with the first device.

[0403] Optionally, in the case where the first device to be occupied can establish wireless connections with multiple devices, the first device to be occupied being unoccupied may mean that the first device to be occupied has not established a wireless connection with any device, or any device that has established a wireless connection with the first device to be occupied has not occupied the media path of the first device to be occupied. The first device to be occupied being occupied by the target device may mean that the target device that has established a wireless connection with the first device to be occupied is occupying the media path of the first device to be occupied.

[0404] That is to say, the first device to be occupied includes multiple wireless communication paths. The first device and the second device can establish a wireless connection with the first device to be occupied at the same time. The first device and the second device can occupy two wireless communication paths of the first device to be occupied respectively. The second device occupying the first device to be occupied can refer to the second device occupying the wireless communication path and the media path of the first device to be occupied.

[0405] For example, the multiple devices that establish wireless connection with the headset include a mobile phone. Any of the multiple devices occupies the Bluetooth path of the headset. However, the mobile phone does not occupy the audio path of the headset. The mobile phone does not use the headset to play audio or record audio. Therefore, the headset is not occupied.

[0406] For another example, the devices that establish a wireless connection with a camera are a mobile phone and a tablet computer. Both the mobile phone and the tablet computer occupy the Wi-Fi path of the camera. The mobile phone occupies the video path and audio path of the camera and uses the camera to shoot videos and pictures, so the mobile phone is occupying the camera. However, the tablet computer does not occupy the video path and audio path of the camera, so the tablet computer does not occupy the camera.

[0407] 402: The first device determines whether the second device is a trusted device according to the information related to the second device.

[0408] The second device is a trusted device if at least one of the following conditions is met: the device information of the second device successfully matches the device information of the first device; and the user information of the second device successfully matches the user information of the first device.

[0409] The device information of the second device may be, for example, a unique identification code (identity, ID) of the second device, a device name of the second device (an identifier that can be changed by a user and is used to identify the device), and the like.

[0410] If the user information of the second device successfully matches the user information of the first device, it can be considered that the first device occupies the first device to be occupied based on the trusted device specified in advance by the user. Therefore, the first device occupying the first device to be occupied can be considered to be permitted by the same user, which meets the user's expectations and is conducive to reducing the number of operations of the user manually occupying the first device to be occupied.

[0411] For example, the first device may store a trusted device information list, which may include a unique identification code of the trusted device or a device name of the trusted device. If the unique identification code of the second device appears in the trusted device information list, it means that the device information of the second device successfully matches the device information of the first device.

[0412] If the user information of the second device matches the user information of the first device successfully, it can be considered that the user using the second device is the same user as the user using the first device. Therefore, the occupation of the first device to be occupied by the first device can be considered to be permitted by the same user, and basically will not cause the leakage of user privacy; and the user can still interact with the first device to be occupied, so the number of operations for the user to manually occupy the first device to be occupied can be reduced.

[0413] For example, the user information of the second device matches the user information of the first device, which may be that the electronic account information logged in on the second device is the same as the electronic account information logged in on the first device.

[0414] For another example, the user information of the second device matches the user information of the first device, which may be that the auricle shape of the user using the second device is the same as the auricle shape stored in the first device.

[0415] For another example, the user information of the second device matches the user information of the first device, which may be that the brain wave type and brain wave intensity of the user using the second device or the first device to be occupied are the same as the brain wave type and brain wave intensity stored in the first device. Brain wave types may include, for example: gamma waves - 38 times / second or more, extremely excited brain waves, beta waves - 14 to 38 times / second, relatively excited brain waves, alpha waves - 8 to 14 times / second, relaxed brain waves during meditation, theta waves - 4 to 7 times / second, half-asleep brain waves, delta waves - 0.5 to 3.5 times / second, deep sleep brain waves, etc. The brain wave type and brain wave intensity of the user using the second device may be the brain wave type and brain wave intensity stored in the second device, or the brain wave type and brain wave intensity collected by the first device to be occupied.

[0416] For another example, the user information of the second device matches the user information of the first device, which may be that the voiceprint information of the user using the second device matches the voiceprint information stored in the first device. The voiceprint information of the user using the second device may be the voiceprint information stored in the second device, or the voiceprint information collected by the first device to be occupied.

[0417] For another example, the user information of the second device matches the user information of the first device, which may be that the facial information of the user using the second device matches the facial information stored in the first device. The facial information of the user using the second device may be the facial information of the user stored in the second device, or the facial information collected by the first device to be occupied.

[0418] 403: When the second device is the trusted device, the first device occupies the first device to be occupied.

[0419] In the case where the first device to be occupied can only establish a wireless connection with one device, the first device occupying the first device to be occupied may refer to the first device establishing a wireless connection with the first device to be occupied. In the case where the first device to be occupied can establish a wireless connection with multiple devices, the first device occupying the first device to be occupied may refer to the first device establishing a wireless connection with the first device to be occupied, and the first device occupying the media path of the first device to be occupied.

[0420] In one example, when the first device to be occupied can only establish a wireless connection with one device, the process of the first device occupying the first device to be occupied may include: the first device to be occupied cuts off the wireless connection with the second device, the first device establishes a wireless connection with the first device to be occupied, and the first device occupies the media path of the first device to be occupied.

[0421] In one example, when a first device to be occupied can establish a wireless connection with multiple devices, the process of the first device occupying the first device to be occupied may include: the second device stops occupying the media path of the first device to be occupied, the first device establishes a wireless connection with the first device to be occupied, and the first device occupies the media path of the first device to be occupied.

[0422] Optionally, the method further includes: the first device displays first prompt information, wherein the first prompt information indicates that the first device to be occupied is occupied by the first device.

[0423] That is, the first device can remind the user that the occupation state of the first device to be occupied has switched (from being occupied by the second device to being occupied by the first device). Therefore, the user's misoperation of the first device to be occupied can be reduced, and the user can clearly know the occupation state of the first device to be occupied.

[0424] Optionally, the second device displays second prompt information, where the second prompt information indicates that the first device to be occupied is occupied by the first device.

[0425] That is, the second device can remind the user that the first device to be occupied is occupied by another device (for example, it switches from being occupied by the second device to being occupied by the first device). The user can learn the reason why the second device cannot continue to occupy the first device to be occupied based on the second prompt information. Therefore, the user's erroneous operation of the first device to be occupied can be reduced.

[0426] Below through Figure 7-Figure 21 , and the user information of the second device matches the user information of the first device as an example for explanation. Various specific implementations of the method 400 for occupying a device are described. With the benefit of the guidance and inspiration presented in the foregoing description and the related drawings, those skilled in the art will think of many improvements and other embodiments of the present application. Therefore, it should be understood that the present application is not limited to the specific embodiments disclosed.

[0427] First, take the first device broadcasting the first message and receiving the second message sent by the second device (i.e., steps 501a and 502a above) as an example, and combine Figure 7 , describing a specific embodiment of a method 500 for occupying a device. Many modifications and other embodiments of the present application will occur to those skilled in the art with the benefit of the guidance and enlightenment presented in the foregoing description and the related drawings. Therefore, it should be understood that the present application is not limited to the specific embodiments disclosed.

[0428] The first device 701 is a computer, the second device 702 is a mobile phone, and the first device to be occupied 703 is a speaker. The mobile phone 702 establishes a wireless connection with the speaker 703, and the computer 701 establishes a wireless connection with the speaker 703. The user is using the mobile phone 702 and the speaker 703 to answer a call 704. Afterwards, the user operates the computer 701 to play music. The computer 701 can broadcast a first message, and the first message includes the identification information of the speaker 703 to determine whether the speaker 703 is being used by other devices other than the computer 701. The mobile phone 702 receives the first message and can send a second message to the computer 701, and the second message includes the electronic account information logged in to the mobile phone 702. The computer 701 can receive the second message sent by the mobile phone 702 and determine that there are other devices using the speaker 703, so the computer 701 needs to further confirm whether the speaker 703 can be occupied. The computer 701 can match the electronic account information in the second message with the electronic account information logged in to the computer 701. If the match is successful, it means that the user using the computer 701 is the same user as the user using the mobile phone 702. Therefore, the computer 701 can occupy the speaker 703 and play the music 705 through the speaker 703.

[0429] In addition, if Figure 8 As shown, the computer 701 can display the first prompt information 7011: currently using the speaker to play songs. According to the first prompt information 7011, the user can know that the device occupying the speaker 703 is the computer 701, that is, the computer 701 is using the speaker 703 to play music.

[0430] In addition, if Fig. 9 As shown, the mobile phone 702 can display a second prompt message 7021: a device with the same account is currently occupying the speaker. After the speaker 703 stops talking, the user can understand the reason why the speaker 703 stops talking according to the second prompt message 7011 displayed on the mobile phone.

[0431] Optionally, the first device occupying the first device to be occupied includes: the first device occupying the first device to be occupied according to a detected first operation.

[0432] That is, the first device may occupy the first device to be occupied in response to the first operation. In other words, the timing for the first device to occupy the first device to be occupied may be determined by the first operation.

[0433] The first operation may be an operation performed by a user on the first device, the second device, or the first device to be occupied.

[0434] For example, the first device 901 has an incoming call but has not yet answered it, and the second device currently occupies the first waiting device and plays audio. Fig.10As shown, since the user using the first device 901 is the same user as the user using the second device, the second device may display a prompt message 902: swipe down to answer a call using the first device to be occupied. The first operation may be a gesture made by the user on the first device 901, and the gesture may be a gesture for answering a call using the first device to be occupied. The first device 901 may occupy the first device to be occupied according to the first operation, that is, after the first device 901 answers the call, the user may answer the call using the first device to be occupied.

[0435] For another example, the first device has an incoming call but has not yet answered it, and the second device 1001 currently occupies the first waiting device and plays audio. Fig.11 As shown, since the user using the first device and the user using the second device 1001 are the same user, the second device 1001 can display a prompt message 1002: whether to use the first device to be occupied to answer the call of the first device. The first operation can be a gesture made by the user on the second device 1001, and the gesture can be a gesture of agreeing that the first device to be occupied answers the call. The first device can obtain an indication of agreeing that the first device to be occupied answers the call from the second device 1001, so that the first device to be occupied can be occupied according to the first operation, that is, after the first device answers the call, the user can use the first device to be occupied to answer the call.

[0436] For another example, the first device to be occupied is a headset, and the headset does not detect that a user is wearing it. The first device 1101 has an incoming call but has not yet answered it, and the second device currently occupies the headset and plays audio. In other words, although the headset may be playing audio, the user is not wearing the headset, so the user cannot listen to the audio played by the second device through the headset. Fig.12 As shown, the first device 1101 may display a prompt message 1102: You can use the headset to make calls after wearing the headset. The first operation may be a detection result detected by the headset, and the detection result may be a detection result of the user completing the wearing action. The first device 1101 may obtain the detection result of the wearing action completion from the headset, so that the first device to be occupied may be occupied according to the first operation. That is, after the user wears the headset, the user may use the headset to answer the incoming call of the first device 1101.

[0437] It should be understood that the first operation is closely related to the specific device type, business type, application scenario, etc., and the present application does not limit the specific implementation method of the first operation. With the benefit of the guidance and enlightenment presented in the foregoing description and related drawings, those skilled in the art will think of many improvements and other embodiments of the present application. Therefore, it should be understood that the present application is not limited to the specific embodiments disclosed.

[0438] Optionally, when the second device belongs to the trusted device, the first device occupies the first device to be occupied, including: when the second device belongs to the trusted device and the priority of the first service is higher than the priority of the second service, the first device occupies the first device to be occupied, and the service occupying the first device to be occupied is changed from the second service to the first service, the first service is the service of the first device, and the second service is the service of the second device.

[0439] That is to say, if the user of the first device trusts the second device, and the first service of the first device is relatively more important or relatively more suitable, the first device can occupy the first device to be occupied. Therefore, in addition to reducing the risk of privacy leakage and reducing the operations related to switching the occupied state, more important services can be given priority to occupy the first device to be occupied, so it can better meet the needs of the scene and help improve the user experience.

[0440] According to a specific scenario, the priority of the second service is higher than the priority of the first service, which may include that the priority of the second service is equal to the priority of the first service.

[0441] The first service may be, for example, a call service, a video call service, an audio playback service, a video playback service, a recording service, a shooting service, etc.

[0442] The second service may be, for example, a call service, a video call service, an audio playback service, a video playback service, a recording service, a shooting service, etc.

[0443] Optionally, the priorities of the services are from high to low: call service, video call service, audio playback service, video playback service, recording service, and shooting service.

[0444] The priority of a service may be determined by, for example, service importance, device applicability, user preference, etc.

[0445] Optionally, before the first device occupies the first to-be-occupied device, the method further includes: the first device determines the priority of the first service according to at least one of an importance index of the first service, an applicability index of the first device, and a user preference index of the first service.

[0446] That is, the priority of the first service is determined by at least one of an importance index of the first service, an applicability index of the first device, and a user preference index of the first service.

[0447] The importance index of the first service corresponds to the importance of the service, the applicability index of the first device corresponds to the applicability of the device, and the user preference index of the first service corresponds to the user preference.

[0448] In one example, the first device determines the priority of the first service according to an importance index of the first service.

[0449] For example, the service importance indexes are from high to low: call service, video call service, recording service, shooting service, audio playback service, and video playback service. Therefore, when the first service is a call service and the second service is a recording service, the first device can occupy the first device to be occupied, so that the service with higher importance occupies the first device to be occupied.

[0450] For another example, the importance index of the call service = the importance index of the video call service > the importance index of the recording service = the importance index of the shooting service > the importance index of the audio playback service = the importance index of the video playback service. Therefore, when the first service is the recording service and the second service is the call service, the first device can occupy the first device to be occupied, so that the service with higher importance occupies the first device to be occupied.

[0451] It should be understood that the embodiments of the present application do not limit the specific value of the business importance index.

[0452] In one example, the first device determines the priority of the first service according to an applicability index of the first device.

[0453] For example, the first device is a mobile phone, the second device is a computer, and the first device to be occupied is a headset. Compared with a computer, the portability of a mobile phone is higher than that of a computer, and the headset also has high portability, so compared with the combination of a computer and a headset, the combination of a mobile phone and a headset can achieve higher portability.

[0454] For another example, the first device is a TV, the second device is a mobile phone, and the first device to be occupied is a speaker. Compared with a mobile phone, programs played on a TV can be watched by multiple people, while a mobile phone is more private. Therefore, for a speaker, the applicability of a TV may be higher than that of a mobile phone.

[0455] For another example, the first device is a computer, the second device is a mobile phone, and the first device to be occupied is a camera. The computer does not have a camera, but the mobile phone is provided with a camera. Since the computer has a higher demand for a camera, the applicability of the computer to the camera may be higher than that of the mobile phone.

[0456] It should be understood that the embodiments of the present application do not limit the specific value of the device applicability index.

[0457] In one example, the first device determines the priority of the first service according to a user preference index of the first service.

[0458] Since the user of the first device and the user of the second device are the same user, the user preference index of the first service is comparable to the user preference index of the second service. When the user preference index of the first service is higher than the user preference index of the second service, the first service occupying the first to-be-occupied device occupied by the second service can be more in line with the user's preference.

[0459] For example, the first device is a mobile phone, the second device is a computer, and the first device to be occupied is a headset. The first service is an audio playback service, and the second service is a video playback service. Compared with using a headset to play a video, the user prefers to use a headset to play audio, so the mobile phone occupying the headset is more in line with the user's preference.

[0460] For another example, the first device is a mobile phone, the second device is a computer, and the first device to be occupied is a speaker. The first service is a recording service, and the second service is an audio playback service. Since using a computer or a speaker to play audio will affect the recording effect of the mobile phone, and the recording effect of the speaker is higher than that of the mobile phone, it is more in line with the user's preference for the mobile phone to occupy the speaker.

[0461] For another example, the first device is a computer, the second device is a TV, and the first device to be occupied is a camera. The first service is a video shooting service, and the second service is a picture shooting service. Since the video shooting service can obtain more picture information, users prefer to use cameras to shoot videos, so the computer occupying the camera is more in line with the user's preference.

[0462] It should be understood that the embodiments of the present application do not limit the specific value of the user preference index.

[0463] The service priority may be, for example, the sum of the importance index of the service, the applicability index of the device, and the user preference index of the service.

[0464] It should be understood that the first device can obtain the priority information of the second service to determine whether the priority of the first service is higher than the priority of the second service. Alternatively, the first device can obtain a priority comparison result, which is a comparison result of the priority of the first service and the priority of the second service.

[0465] For example, the first device may obtain the priority information of the second device from one or more of the second device, the first device to be occupied, and a server.

[0466] For another example, the first device may send priority information of the first service to the second device (or the first device to be occupied, or the server), and obtain the priority comparison result from the second device (or the first device to be occupied, or the server).

[0467] like Fig.13 As shown, the first device 1201 is a computer, the second device 1202 is a mobile phone, and the first device to be occupied 1203 is a camera. The mobile phone 1202 is using the camera 1203 to make a video call 1204. The computer 1201 receives a video call request. Among them, since a small camera is installed on the mobile phone, the computer may not be installed with a camera, so the priority of the mobile phone video call service may be lower than the priority of the computer video call service. The computer 1201 can broadcast a first message, and the first message includes the identification information of the camera 1203 to determine whether the camera 1203 is being used by other devices other than the computer 1201. The camera 1203 receives the first message and can send a third message to the computer 1201, and the third message includes the collected face information and the mobile phone video call service information occupying the camera 1203. The computer 1201 can receive the third message sent by the camera 1203, and determine that there are other devices using the camera 1203, so the computer 1201 needs to further confirm whether the camera 1203 can be occupied. The computer 1201 may match the facial information in the third message with the facial information stored in the computer 1201. If the match is successful and the priority of the mobile phone video call service is lower than the priority of the computer video call service, the computer 1201 may occupy the camera 1203 and make a video call 1205 through the camera 1203. Optionally, the mobile phone may activate the small camera to avoid disconnection of the mobile phone video call.

[0468] In addition, if Fig.14 As shown, the computer 1201 can display the first prompt information 12011: the camera video call is currently being used. According to the first prompt information 12011, the user can know that the device occupying the camera 1203 is the computer 1201, that is, the computer 1201 is using the camera 1203 to play music.

[0469] In addition, if Fig.15 As shown, the mobile phone 1202 can display a second prompt message 12021: Currently, a device with the same account has occupied the camera, please use the front camera for video calls. The user can continue the video call using the front camera according to the second prompt message 12011 displayed on the mobile phone.

[0470] Optionally, when the second device belongs to the trusted device and the priority of the first service is lower than the priority of the second service, the first device occupies the first device to be occupied according to the detected second operation, and the service occupying the first device to be occupied is changed from the second service to the first service, the first service is the service of the first device, and the second service is the service of the second device.

[0471] Optionally, when the first device fails to obtain information related to the second device, or when the first device determines that the second device is not a trusted device based on the information related to the second device, the first device occupies the first device to be occupied based on the detected second operation.

[0472] That is to say, when it is impossible to determine whether the second device is a trusted device, the first device to be occupied can be occupied according to the user's operation. When it is impossible to determine whether the second device is a trusted device, the first device responds to the operation and occupies the first device to be occupied, which can improve the flexibility of switching the occupation state of the first device to be occupied.

[0473] like Fig.16 As shown, the first device 1501 is a computer, the second device 1502 is a mobile phone, and the first to-be-occupied device 1503 is a headset. The mobile phone 1502 has established a wireless connection with the headset 1503, and the computer 1501 has established a wireless connection with the headset 1503. The mobile phone 1502 is using the headset 1503 to play music 1505. The mobile phone 1502 can send a message to the server 1504, and the message may include the user information of the mobile phone 1502 and the identification information of the headset 1503. Afterwards, the computer 1501 receives a video call request. The computer 1501 can send a ninth message to the server 1504, and the ninth message includes the identification information of the headset 1503 and the user information of the computer 1501 to determine whether the headset 1503 is being used by other devices other than the computer 1501. The server 1504 receives the ninth message,

[0474] A possible scenario, such as Fig.17As shown, the server 1504 may send a tenth message to the computer 1501, and the tenth message includes a matching result of the user information of the mobile phone 1502 and the user information of the computer 1501. The computer 1501 may receive the tenth message sent by the server 1504, and determine that there are other devices using the headset 1503, so the computer 1501 needs to further confirm whether the headset 1503 can be occupied. In the case where the matching result indicates that the user information of the mobile phone 1502 and the user information of the computer 1501 fail to match, it means that the user of the headset 1503 is different from the user of the computer 1501. The computer 1501 may display a prompt message: a device not belonging to the same account is occupying the headset, whether to connect the video call. The user may instruct the computer 1501 to occupy or not occupy the headset 1503 through operation. Therefore, the computer 1501 occupies the headset 1503 according to the second operation 15011 instructing the computer 1501 to occupy the headset 1503. Fig.17 A user interface diagram is shown before the computer 1501 is connected to a video call. Fig.16 A user interface diagram is shown after the computer 1501 is connected to a video call.

[0475] A possible scenario, such as Fig.18 As shown, in addition to sending the user information of the mobile phone 1502 to the server 1504, the mobile phone 1502 can also send the service information of the mobile phone 1502 to the server 1504. The ninth message also includes the service information of the computer 1501. The server 1504 can send the tenth message to the computer 1501, and the tenth message includes the user matching result and the priority comparison result. The user matching result indicates that the user information of the mobile phone 1502 matches the user information of the computer 1501 successfully, and the priority comparison result indicates that the priority of the mobile phone service (audio playback service) is higher than the priority of the computer service (video call service). The computer 1501 can receive the tenth message sent by the server 1504. According to the tenth message, the computer 1501 displays a prompt message: the important service is occupying the headset, whether to connect the video call. The user can instruct the computer 1501 to occupy or not occupy the headset 1503 through operation. Therefore, the computer 1501 occupies the headset 1503 according to the second operation 15012 that instructs the computer 1501 to occupy the headset 1503. Fig.18 A user interface diagram is shown before the computer 1501 is connected to a video call. Fig.16 A user interface diagram is shown after the computer 1501 is connected to a video call.

[0476] 404: When the first device determines, based on the information related to the second device, that the second device is not a trusted device, the first device gives up occupying the first device to be occupied.

[0477] That is, if the second device is not a trusted device, it can be considered that the first device preempting the first device currently occupied by the second device is not a user-trusted behavior. Therefore, the first device gives up occupying the first device to be occupied, which meets the user's expectations.

[0478] In an example, the second device is not a trusted device, which may mean that the device information of the trusted devices of the first device does not include the device information of the second device.

[0479] In an example, the second device is not a trusted device, which may mean that the user indicated by the user information of the second device is different from the user indicated by the user information of the first device.

[0480] For example, the user information of the second device is electronic account information 1, and the user information of the first device is electronic account information 2. Electronic account information 1 corresponds to user 1, and electronic account information 2 corresponds to user 2, and user 1 and user 2 are different.

[0481] For another example, the user information of the second device is face information 1, and the user information of the first device is face information 2. Face information 1 corresponds to user 1, face information 2 corresponds to user 2, and user 1 and user 2 are different.

[0482] In an example, the second device is not a trusted device, which may mean that the first device cannot identify information related to the second device.

[0483] For example, the first device broadcasts a first message and receives a second message sent by a second device, the second message including user information of the second device, the user information being brain wave information. However, the first device does not store user information related to brain waves, and therefore, the first device cannot match the user information of the second device with the user information of the first device.

[0484] 405. When the second device belongs to the trusted device and the priority of the first service is lower than the priority of the second service, the first device gives up occupying the first device to be occupied. The first service is the service that the first device is going to occupy the first device to be occupied, and the second service is the service that the second device currently occupies the first device to be occupied.

[0485] That is to say, if the second device is a trusted device and the priority of the first service is lower than that of the second service, the first device can abandon the first device to be occupied. Therefore, it can help reduce the risk of leaking user privacy, and the switching of the occupied state can better meet the needs of the scene, which is conducive to improving the user experience.

[0486] According to a specific scenario, the priority of the first service is lower than the priority of the second service, which may include that the priority of the second service is equal to the priority of the first service.

[0487] It should be noted that the priority of the first service is lower than the priority of the second service, which may include that the first device does not obtain the priority comparison result, which is the comparison result of the priority of the second service and the priority of the first service. Since the first device cannot obtain the priority comparison result, that is, the first device cannot confirm that the priority of the first service is definitely higher than the priority of the second service, it can be considered that the priority of the first service is lower than the priority of the second service.

[0488] For example, the first device sends a fourth message to the server, the fourth message including information about the first service, and receives a twelfth message sent by the server, the twelfth message indicating that the occupied state of the first device to be occupied is a non-idle state. In addition, the first device cannot obtain the priority comparison result or information about the second service from the first device to be occupied, the second device, or the server, so the first device cannot confirm that the priority of the first service is definitely higher than the priority of the second service. Therefore, it can be considered that the priority of the first service is lower than the priority of the second service.

[0489] Optionally, the method further includes: the first device displays third prompt information, where the third prompt information indicates the reason why the first device gives up occupying the first device to be occupied.

[0490] That is to say, the first device can remind the user the reason why the first device cannot automatically occupy the first device to be occupied, so that the user can adapt to various scenarios in which the first device automatically occupies the first device to be occupied, and various scenarios in which the first device cannot automatically occupy the first device to be occupied according to the third prompt information.

[0491] In one example, the reason why the first device gives up occupying the first device to be occupied includes a failure in matching user information of the second device with user information of the first device.

[0492] In an example, the reason why the first device gives up occupying the first device to be occupied includes that the priority of the first service is lower than the priority of the second service.

[0493] like Fig.19As shown, the first device 1801 is a computer, the second device 1802 is a mobile phone, and the first device to be occupied 1803 is a headset. The mobile phone 1802 has established a wireless connection with the headset 1803, and the computer 1801 has established a wireless connection with the headset 1803. The mobile phone 1802 is using the headset 1803 to play music 1805. The mobile phone 1802 can send a message to the server 1804, and the message may include user information of the mobile phone 1802 and identification information of the headset 1803. Afterwards, the computer 1801 is operated to play music. The computer 1801 can send a fourth message to the server 1804, and the fourth message includes the identification information of the headset 1803 to determine whether the headset 1803 is being used by other devices other than the computer 1801. The server 1804 receives the fourth message.

[0494] In one possible scenario, the server 1804 may send a fifth message to the computer 1801, and the fifth message includes the user information of the mobile phone 1802. The computer 1801 may receive the fifth message sent by the server 1804, and determine that there are other devices using the headset 1803, so the computer 1801 needs to further confirm whether the headset 1803 can be occupied. The computer 1801 may match the user information of the mobile phone 1802 with the user information of the computer 1801. If the match fails, it means that the user of the headset 1803 is different from the user of the computer 1801. The computer 1801 may give up occupying the headset 1803.

[0495] In addition, if Fig. 20 As shown, the computer 1801 can display a third prompt message 18011: Unable to connect to the headset due to different accounts. The user can learn the reason why the computer 1801 cannot use the headset to play music according to the third prompt message 18011.

[0496] In one possible scenario, server 1804 may send a fifth message to computer 1801, the fifth message including user information of mobile phone 1802 and service information of mobile phone 1802 (the mobile phone service is a music playing service). Computer 1801 may receive the fifth message sent by server 1804, determine that the user information of mobile phone 1802 matches the user information of computer 1801 successfully, and the priority of the computer service (music playing service) is the same as the priority of the mobile phone service. If computer 1801 occupies the headset, it may introduce the problem of frequent switching, so computer 1801 may give up occupying headset 1803.

[0497] In addition, if Fig.21 As shown, the computer 1801 may display a third prompt message 18012: unable to connect to the headset due to other important services. The user may learn the reason why the computer 1801 cannot use the headset to play music based on the third prompt message 18012.

[0498] It should be understood that in method 400, through steps 401, 402, or 401, 403, or 401, 404, the first device can execute the method of occupying a device provided in the embodiment of the present application, thereby reducing user operations and improving user experience.

[0499] Fig. 22 It is a schematic flow chart of a method for occupying equipment provided by the present application.

[0500] 2101. A first device determines that a first device to be occupied is currently occupied by a second device, and the first device is ready to occupy the first device to be occupied.

[0501] The first device may broadcast a message through a wireless network protocol to search for occupiable devices around the first device. When the first device detects the first device to be occupied, it may receive a message reflecting the occupancy status of the first device to be occupied. For example, the second device currently occupying the first device to be occupied may send a message to the first device to inform the first device that the first device to be occupied is occupied. For another example, the first device to be occupied may send a message to the first device to inform the first device that the first device to be occupied is occupied.

[0502] 2102, the first device sends a target message to obtain information related to the second device, and the information related to the second device includes any one of the following: device information of the second device, a device matching result between the device information of the first device and the device information of the second device, user information of the second device, and a user matching result between the user information of the first device and the user information of the second device.

[0503] Since the first device is ready to occupy the first device to be occupied, the first device may inquire about the device information of the second device to be occupied, so as to determine whether the condition for occupying the first device to be occupied is met.

[0504] 2103. When the first device fails to obtain information related to the second device, the first device displays third prompt information, where the third prompt information is used to indicate that the second device does not belong to the trusted device.

[0505] Since it is impossible to obtain information related to the second device, that is, it is impossible to confirm whether the second device is a trusted device, the first device can determine that the second device is not a trusted device, that is, it does not meet the conditions for preempting the first device to be occupied.

[0506] For example, the first device broadcasts a target message and receives a message sent by the first device to be occupied, which indicates that the first device to be occupied is currently occupied by the second device. After that, the first device cannot obtain information related to the second device from the first device to be occupied, the second device, and the server, so the first device can determine that the second device is not a trusted device.

[0507] Fig.23 It is a schematic flow chart of a method for occupying equipment provided by the present application.

[0508] 2201. The second device obtains information related to the first device, wherein the first device is ready to occupy a first device to be occupied, and the first device to be occupied is currently occupied by the second device, and the information related to the first device includes any one of the following: device information of the first device, a device matching result between the device information of the first device and the device information of the second device, user information of the first device, and a user matching result between the user information of the first device and the user information of the second device.

[0509] The first device may be, for example, a mobile phone, a tablet computer, a smart watch, a video player, a desktop computer, a television, etc.

[0510] The first device to be occupied may be, for example, headphones, speakers, a camera, etc.

[0511] The second device may be, for example, a mobile phone, a tablet computer, a smart watch, a video player, a desktop computer, a television, etc.

[0512] Example 1

[0513] The information related to the first device may include device information of the first device or user information of the first device.

[0514] That is, the second device can obtain the device information of the first device, and determine whether the device information of the first device matches the device information of the second device based on the device information of the first device and the device information of the second device. The second device can obtain the user information of the first device, and determine whether the user information of the first device matches the user information of the second device based on the user information of the first device and the user information of the second device.

[0515] In one example, the second device obtains information related to the first device, including: the second device receives the eleventh message sent by the first device, the eleventh message includes the device information of the first device and the identification information of the first device to be occupied, or the eleventh message includes the user information of the first device and the identification information of the first device to be occupied.

[0516] Correspondingly, the first device sends the eleventh message to the second device.

[0517] That is to say, the second device can obtain the device information of the first device or the user information of the first device from the first device. In the case that the first device is ready to occupy the first device to be occupied, the first device can broadcast the identification information of the first device to be occupied and the device information of the first device, and the second device occupying the first device to be occupied can determine that the first device is ready to occupy the first device to be occupied based on the identification information of the first device to be occupied and the device information of the first device, and then determine whether the device information of the first device matches the device information of the second device. Alternatively, the first device can broadcast the identification information of the first device to be occupied and the user information of the first device, and the second device occupying the first device to be occupied can determine that the first device is ready to occupy the first device to be occupied based on the identification information of the first device to be occupied and the user information of the first device, and then determine whether the user information of the first device matches the user information of the second device.

[0518] In one example, the second device obtains information related to the first device, including: the second device receives the eleventh message sent by the server, the eleventh message includes the device information of the first device and the identification information of the first device to be occupied, or the eleventh message includes the user information of the first device and the identification information of the first device to be occupied.

[0519] Correspondingly, the server sends the eleventh message to the second device.

[0520] That is, the second device can obtain the device information of the first device or the user information of the first device from the server. For example, in the process of the second device occupying the first device to be occupied, the second device can send the identification information of the first device to be occupied to the server. In the case where the first device is ready to occupy the first device to be occupied, the first device can send the device information of the first device and the identification information of the first device to be occupied to the server. The server can therefore forward the device information of the first device to the second device, so that the second device can determine that the first device is ready to occupy the first device to be occupied, and then determine whether the device information of the first device matches the device information of the second device. For another example, in the process of the second device occupying the first device to be occupied, the second device can send the identification information of the first device to the server. In the case where the first device is ready to occupy the first device to be occupied, the first device can send the user information of the first device and the identification information of the first device to be occupied to the server. The server can therefore forward the user information of the first device to the second device, so that the second device can determine that the first device is ready to occupy the first device to be occupied, and then determine whether the user information of the first device matches the user information of the second device.

[0521] The server may also be referred to as a cloud server. That is, the second device may exchange data with the cloud server via a wireless communication protocol.

[0522] In one example, the second device obtains information related to the first device, including: the second device receives a twelfth message sent by the first device to be occupied, the twelfth message includes device information of the first device, or the twelfth message includes user information of the first device.

[0523] Correspondingly, the first device to be occupied sends the twelfth message to the second device.

[0524] That is to say, the second device can obtain the device information of the first device or the user information of the first device from the first device to be occupied. For example, when the first device is ready to occupy the first device to be occupied, the first device can send the device information of the first device to the first device to be occupied, and the first device to be occupied can therefore forward the device information of the first device to the second device, and the second device can therefore determine that the first device is ready to occupy the first device to be occupied, and further determine whether the device information of the first device matches the device information of the second device. When the first device is ready to occupy the first device to be occupied, the first device can send the user information of the first device to the first device to be occupied, and the first device to be occupied can therefore forward the user information of the first device to the second device, and the second device can therefore determine that the first device is ready to occupy the first device to be occupied, and further determine whether the user information of the first device matches the user information of the second device.

[0525] The device information of the second device may be, for example, a unique identification code (identity, ID) of the second device, a device name of the second device (an identifier that can be changed by a user and is used to identify the device), and the like.

[0526] In an example, the user information of the first device may refer to information of a user using the first device.

[0527] For example, the user information of the first device may refer to the electronic account information (such as email account, real-name identity information, etc.) logged in on the first device.

[0528] In one example, since the first device may have occupied the first device to be occupied, the user can use the first device and the first device to be occupied. That is, the user using the first device should be the same user as the user using the first device to be occupied. Therefore, the user information of the first device may also refer to the information of the user using the first device to be occupied.

[0529] For example, the first device to be occupied may be a headset having a brain wave detection function, and the information of the user using the first device to be occupied may be brain wave information of the user using the headset.

[0530] For another example, the first device to be occupied may be a speaker with a voiceprint collection function, and the information of the user using the first device to be occupied may be the voiceprint information of the user using the speaker.

[0531] For another example, the first device to be occupied may be a camera with a face collection function, and the information of the user using the first device to be occupied may be the face information of the user using the camera.

[0532] Example 2

[0533] The information related to the first device may include a device matching result between the device information of the first device and the device information of the second device (hereinafter referred to as the device matching result), or a user matching result between the user information of the second device and the user information of the first device (hereinafter referred to as the user matching result).

[0534] That is to say, the second device can directly obtain the device matching result or the user matching result without obtaining the device information of the first device or the user information of the first device.

[0535] In one example, before the second device obtains the information related to the first device, the method also includes: the second device sends the device information of the second device to the first device; the second device obtains the information related to the first device, including: the second device receives the device matching result sent by the first device.

[0536] Correspondingly, the first device receives the device information of the second device sent by the second device, and sends the device matching result to the second device.

[0537] Similarly, before the second device obtains the information related to the first device, the method also includes: the second device sends the user information of the second device to the first device; the second device obtains the information related to the first device, including: the second device receives the user matching result sent by the first device.

[0538] Correspondingly, the first device receives the user information of the second device sent by the second device, and sends the user matching result to the second device.

[0539] That is to say, when the first device is ready to occupy the first device to be occupied, the first device may broadcast a message including the identification information of the first device to be occupied. The second device receives the message and may determine that the first device is ready to occupy the first device to be occupied. The second device may send the device information of the second device to the first device, so that the first device may determine the device matching result and may feed back the device matching result to the second device. Thus, the second device may receive the device matching result sent by the first device. Similarly, the second device may send the user information of the second device to the first device, so that the first device may determine the user matching result and may feed back the user matching result to the second device. Thus, the second device may receive the user matching result sent by the first device.

[0540] In one example, the second device acquires information related to the first device, including: the second device receives the user matching result or the device matching result sent by the first device to be occupied.

[0541] Correspondingly, the first device to be occupied sends the user matching result or the device matching result to the second device.

[0542] Take user information as an example. In the process of the second device occupying the first device to be occupied, the first device to be occupied can collect user information to obtain the user information of the second device, or the second device can send the user information of the second device to the first device to be occupied. In the case where the first device is ready to occupy the first device to be occupied, the first device can broadcast a message including the identification information of the first device to be occupied. The first device to be occupied receives the message and can determine that the first device is ready to occupy the first device to be occupied. In one possible case, the first device to be occupied can send a message containing the user information of the second device to the first device, so that the first device can determine the user matching result and can feed back the user matching result to the second device. In another possible case, the first device to be occupied can match the user information of the first device with the user information of the second device, and can feed back the user matching result to the second device. Thus, the second device can receive the user matching result sent by the first device.

[0543] In one example, before the second device obtains information related to the first device, the method also includes: the second device sends device information of the second device to a server; the second device obtains information related to the first device, including: the second device receives the device matching result sent by the server.

[0544] In one example, before the second device obtains information related to the first device, the method also includes: the second device sends user information of the second device to a server; the second device obtains information related to the first device, including: the second device receives the user matching result sent by the server.

[0545] Take user information as an example. In the process of the second device occupying the first device to be occupied, the second device can send the user information of the second device to the server device. The server receives the message sent by the first device including the identification information of the first device to be occupied and the user information of the first device, and can determine that the first device is ready to occupy the first device to be occupied. The server can match the user information of the first device with the user information of the second device, and can feed back the user matching result to the second device. Thus, the second device can receive the user matching result sent by the server.

[0546] The specific implementation of step 2201 can refer to Figure 4 Step 401 in the illustrated embodiment need not be described in detail here.

[0547] 2202. The second device determines whether the first device is a trusted device based on the information related to the first device.

[0548] The first device being a trusted device needs to meet at least one of the following conditions: the device information of the second device successfully matches the device information of the first device; the user information of the second device successfully matches the user information of the first device.

[0549] The specific implementation of step 2202 can refer to Figure 4 Step 402 in the illustrated embodiment need not be described in detail here.

[0550] 2203: In a case where the first device is the trusted device, the second device gives up occupying the first device to be occupied.

[0551] The second device gives up occupying the first device to be occupied, so that the first device to be occupied can be temporarily in a state of not being occupied by any device, so that the first device can occupy the first device to be occupied. If the first device is a trusted device, it can be considered that the first device occupies the first device to be occupied based on the trusted device specified in advance by the user. Therefore, the first device occupying the first device to be occupied can be considered to be permitted by the same user, which meets the user's expectations and is conducive to reducing the number of operations of the user manually occupying the first device to be occupied.

[0552] In the case where the first device to be occupied can only establish a wireless connection with one device, the second device abandons occupying the first device to be occupied, which may mean that the second device cuts off the wireless connection with the first device to be occupied. In the case where the first device to be occupied can establish a wireless connection with multiple devices, the second device abandons occupying the first device to be occupied, which may mean that the second device stops occupying the media path of the first device to be occupied, or cuts off the wireless connection with the first device to be occupied.

[0553] Optionally, the second device giving up occupying the first device to be occupied includes: the second device giving up occupying the first device to be occupied according to a detected first operation.

[0554] That is, the second device may respond to the first operation and give up occupying the first device to be occupied. In other words, the timing for the second device to give up occupying may be determined by the first operation.

[0555] The first operation may be an operation performed by a user on the first device, the second device, or the first device to be occupied.

[0556] Optionally, when the first device is a trusted device, the second device gives up occupying the first device to be occupied, including: when the first device is a trusted device and the priority of the first service is higher than the priority of the second service, the second device gives up occupying the first device to be occupied, and the service occupying the first device to be occupied is changed from the second service to the first service, the first service is the service of the first device, and the second service is the service of the second device.

[0557] That is to say, if the user of the second device trusts the first device, and the service of the first device is relatively more important or relatively more suitable, the second device can give up occupying the first device to be occupied, so that the first device can occupy the first device to be occupied. Therefore, in addition to reducing the risk of privacy leakage and reducing the operations related to switching the occupied state, more important services can also occupy the first device to be occupied first, which is more in line with the needs of the scene and is conducive to improving the user experience. The priority of the service has been introduced in detail above, so there is no need to repeat it here.

[0558] Optionally, when the first device is a trusted device and the priority of the first service is lower than the priority of the second service, or when the second device determines that the first device is not a trusted device based on the information related to the first device, the second device gives up occupying the first device to be occupied based on the detected second operation.

[0559] Optionally, when the first device is a trusted device and the priority of the first service is lower than that of the second service, the second device gives up occupying the first device to be occupied based on the detected second operation, and the service occupying the first device to be occupied is changed from the second service to the first service, the first service is the service of the first device, and the second service is the service of the second device.

[0560] That is to say, if it is not possible to determine whether the first device is a trusted device, the first device to be occupied can be abandoned according to the user's operation, so that the first device can occupy the first device to be occupied. If it is not possible to determine whether the first device is a trusted device, the second device responds to the operation and abandons the occupation of the first device to be occupied, which can improve the flexibility of occupying the first device to be occupied.

[0561] The specific implementation of step 2203 can refer to Figure 4 Step 403 in the illustrated embodiment need not be described in detail here.

[0562] 2204. When the first device determines that the first device is not a trusted device based on the information related to the second device, or when the second device does not obtain the information related to the first device, the second device continues to occupy the first device to be occupied.

[0563] That is, if the first device is not a trusted device, it can be considered that the first device's occupation of the first device currently occupied by the second device is not a user-trusted behavior. Therefore, the second device continues to occupy the first device to be occupied, which meets the user's expectations.

[0564] The specific implementation of step 2204 can refer to Figure 4 Step 404 in the illustrated embodiment need not be described in detail here.

[0565] 2205. When the first device is a trusted device and the priority of the first service is lower than the priority of the second service, the second device continues to occupy the first device to be occupied. The first service is the service that the first device is preparing to occupy the first device to be occupied, and the second service is the service that the second device currently occupies the first device to be occupied.

[0566] That is to say, if the first device is a trusted device and the priority of the first service is lower than that of the second service, the second device can continue to occupy the first device to be occupied. Therefore, it can help reduce the risk of leaking user privacy, and the switching of the occupied state can better meet the needs of the scene, which is conducive to improving the user experience.

[0567] Optionally, the method further includes: the second device displays fourth prompt information, where the fourth prompt information indicates the reason why the second device continues to occupy the first device to be occupied.

[0568] That is to say, the second device can remind the user the reason why the second device continues to occupy the first device to be occupied, so that the user can adapt to various scenarios in which the second device occupies the first device to be occupied, and various scenarios in which the second device cannot continue to occupy the first device to be occupied according to the fourth prompt information.

[0569] In one example, the reason why the second device continues to occupy the first device to be occupied includes that user information of the second device fails to match user information of the first device.

[0570] In an example, the reason why the second device continues to occupy the first device to be occupied includes that the priority of the first service is lower than the priority of the second service.

[0571] The specific implementation of step 2205 can refer to Figure 4 Step 405 in the illustrated embodiment need not be described in detail here.

[0572] Fig.24 It is a schematic flow chart of a method for occupying equipment provided by the present application.

[0573] 2401. A first device to be occupied obtains information related to a first device and a second device. The first device to be occupied is currently occupied by the second device. The first device is ready to occupy the first device to be occupied. The information related to the first device and the second device includes any one of the following: device information of the first device and device information of the second device; a device matching result between the device information of the first device and the device information of the second device; user information of the first device and user information of the second device; and a user matching result between the user information of the first device and the user information of the second device.

[0574] The first device may be, for example, a mobile phone, a tablet computer, a smart watch, a video player, a desktop computer, a television, etc.

[0575] The first device to be occupied may be, for example, headphones, speakers, a camera, etc.

[0576] The second device may be, for example, a mobile phone, a tablet computer, a smart watch, a video player, a desktop computer, a television, etc.

[0577] Example 1

[0578] The information related to the first device and the second device may include device information of the first device and the second device, or user information of the first device and the second device.

[0579] That is, the first standby device can obtain the device information of the first device and the device information of the second device, and determine whether the device information of the first device matches the device information of the second device based on the device information of the first device and the device information of the second device. The first standby device can obtain the user information of the first device and the user information of the second device, and determine whether the user information of the first device matches the user information of the second device based on the user information of the first device and the user information of the second device.

[0580] In one example, the first device to be occupied obtains information related to the first device and the second device, including: the first device to be occupied receives device information of the first device sent by the first device, and receives device information of the second device sent by the second device; or, the first device to be occupied receives user information of the first device sent by the first device, and receives user information of the second device sent by the second device.

[0581] Correspondingly, the first device sends the device information or user information of the first device to the first device to be occupied.

[0582] Correspondingly, the second device sends device information or user information of the second device to the first device to be occupied.

[0583] That is to say, during the process of the second device occupying the first device to be occupied, the second device may send the device information of the second device to the first device to be occupied. When the first device is ready to occupy the first device to be occupied, the first device may broadcast the identification information of the first device to be occupied and the device information of the first device. Furthermore, the first device to be occupied may determine whether the device information of the first device matches the device information of the second device. Alternatively, during the process of the second device occupying the first device to be occupied, the second device may send the user information of the second device to the first device to be occupied. When the first device is ready to occupy the first device to be occupied, the first device may broadcast the identification information of the first device to be occupied and the user information of the first device. Furthermore, the first device to be occupied may determine whether the user information of the first device matches the user information of the second device.

[0584] In one example, the first device to be occupied obtains information related to the first device and the second device, including: the first device to be occupied receives device information of the first device and device information of the second device sent by a server, or receives user information of the first device and user information of the second device sent by a server.

[0585] Correspondingly, the server sends the device information of the first device and the device information of the second device to the first device to be occupied; or, the server sends the user information of the first device and the user information of the second device to the first device to be occupied.

[0586] That is, in the process of the second device occupying the first device to be occupied, the second device may send the device information of the second device and the identification information of the first device to be occupied to the server. In the case where the first device is ready to occupy the first device to be occupied, the first device may send the device information of the first device and the identification information of the first device to be occupied to the server. The server may therefore send the device information of the first device and the device information of the second device to the first device to be occupied, so that the first device to be occupied may determine whether the device information of the first device matches the device information of the second device. In the process of the second device occupying the first device to be occupied, the second device may send the user information of the second device and the identification information of the first device to be occupied to the server. In the case where the first device is ready to occupy the first device to be occupied, the first device may send the user information of the first device and the identification information of the first device to be occupied to the server. The server may therefore send the user information of the first device and the user information of the second device to the first device to be occupied, so that the first device to be occupied may determine whether the user information of the first device matches the user information of the second device.

[0587] The server may also be referred to as a cloud server. That is, the first device to be occupied may exchange data with the cloud server via a wireless communication protocol.

[0588] Example 2

[0589] The information related to the first device and the second device may include a device matching result between the device information of the first device and the device information of the second device (hereinafter referred to as the device matching result), or a matching result between the user information of the second device and the user information of the first device (hereinafter referred to as the user matching result).

[0590] That is, the first device to be occupied can directly obtain the device matching result or the user matching result without obtaining the device information of the first device, the device information of the second device, the user information of the first device, and the user information of the second device.

[0591] The above has explained an example in which the first device, the second device, and the server match the device information of the first device with the device information of the second device to obtain the matching result, as well as an example in which the first device, the second device, and the server match the user information of the first device with the user information of the second device to obtain the matching result. Therefore, the first device to be occupied can receive the matching result sent by the first device, the second device, and the server, and there is no need to repeat them here.

[0592] The specific implementation of step 2401 can refer to Figure 4 Step 401 in the illustrated embodiment or Fig.23 Step 2201 in the illustrated embodiment need not be described in detail here.

[0593] 2402. When the first device to be occupied determines that the second device matches the first device based on the information related to the first device and the second device, the first device to be occupied changes the occupied state of being occupied by the second device to the occupied state of being occupied by the first device.

[0594] That is to say, if the second device successfully matches the first device, it can be considered that the state of the second device occupying the first device to be occupied is changed to the state of the first device occupying the first device to be occupied with the user's prior permission. Therefore, the first device preempting the first device to be occupied can be considered to meet the user's expectations, which is conducive to reducing the number of operations of the user manually occupying the first device to be occupied.

[0595] In the case where the first device to be occupied can only establish a wireless connection with one device, the occupied state occupied by the second device is changed to the occupied state occupied by the first device, which may mean that the first device to be occupied cuts off the wireless connection with the second device and establishes a wireless connection with the first device. In the case where the first device to be occupied can establish a wireless connection with multiple devices, the occupied state occupied by the second device is changed to the occupied state occupied by the first device, which may mean that the second device stops occupying the media path of the first device to be occupied, and the media path of the first device to be occupied is occupied by the first device.

[0596] Optionally, the first device to be occupied changes the occupied state from being occupied by the second device to being occupied by the first device, including: the first device to be occupied changes the occupied state from being occupied by the second device to being occupied by the first device according to the detected first operation.

[0597] That is, the first device to be occupied can change the occupied state of the first device to be occupied in response to the first operation. In other words, the timing of switching the occupied state of the first device to be occupied can be determined by the first operation.

[0598] The first operation may be an operation performed by a user on the first device, the second device, or the first device to be occupied.

[0599] Optionally, when the second device matches the first device, the first device to be occupied will be changed from an occupied state occupied by the second device to an occupied state occupied by the first device, including: when the second device matches the first device and the priority of the first service is higher than the priority of the second service, the first device to be occupied will be changed from an occupied state occupied by the second device to an occupied state occupied by the first device, and the service occupying the first device to be occupied is changed from the second service to the first service, the first service is the service of the first device, and the second service is the service of the second device.

[0600] That is to say, if the second device successfully matches the first device, and the service of the first device is relatively more important or relatively more suitable, the first device to be occupied changes the occupied state of the first device to be occupied, so that the first device can occupy the first device to be occupied. Therefore, in addition to reducing the risk of privacy leakage and reducing the operations related to switching the occupied state, more important services can also be given priority to occupy the first device to be occupied, which is more in line with the needs of the scene and is conducive to improving the user experience. The priority of the service has been introduced in detail above, so there is no need to repeat it here.

[0601] Optionally, when the second device matches the first device and the priority of the first service is lower than the priority of the second service, or when the first device to be occupied determines that the second device fails to match the first device based on the information related to the first device and the second device, the first device to be occupied changes the occupancy state of the first device to be occupied based on the detected second operation, and the service occupying the first device to be occupied is changed from the second service to the first service, the first service is the service of the first device, and the second service is the service of the second device.

[0602] That is to say, if the second device does not match the first device, the occupied state of the first device to be occupied can be changed according to the user's operation, so that the first device can occupy the first device to be occupied. If the second device does not match the first device, the first device to be occupied changes the occupied state in response to the second operation, which can improve the flexibility of switching the occupied state of the first device to be occupied.

[0603] The specific implementation of step 2402 can refer to Figure 4 Steps 402 to 403 in the illustrated embodiment, or, Fig.23Steps 2202 to 2203 in the illustrated embodiment need not be described in detail here.

[0604] 2403: When the second device fails to match the first device, or when the first device to be occupied fails to obtain the information related to the first device and the second device, the first device to be occupied continues to be occupied by the second device.

[0605] That is, if the second device fails to match the first device, it can be considered that the first device preempting the first device currently occupied by the second device is not a behavior trusted by the user. Therefore, the first device continues to be occupied by the second device, which meets the user's expectations.

[0606] The specific implementation of step 2403 can refer to Figure 4 Step 404 in the illustrated embodiment, or, Fig.23 Step 2204 in the illustrated embodiment need not be described in detail here.

[0607] 2404. When the second device matches the first device and the priority of the first service is lower than the priority of the second service, the first device to be occupied continues to be occupied by the second device, the first service is the service that the first device is ready to occupy on the first device to be occupied, and the second service is the service that the second device currently occupies on the first device to be occupied.

[0608] That is to say, if the second device successfully matches the first device and the priority of the first service is lower than that of the second service, the first device to be occupied can give up changing the occupied state of the first device to be occupied, so that the second device can continue to occupy the first device to be occupied. Therefore, it can help reduce the risk of leaking user privacy, and the switching of the occupied state can better meet the needs of the scene, which is conducive to improving the user experience.

[0609] In one example, the reason why the first device to be occupied gives up changing the occupation state of the first device to be occupied includes that the user information of the second device fails to match the user information of the first device.

[0610] In an example, the reason why the first device to be occupied gives up changing the occupation state of the first device to be occupied includes that the priority of the first service is lower than the priority of the second service.

[0611] The specific implementation of step 2404 can refer to Figure 4 Step 405 in the illustrated embodiment, or, Fig.23 Step 2205 in the illustrated embodiment need not be described in detail here.

[0612] Fig.25 It is a schematic flow chart of a method for occupying equipment provided by the present application.

[0613] 2501. A first device obtains information related to a first device to be occupied, where the first device to be occupied is currently occupied by a second device, wherein user information of the first device to be occupied includes at least one of the following: first user information collected by the first device to be occupied, second user information obtained by the second device, a first user matching result between the first user information and the user information of the first device, and a second user matching result between the second user information and the user information of the first device.

[0614] The first user information collected by the first device to be occupied may include a variety of biometric information, such as face information, voiceprint information, auricle information, brain wave information, etc.

[0615] For example, the first device to be occupied may be a headset having a brain wave detection function, and the first user information may be brain wave information of a user using the headset.

[0616] For another example, the first device to be occupied may be an earphone with an auricle detection function, and the first user information may be the auricle information of a user using the earphone.

[0617] For another example, the first device to be occupied may be a speaker with a voiceprint collection function, and the first user information may be the voiceprint information of a user using the speaker.

[0618] For another example, the first device to be occupied may be a camera with a face collection function, and the first user information may be the face information of a user using the camera.

[0619] The second user information acquired by the second device may be user information collected by the second device, or user information acquired by other devices of the second device (such as a cloud server, etc.), or user information stored by the second device.

[0620] For example, the second user information may refer to the electronic account information (such as an email account, real-name identity information, etc.) logged in on the second device.

[0621] For another example, the second user information may refer to biometric information stored on the second device, such as face information, voiceprint information, auricle information, brain wave information, etc.

[0622] Optionally, before the first device obtains information related to the first device to be occupied, the method also includes: the first device broadcasts a first message, the first message is used to indicate that the first device is ready to occupy the first device to be occupied; the first device obtains information related to the first device to be occupied, including: the first device receives a second message sent by the second device in response to the first message, the second message includes the first user information and / or the second user information; or, the first device receives a third message sent by the first device to be occupied in response to the first message, the third message includes the first user information and / or the second user information.

[0623] Optionally, before the first device obtains information related to the first device to be occupied, the method also includes: the first device sends a fourth message to the server, and the fourth message is used to indicate that the first device is ready to occupy the first device to be occupied; the first device obtains information related to the first device to be occupied, including: the first device receives a fifth message sent by the server in response to the fourth message, and the fifth message includes the first user information and / or the second user information.

[0624] Optionally, before the first device obtains information related to the first device to be occupied, the method also includes: the first device broadcasts a sixth message, the sixth message includes user information of the first device, and the sixth message is used to indicate that the first device is ready to occupy the first device to be occupied; the first device obtains information related to the first device to be occupied, including: the first device receives a seventh message sent by the second device in response to the sixth message, the seventh message includes the second user matching result; or, the first device receives an eighth message sent by the second device in response to the sixth message, the eighth message includes the first user matching result.

[0625] Optionally, before the first device obtains information related to the first device to be occupied, the method also includes: the first device sends a ninth message to the server, the ninth message includes user information of the first device, and the ninth message is used to indicate that the first device is ready to occupy the first device to be occupied; the first device obtains information related to the first device to be occupied, including: the first device receives a tenth message sent by the server in response to the ninth message, and the eighth message includes the first user matching result and / or the second user matching result.

[0626] The specific implementation of step 2501 can refer to Figure 4 Step 401 in the illustrated embodiment need not be described in detail here.

[0627] 2502. The first device determines whether to occupy the first device to be occupied based on the information related to the first device to be occupied.

[0628] Optionally, the occupation of the first device to be occupied by the first device satisfies at least one of the following conditions: the first user information successfully matches the user information of the first device; and the second user information successfully matches the user information of the first device.

[0629] If the first user information successfully matches the user information of the first device, it can be considered that the user using the first device to be occupied is the same user as the user using the first device. Therefore, the occupation of the first device to be occupied by the first device can be considered to be permitted by the same user, and will basically not cause the leakage of user privacy; and the user can still interact with the first device to be occupied, so the number of operations for the user to manually occupy the first device to be occupied can be reduced.

[0630] If the second user information successfully matches the user information of the first device, it can be considered that the user using the second device is the same user as the user using the first device. Therefore, the occupation of the first device to be occupied by the first device can be considered to be permitted by the same user, and will basically not cause the leakage of user privacy; and the user can still interact with the first device to be occupied, so the number of operations for the user to manually occupy the first device to be occupied can be reduced.

[0631] The above has introduced examples of matching auricle information with auricle information, brain wave information with brain wave information, electronic account information with electronic account information, voiceprint information with voiceprint information, and facial information with facial information, so there is no need to repeat them here.

[0632] Optionally, the first service of the first device is ready to occupy the first device to be occupied. Before the first device determines whether to occupy the first device to be occupied based on the information related to the first device to be occupied, the method also includes: the first device obtains the priority of a second service, and the second service is the service currently occupied by the second device; the determination of whether to occupy the first device to be occupied based on the information related to the first device to be occupied includes: determining whether to occupy the first device to be occupied based on the information related to the first device to be occupied, the priority of the first service and the priority of the second service.

[0633] Optionally, the priority of the first service is determined by at least one of an importance index of the first service, an applicability index of the first device, and a user preference index of the first service.

[0634] Optionally, the priorities of the services are from high to low: call service, video call service, audio playback service, video playback service, recording service, and shooting service.

[0635] Optionally, the first device occupying the first to-be-occupied device further satisfies any of the following conditions: the priority of the first service is higher than the priority of the second service; the priority of the first service is lower than the priority of the second service, and the first device detects a second operation.

[0636] Optionally, the method further includes: the first device displays first prompt information, wherein the first prompt information indicates that the first device to be occupied is occupied by the first device.

[0637] Optionally, the first device occupying the first device to be occupied meets the following condition: the first device detects a first operation.

[0638] Optionally, the first operation is an operation performed by a user on the first device, the second device, or the first device to be occupied.

[0639] Optionally, the user information includes at least one of the following: auricle information, brain wave information, face information, voiceprint information, and electronic account information.

[0640] Optionally, the first device to be occupied is any one of the following: headphones, speakers, and a camera.

[0641] Optionally, the determining whether to occupy the first device to be occupied includes: the first device determining whether to occupy a media path of the first device to be occupied.

[0642] Optionally, the method also includes: the first device determines that the first device to be occupied is currently occupied by the second device, and the first device is ready to occupy the first device to be occupied; the first device sends a target message to obtain information related to the first device to be occupied, and the first device to be occupied is currently occupied by the second device, wherein the user information of the first device to be occupied includes at least one of the following: first user information collected by the first device to be occupied, second user information acquired by the second device, a first user matching result between the first user information and the user information of the first device, and a second user matching result between the second user information and the user information of the first device; if the first device fails to acquire the information related to the first device to be occupied, the first device displays a third prompt information, and the third prompt information is used to indicate that the first device cannot identify the user using the first device to be occupied.

[0643] Optionally, the method further includes: the first device giving up occupying the first device to be occupied.

[0644] Optionally, the method further includes: the first device occupying the first device to be occupied according to the detected second operation.

[0645] The specific implementation of step 2502 can refer to Figure 4 Step 403 in the illustrated embodiment need not be described in detail here.

[0646] Combine the following Fig.26 , Fig. 27 , describing a specific implementation method provided by the present application. With the benefit of the guidance and enlightenment presented in the foregoing description and the related drawings, those skilled in the art will think of many improvements and other embodiments of the present application. Therefore, it should be understood that the present application is not limited to the specific embodiments disclosed.

[0647] like Fig.26 As shown, computer 2602 currently occupies earphone 2603, and the user is using computer 2602 and earphone 2603 to play music 2605. Afterwards, mobile phone 2601 receives call 2604. Mobile phone 2601 can search for earphone 2603 and prepare to occupy earphone 2603. In addition, mobile phone 2601 can also broadcast a message to determine whether the earphone 2603 is occupied by other devices. Earphone 2603 sends information about the user using earphone 2603 to mobile phone 2601, so that mobile phone 2601 can determine that there are other devices using earphone 2603, so mobile phone 2601 needs to further confirm whether it can occupy the earphone 2603. Mobile phone 2601 can determine whether the user information of earphone 2603 matches the user information stored in mobile phone 2601 based on the information related to earphone 2603 sent by earphone 2603. If so, it means that the user using earphone 2603 and the user using mobile phone 2601 are the same user. Therefore, the mobile phone 2601 can occupy the headset 2603 and answer the call 2604 through the headset 2603 node.

[0648] like Fig. 27As shown, computer 2702 currently occupies earphone 2703, and the user is using computer 2702 and earphone 2703 to play music 2705. Afterwards, mobile phone 2701 receives call 2704. Mobile phone 2701 can search for earphone 2703 and prepare to occupy earphone 2703. In addition, mobile phone 2701 can also broadcast a message to determine whether the earphone 2703 is occupied by other devices. Earphone 2703 sends information about the user using earphone 2703 to mobile phone 2701, so that mobile phone 2701 can determine that there are other devices using earphone 2703, so mobile phone 2701 needs to further confirm whether it can occupy the earphone 2703. Mobile phone 2701 can determine whether the user information of earphone 2703 matches the user information stored in mobile phone 2701 based on the information related to earphone 2703 sent by earphone 2703. If not, it means that the user using earphone 2703 and the user using mobile phone 2701 are not the same user. If the mobile phone 2701 rashly occupies the earphone 2703, the content of the call may be heard by non-users of the mobile phone, which is not conducive to the privacy of the user. Therefore, the mobile phone 2701 can not occupy the earphone 2703 and answer the call 2704 through the handset of the mobile phone 2701.

[0649] Fig.28 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. Fig.28 The electronic device 2400 shown includes a memory 2401, a processor 2402, a communication interface 2403 and a bus 2404. The memory 2401, the processor 2402 and the communication interface 2403 are connected to each other through the bus 2404.

[0650] The memory 2401 may be a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 2401 may store programs. When the programs stored in the memory 2401 are executed by the processor 2402, the processor 2402 is used to execute the embodiments of the present application. Figure 4 , 22 -24 are the various steps of the method for occupying a device.

[0651] The processor 2402 may be a general-purpose central processing unit (CPU), a microprocessor, an application specific integrated circuit (ASIC), a graphics processing unit (GPU), or one or more integrated circuits for executing related programs to implement the embodiments of the present application. Figure 4 , 22 -The method of occupying the device shown in 24.

[0652] The processor 2402 may also be an integrated circuit chip having the ability to process signals. Figure 4 , 22 -The various steps of the method for occupying a device shown in -24 can be completed by an integrated logic circuit of hardware in the processor 2402 or instructions in the form of software.

[0653] The processor 2402 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, or discrete hardware components. The methods, steps, and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed by a hardware decoding processor, or may be executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a mature storage medium in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 2401, and the processor 2402 reads the information in the memory 2401, and combines its hardware to complete the functions required to be performed by the units included in the electronic device of the embodiments of the present application, or executes the functions in the embodiments of the present application. Figure 4 , 22 -The method of occupying the device shown in 24.

[0654] The communication interface 2403 uses a transceiver device such as but not limited to a transceiver to implement communication between the electronic device 2400 and other devices or a communication network.

[0655] The bus 2404 may include a path for transmitting information between various components of the electronic device 2400 (eg, the memory 2401 , the processor 2402 , and the communication interface 2403 ).

[0656] It should be understood that the acquisition module in the electronic device may be equivalent to the communication interface 2403 in the electronic device 2400 ; and the processing module in the electronic device may be equivalent to the processor 2402 .

[0657] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0658] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0659] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0660] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0661] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0662] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.

[0663] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method of occupying a device, It is characterized in that include: The second device occupies the headset to perform an audio playback service or a video playback service, and the electronic account information logged in on the second device is the same as the electronic account information logged in on the first device; In response to the first device answering a call, the first device automatically occupies the headset, and the second device automatically stops occupying the headset; The first device displays first prompt information, where the first prompt information is used to prompt that the headset is occupied by the first device; The second device displays a second prompt message and an option, where the second prompt message is used to prompt that the headset is occupied by the first device; The second device detects an operation acting on the option; In response to the operation, the second device occupies the headset, and the first device stops occupying the headset.

2. The method according to claim 1, It is characterized in that The first device establishes a wireless connection with the headset, and the second device establishes a wireless connection with the headset.

3. The method according to claim 1, It is characterized in that The first device is any one of a mobile phone, a tablet computer, a smart watch, a video player, a laptop computer, a computer or a TV; the second device is any one of a mobile phone, a tablet computer, a smart watch, a video player, a laptop computer, a computer or a TV.

4. The method according to any one of claims 1 to 3, It is characterized in that The call service is a voice call service or a video call service.

5. The method according to any one of claims 1 to 3, It is characterized in that The first device occupies the headset, including: the first device occupies the media path of the headset; and / or, The second device occupies the headset, comprising: the second device occupies the media channel of the headset.

6. A method of occupying a device, It is characterized in that include: The second device occupies the headset to perform an audio playback service or a video playback service, and the electronic account information logged in on the second device is the same as the electronic account information logged in on the first device; In response to the first device answering a call, the second device automatically stops occupying the headset, and the headset is occupied by the first device; The second device displays a second prompt message and an option, where the second prompt message is used to prompt that the headset is occupied by the first device; The second device detects an operation acting on the option; In response to the operation, the second device occupies the headset, and the first device stops occupying the headset.

7. The method according to claim 6, It is characterized in that The first device establishes a wireless connection with the headset, and the second device establishes a wireless connection with the headset.

8. The method according to claim 6, It is characterized in that The first device is any one of a mobile phone, a tablet computer, a smart watch, a video player, a laptop computer, a computer or a TV; the second device is any one of a mobile phone, a tablet computer, a smart watch, a video player, a laptop computer, a computer or a TV.

9. The method according to any one of claims 6 to 8, It is characterized in that The call service is a voice call service or a video call service.

10. The method according to any one of claims 6 to 8, It is characterized in that The first device occupies the headset, including: the first device occupies the media path of the headset; and / or, The second device occupies the headset, comprising: the second device occupies the media channel of the headset.

11. A system for occupying a device, It is characterized in that The system includes: a first device, a second device and a headset, wherein the electronic account information logged in on the first device is the same as the electronic account information logged in on the second device; The second device occupies the headset to perform an audio playback service or a video playback service; In response to the first device answering a call, the first device automatically occupies the headset, and the second device automatically stops occupying the headset; The first device displays first prompt information, where the first prompt information is used to prompt that the headset is occupied by the first device; The second device displays a second prompt message and an option, where the second prompt message is used to prompt that the headset is occupied by the first device; The second device detects an operation acting on the option; In response to the operation, the second device occupies the headset, and the first device stops occupying the headset.

12. The system according to claim 11, It is characterized in that The first device establishes a wireless connection with the headset, and the second device establishes a wireless connection with the headset.

13. The system according to claim 11, It is characterized in that The first device is any one of a mobile phone, a tablet computer, a smart watch, a video player, a laptop computer, a computer or a TV; the second device is any one of a mobile phone, a tablet computer, a smart watch, a video player, a laptop computer, a computer or a TV.

14. A system according to any one of claims 11 to 13, It is characterized in that The call service is a voice call service or a video call service.

15. A system according to any one of claims 11 to 13, It is characterized in that The first device occupies the headset, including: the first device occupies the media path of the headset; and / or, The second device occupies the headset, comprising: the second device occupies the media channel of the headset.

16. An electronic device, It is characterized in that The electronic device comprises a processor and a memory, and the electronic device is configured to execute the method according to any one of claims 6 to 10.

17. A chip system, It is characterized in that The chip system includes at least one processor, and when program instructions are executed in the at least one processor, the chip system implements the method as described in any one of claims 6-10.

18. A storage medium, It is characterized in that The storage medium stores program codes, and when the program codes are executed on a device, the device is caused to execute the method according to any one of claims 6 to 10.