Equipment control method and device and storage medium

By calculating the confidence value connected by the device and automatically switching wireless connections, the problem of cumbersome wireless connection switching between different terminals is solved, and rapid switching and user experience is achieved.

CN120075933APending Publication Date: 2025-05-30BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311607442.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-28
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

The wireless connection switching process of the device between different terminals is more cumbersome, resulting in a longer connection time.

Method used

By acquiring the connection signal sent by the target device, the usage status information of the first terminal is obtained, and the probability of wireless connection between the first terminal and the target device, that is, the connection confidence value, is calculated based on this information. When the connection confidence value is greater than or equal to the preset threshold, the control target device switches from a wireless connection to a second terminal to a wireless connection to a first terminal.

Benefits of technology

It realizes rapid switching of wireless connection between devices between different terminals, reduces the number of users' operations and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120075933A_ABST
    Figure CN120075933A_ABST
Patent Text Reader

Abstract

The invention relates to an equipment control method and device and a storage medium, and the method comprises the steps: obtaining the use state information of a first terminal based on a connection signal sent by target equipment; the target device is a device wirelessly connected with the second terminal; acquiring a connection confidence value corresponding to the first terminal according to the use state information, wherein the connection confidence value is used for representing the probability of wireless connection between the first terminal and the target equipment; and under the condition that the connection confidence value is greater than or equal to a preset threshold value, controlling the target equipment to be switched from the wireless connection with the second terminal to the wireless connection with the first terminal. According to the technical scheme, the rapid switching of the wireless connection of the target equipment between different terminals can be realized, and the operation frequency of a user is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of device control, and particularly to a method, an apparatus, and a storage medium for device control. Background Art

[0002] With the development of technology, the wireless connection of devices has become more and more popular. However, currently, the time required for a device to switch from connecting to a previous terminal to connecting to a subsequent terminal is relatively long, and the switching process of the wireless connection of the device between different terminals is relatively cumbersome. Summary of the Invention

[0003] To overcome the problems existing in the related art, the present disclosure provides a method, an apparatus, and a storage medium for device control.

[0004] According to a first aspect of an embodiment of the present disclosure, there is provided a method for device control, including:

[0005] Based on a connection signal sent by a target device, obtain usage status information of the first terminal; the target device is a device wirelessly connected to a second terminal;

[0006] Obtain a connection confidence value corresponding to the first terminal according to the usage status information, where the connection confidence value is used to represent the probability of wireless connection between the first terminal and the target device;

[0007] When the connection confidence value is greater than or equal to a preset threshold, control the target device to switch from wirelessly connecting to the second terminal to wirelessly connecting to the first terminal.

[0008] Optionally, the usage status information includes at least one type, and obtaining the connection confidence value corresponding to the first terminal according to the usage status information includes:

[0009] For each type of usage status information, determine a confidence value corresponding to the usage status represented by the usage status information, and obtain a total confidence value corresponding to the usage status information, where different usage statuses correspond to different confidence values; the total confidence value is the sum of the confidence values corresponding to different usage statuses;

[0010] Obtain the connection confidence value corresponding to the first terminal according to the confidence value and the total confidence value.

[0011] Optionally, the usage status information includes one type, and obtaining the connection confidence value corresponding to the first terminal according to the confidence value and the total confidence value includes:

[0012] Use the ratio of the confidence value to the total confidence value as the connection confidence value.

[0013] Optionally, the usage status information includes multiple types, and obtaining the connection confidence value corresponding to the first terminal according to the confidence value and the total confidence value includes:

[0014] Obtaining a first sum value of the confidence values corresponding to multiple types of usage status information;

[0015] Obtaining a second sum value of the total confidence values corresponding to multiple types of usage status information;

[0016] Taking the ratio of the first sum value to the second sum value as the connection confidence value.

[0017] Optionally, the usage status information includes at least one of the following:

[0018] The service type currently used by the first terminal;

[0019] The current screen status of the first terminal;

[0020] User information of the user looking at the screen of the first terminal;

[0021] The program type of the application currently running on the first terminal.

[0022] Optionally, the method further includes:

[0023] When the target device is wirelessly connected to the first terminal, stop obtaining the connection confidence value corresponding to the first terminal.

[0024] Optionally, the method further includes:

[0025] When the target device is not wirelessly connected to the first terminal, in response to receiving a prompt signal sent by the target device, stop obtaining the connection confidence value corresponding to the first terminal;

[0026] Wherein, the prompt signal is sent when the power of the target device is less than or equal to a preset power, or the prompt signal is sent when the target device is in a charging state.

[0027] Optionally, the method further includes:

[0028] When the connection confidence value is greater than or equal to a preset threshold, output a connection prompt message for prompting the user whether to connect the target device through the first terminal;

[0029] The controlling the target device to switch from being wirelessly connected to the second terminal to being wirelessly connected to the first terminal when the connection confidence value is greater than or equal to a preset threshold includes:

[0030] When the connection confidence value is greater than or equal to a preset threshold, in response to receiving a connection confirmation message sent by the user based on the connection prompt information, control the target device to switch from wirelessly connecting with the second terminal to wirelessly connecting with the first terminal.

[0031] According to a second aspect of the embodiments of the present disclosure, there is provided a device control apparatus, including:

[0032] A first acquisition module, configured to acquire usage status information of a first terminal based on a connection signal sent by a target device; the target device is a device wirelessly connected to a second terminal.

[0033] A second acquisition module, configured to acquire a connection confidence value corresponding to the first terminal according to the usage status information, where the connection confidence value is used to represent the probability of wirelessly connecting the first terminal to the target device.

[0034] A control module, configured to control the target device to switch from wirelessly connecting with the second terminal to wirelessly connecting with the first terminal when the connection confidence value is greater than or equal to a preset threshold.

[0035] According to a third aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, on which computer program instructions are stored, and when the program instructions are executed by a processor, the steps of the device control method provided in the first aspect of the present disclosure are implemented.

[0036] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: Based on the connection signal sent by the target device, acquire the usage status information of the first terminal, and acquire the connection confidence value corresponding to the first terminal according to the usage status information. When the connection confidence value is greater than or equal to a preset threshold, control the target device to switch from wirelessly connecting with the second terminal to wirelessly connecting with the first terminal, which can achieve fast switching of wireless connections between different terminals of the target device, without the user manually disconnecting the wireless connection between the second terminal and the target device and making the target device wirelessly connect with the first terminal, effectively reducing the number of user operations and improving the user experience.

[0037] It should be understood that the above general description and subsequent detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The accompanying drawings herein are incorporated into the specification and form a part of the specification, showing embodiments consistent with the present disclosure and used together with the specification to explain the principles of the present disclosure.

[0039] Figure 1 is a flowchart of a device control method shown according to an exemplary embodiment;

[0040] Figure 2 is a block diagram of a device control apparatus shown according to an exemplary embodiment;

[0041] Figure 3 is a block diagram of another device control apparatus shown according to an exemplary embodiment;

[0042] Figure 4 is a block diagram of yet another device control apparatus shown according to an exemplary embodiment. Detailed implementation manners

[0043] Here, the exemplary embodiments will be described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0044] It should be noted that all actions of obtaining signals, information, or data in the present disclosure are carried out on the premise of complying with the corresponding data protection regulations and policies of the country where the location is located and obtaining authorization from the corresponding device owner.

[0045] First, the application scenario of the present disclosure will be described. The present disclosure is applied to the scenario of switching the wireless connection between a device and different terminals. Currently, the process of switching the wireless connection between a device and different terminals is relatively cumbersome. For example, if a user wishes to play audio from a first terminal through wireless headphones, but the current wireless headphones are wirelessly connected to a second terminal, the user needs to operate the second terminal to disconnect the wireless connection between the second terminal and the wireless headphones, and operate the first terminal to wirelessly connect the first terminal to the wireless headphones.

[0046] To overcome the problems existing in the related art, the present disclosure provides a method, apparatus, and storage medium for device control.

[0047] Figure 1 is a flowchart of a method for device control shown according to an exemplary embodiment, as Figure 1 shown, the method for device control is used in a first terminal and includes the following steps.

[0048] In step S11, based on the connection signal sent by the target device, obtain the usage status information of the first terminal; the target device is a device wirelessly connected to a second terminal.

[0049] The target device can be a wearable device wirelessly connected to the terminal device, such as wireless earphones or a wireless bracelet, or a non-wearable device wirelessly connected to the terminal device, such as a wireless speaker, or other devices that output audio through wireless connection, or other devices that output images through wireless connection, or a device that emits vibrations through wireless connection. The specific type of the target device is not limited in the embodiments of the present application.

[0050] The wireless connection method adopted in the embodiments of the present application can be, for example, a wireless connection such as a Bluetooth connection or a local area network connection.

[0051] The first terminal can periodically detect connection signals from devices within a preset range around it. Based on the connection signals sent by the target device, the first terminal can obtain usage status information of the first terminal; wherein, the target device is a device wirelessly connected to the second terminal.

[0052] For example, the first terminal, the second terminal, and the target device are located in the same space. The second terminal is currently wirelessly connected to the target device, and the target device in the running state sends a wireless broadcast signal, enabling the first terminal to detect the connection signal of the target device.

[0053] The usage status information of the first terminal can include one or more of the following: the type of service currently used by the first terminal; the current screen status of the first terminal; user information of the user looking at the screen of the first terminal; the program type of the application currently running on the first terminal.

[0054] Through at least one type of usage status information of the first terminal, the usage status of the first terminal can be effectively characterized, which helps to obtain a more reference-worthy connection confidence value corresponding to the first terminal.

[0055] In step S12, a connection confidence value corresponding to the first terminal is obtained according to the usage status information. The connection confidence value is used to represent the probability of the first terminal wirelessly connecting to the target device.

[0056] In one embodiment, the usage status information includes at least one type. Obtaining the connection confidence value corresponding to the first terminal according to the usage status information includes: for each type of usage status information, determining the confidence value corresponding to the usage status represented by the usage status information, and obtaining the total confidence value corresponding to the usage status information. Among them, different usage statuses correspond to different confidence values; the total confidence value can be the sum of the confidence values corresponding to different usage statuses; according to the confidence value and the total confidence value, the connection confidence value corresponding to the first terminal can be obtained.

[0057] Here, there can be multiple usage states under each type of usage state information. For each type of usage state information, determining the confidence value corresponding to the usage state represented by the usage state information means determining the confidence value corresponding to the usage state represented by the usage state information according to at least one usage state of the first terminal under each type of usage state information.

[0058] For example, for the usage state information of the applications currently running on the first terminal, it can be divided into audio applications, video applications, social applications, reading applications, etc. The confidence value of the audio application can be 0.4, for example, the confidence value of the video application can be 0.4, the confidence value of the social application can be 0.1, and the confidence value of the reading application can be 0.1. If both the audio application and the video application are running simultaneously, the confidence value under the usage state information of the applications currently running is 0.4 + 0.4 = 0.8.

[0059] In one embodiment, the usage state information can include one type. Obtaining the connection confidence value corresponding to the first terminal according to the confidence value and the total confidence value includes: taking the ratio of the confidence value to the total confidence value as the connection confidence value. In this way, since different usage states correspond to different confidence values, using the ratio of the confidence value to the total confidence value can effectively reflect the influence of the current usage state of the first terminal on the connection confidence value.

[0060] For example, when the target device is an audio playback device, whether the first terminal is currently using the audio service is an important basis for whether the first terminal is wirelessly connected to the audio playback device. The usage state information can only include the usage state information of the type of service currently used. The usage state of the first terminal can be, for example, currently using the audio service or not currently using the audio service. When the first terminal is currently using the audio service, for example, when the first terminal receives a call or plays audio or plays a video containing an audio track, the confidence value of the first terminal can be 0.9. When the usage state of the first terminal is not currently using the audio service, the confidence value of the first terminal can be 0.1. Then the connection confidence value corresponding to the first terminal is 0.9÷(0.9 + 0.1) = 0.9.

[0061] In another embodiment, the usage state information includes multiple types. Obtaining the connection confidence value corresponding to the first terminal according to the confidence value and the total confidence value includes: obtaining the first sum value of the confidence values corresponding to the multiple types of usage state information; obtaining the second sum value of the total confidence values corresponding to the multiple types of usage state information; taking the ratio of the first sum value to the second sum value as the connection confidence value.

[0062] For example, when the target device is an audio playback device, whether the first terminal is currently using the audio service is an important basis for whether the first terminal is wirelessly connected to the audio playback device. At the same time, the program type of the application currently running on the first terminal is also an important reference. For example, if the first terminal is not using the audio service but is running a music program, compared with the first terminal not running a music software, when the first terminal is currently running a music program, the user of the first terminal is more likely to listen to music by connecting to the audio playback device. In this way, the usage status information includes multiple types, which can make the reference usage status information more diverse and help obtain a more valuable connection confidence value.

[0063] For example, when the target device is an audio playback device, when the first terminal is currently using the audio service, for example, when the first terminal receives a call or plays audio or plays a video containing an audio track, the confidence value of the first terminal can be, for example, 0.7; when the usage status of the first terminal is that it is not currently using the audio service, the confidence value of the first terminal can be, for example, 0.3. The application currently running on the first terminal can be divided into audio programs, video programs, social programs, reading programs, etc. The confidence value of the audio program can be, for example, 0.4, the confidence value of the video program can be, for example, 0.4, the confidence value of the social program can be, for example, 0.1, and the confidence value of the reading program can be, for example, 0.1; the first sum value of the confidence values corresponding to multiple types of usage status information is 0.4 + 0.4 + 0.3 = 1.1, and the second sum value of the total confidence values corresponding to multiple types of usage status information is (0.9 + 0.1) + (0.4 + 0.4 + 0.1 + 0.1) = 2. Then, the connection confidence value corresponding to the first terminal is 1.1 ÷ 2 = 0.55.

[0064] In step S13, when the connection confidence value is greater than or equal to the preset threshold, control the target device to switch from being wirelessly connected to the second terminal to being wirelessly connected to the first terminal.

[0065] The connection confidence value corresponding to the first terminal is relatively large. For example, when the connection confidence value is greater than or equal to the preset threshold, it indicates that the probability of the first terminal being wirelessly connected to the target device is relatively large, and the target device can be controlled to switch from being wirelessly connected to the second terminal to being wirelessly connected to the first terminal; in this way, it can facilitate the user of the first terminal to use the target device; for example, after the first terminal is wirelessly connected to the target device, use the target device to play audio, play video, display pictures, send the motion data collected by the target device to the first terminal, etc.

[0066] Meanwhile, the step of obtaining the connection confidence value corresponding to the first terminal according to the usage status information and, when the connection confidence value is greater than or equal to a preset threshold, controlling the target device to switch from wirelessly connecting to the second terminal to wirelessly connecting to the first terminal is executed by the first terminal based on the connection signal sent by the target device. The user of the first terminal can normally use the first terminal, and the user of the first terminal does not need to operate the second terminal to disconnect the wireless connection between the second terminal and the target device, which can effectively reduce the number of user operations and help improve the experience of the user when using the first terminal. Herein, the preset threshold can be, for example, 0.5.

[0067] If the connection confidence value corresponding to the first terminal is small, for example, the connection confidence value is less than the preset threshold, it indicates that the probability of the first terminal wirelessly connecting to the target device is small, and the first terminal has no current need to connect to the target device. The step of controlling the target device to switch from wirelessly connecting to the second terminal to wirelessly connecting to the first terminal can be stopped. In this way, unnecessary power consumption of the first terminal can be avoided, and the wireless connection between the second terminal and the target device can be prevented from being disconnected unnecessarily.

[0068] Through the device control method provided by the embodiments of the present application, based on the connection signal sent by the target device, the usage status information of the first terminal is obtained, and the connection confidence value corresponding to the first terminal is obtained according to the usage status information. When the connection confidence value is greater than or equal to the preset threshold, the target device is controlled to switch from wirelessly connecting to the second terminal to wirelessly connecting to the first terminal, which can achieve a fast switch of the wireless connection of the target device between different terminals without the user manually disconnecting the wireless connection between the second terminal and the target device and making the target device wirelessly connect to the first terminal, effectively reducing the number of user operations and improving the user's operation experience.

[0069] In some embodiments, the terminal includes, for example, at least one of a mobile phone, a wearable device, an Internet of Things device, an automobile with communication function, a smart automobile, a tablet computer (Pad), a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal device in industrial control, a wireless terminal device in self-driving, a wireless terminal device in remote medical surgery, a wireless terminal device in smart grid, a wireless terminal device in transportation safety, a wireless terminal device in smart city, and a wireless terminal device in smart home, but is not limited thereto.

[0070] In one embodiment, the service types currently used by the first terminal may include, for example, audio playback service, video playback service, video call service, etc.; in this way, through multiple service types, the actual usage status of the first terminal can be better reflected, which helps to determine a more accurate connection confidence value.

[0071] In one embodiment, the current screen state of the first terminal may include, for example, the screen being in a landscape state, the screen being in a portrait state, or the screen being in a state of moving up and down; for example, when the screen of the first terminal is in the landscape state, there is a high probability that the first terminal is playing games or watching videos; and for another example, when the screen is in a state of moving up and down, there is a high probability that the current user of the first terminal is doing sports such as running or cycling. In this way, since the screen state can reflect the usage status of the first terminal from the side, through the above multiple screen states, it also helps to determine a more accurate connection confidence value; among them, the screen state of the first terminal can be determined, for example, by an inertial sensor set in the first terminal.

[0072] In one embodiment, the user information of the user looking at the screen of the first terminal may include, for example: the user looking at the screen of the first terminal is only the holder of the first terminal, the users looking at the screen of the first terminal are multiple and include the holder of the first terminal, and the users looking at the screen of the first terminal do not include the holder of the first terminal.

[0073] For example, the front camera of the first terminal can be used to collect a target image. Based on the collected target image, it can be determined whether the user annotating the screen of the first terminal includes the holder of the first terminal. When the user looking at the screen of the first terminal does not include the holder of the first terminal, it indicates that the current user of the first terminal is not the holder of the first terminal. When the user looking at the screen of the first terminal is only the holder of the first terminal, it indicates that the first terminal is currently used alone by the holder of the first terminal, and the security of the first terminal or the privacy of the holder of the first terminal is not affected.

[0074] To ensure the security of the first terminal or the privacy security of the holder of the first terminal, when the users looking at the screen of the first terminal are multiple and include the holder of the first terminal, or when the users looking at the screen of the first terminal do not include the holder of the first terminal, a confidence value lower than that when the holder of the first terminal looks at the first terminal alone can be set to reduce the possibility of the first terminal connecting to the target device when the first terminal is not used alone by the holder of the first terminal.

[0075] For example, the total confidence value is 1, the confidence value is 0.1 when the users looking at the screen of the first terminal do not include the holder of the first terminal, the confidence value is 0.6 when the user looking at the screen of the first terminal is only the holder of the first terminal, and the confidence value is 0.3 when the users looking at the screen of the first terminal are multiple and include the holder of the first terminal.

[0076] In this way, when the users looking at the screen of the first terminal are multiple and include the holder of the first terminal, or when the users looking at the screen of the first terminal do not include the holder of the first terminal, the confidence value of the first terminal is lower, and the probability of the first terminal wirelessly connecting to the target device is lower. For example, when the target device is a wireless audio playback device, the probability of the audio of the first terminal being played through the wireless audio playback device is lower, and the probability of the privacy of the holder of the first terminal being affected can be reduced.

[0077] In one embodiment, the first terminal can also collect more characteristic information of the people within the field of view of the front camera of the first terminal to determine whether the first terminal is near the holder of the first terminal. Thus, when the holder of the first terminal is near the first terminal, the first terminal is allowed to wirelessly connect to the target device. For example, the first terminal can also collect voiceprint information or palmprint information to determine whether the holder of the first terminal is within the field of view of the front camera of the first terminal for determination. In this way, the user information of the person looking at the screen of the first terminal can be determined in a more diverse manner.

[0078] In one embodiment, the program types of the applications currently running on the first terminal may include, for example, audio programs, video programs, sports programs, reading programs, social programs, etc. The applications currently running on the first terminal will affect the usage status of the first terminal. For example, when the application currently running includes an audio program, the first terminal may play audio through the currently running audio program; for another example, when the application currently running includes a video program, the first terminal may play video through the currently running video program.

[0079] In this way, by determining the program type of the application currently running on the first terminal, the first terminal can be wirelessly connected to the target device in advance, so that the user of the first terminal can use the connected target device; for example, it helps to wirelessly connect the first terminal to the target device when the first terminal actually uses audio services, so that the target device can be used to play audio when the first terminal actually uses audio services.

[0080] In one embodiment, one type can be selected from multiple types of usage status information according to the device type of the target device, so as to obtain the connection confidence value corresponding to the first terminal by using the selected type of usage status information.

[0081] For example, when the target device is an audio playback device, the usage status information of the first terminal can be the audio usage status of the first terminal, or whether the applications currently running on the first terminal include audio applications. For another example, when the target device is a video playback device, the usage status information of the first terminal can be the video usage status of the first terminal, or whether the applications currently running on the first terminal include video applications. For still another example, when the target device is a sports device (such as a sports bracelet), the usage status information of the first terminal can be the sports status of the first terminal. For example, whether the first terminal is in a state of vibrating up and down, or whether the applications currently running on the first terminal include sports applications.

[0082] In this way, since one type of the multiple types of usage status information used to determine the connection confidence value is determined according to the device type of the target device, the usage status information used when determining the connection confidence value corresponding to the first terminal is more valuable as a reference, which helps to more effectively determine whether the first terminal is wirelessly connected to the target device.

[0083] In one embodiment, the usage status information includes multiple types. According to the different priorities of different types of usage status information, the total confidence values of different types of usage status information are different. For example, the total confidence value corresponding to the status information of the service type currently used by the first terminal is A, the total confidence value corresponding to the status information of the current screen status of the first terminal is B, the total confidence value corresponding to the status information of the user information of the user looking at the screen of the first terminal is C, and the total confidence value corresponding to the status information of the program type of the application currently running on the first terminal is D. According to actual requirements, for example, A > B > C > D can be set. In this way, the total confidence values of different types of usage status information are different, so that the total confidence values of different types of usage status information have different influences on the connection confidence value, making the reference of the connection confidence value more diversified, which helps the connection confidence value to be more valuable for the wireless connection between the first terminal and the target device.

[0084] In one embodiment, when the target device is wirelessly connected to the first terminal, the acquisition of the connection confidence value corresponding to the first terminal can be stopped. For example, after the target device disconnects the wireless connection with the second terminal and establishes a wireless connection with the first terminal, the first terminal and the target device are in a wireless connection state, and the first terminal can stop determining the connection confidence value corresponding to the first terminal according to the acquired usage status information of the first terminal.

[0085] In this way, the calculation amount of the first terminal can be reduced, and the power consumption of the first terminal can be lowered. At the same time, since the first terminal and the target device are in a wireless connection state, stopping the acquisition of the connection confidence value corresponding to the first terminal will not have an adverse impact on the wireless connection state between the first terminal and the target device.

[0086] In one embodiment, when the target device is not wirelessly connected to the first terminal, in response to receiving the prompt signal sent by the target device, the first terminal can stop acquiring the connection confidence value corresponding to the first terminal; wherein, the prompt signal is sent when the power of the target device is less than or equal to the preset power, or the prompt signal is sent when the target device is in a charging state, and the preset power can be 20% for example.

[0087] For example, when the target device is a wireless earphone, the power of the wireless earphone is lower than 20% or it is placed in the charging case of the wireless earphone for charging. The wireless earphone is still in a state where it can send signals externally. However, since the power of the wireless earphone is lower than 20%, the remaining usage duration after the first terminal is connected to the wireless earphone is insufficient, or since the wireless earphone is in a charging state, the connection between the first terminal and the wireless earphone may affect the user experience.

[0088] In this way, by receiving a prompt signal sent by the target device when the power of the target device is less than or equal to a preset power level or when the target device is in a charging state, the first terminal can stop obtaining the connection confidence value corresponding to the first terminal, thereby reducing the power consumption of the first terminal.

[0089] In one embodiment, when the connection confidence value is greater than or equal to a preset threshold, the first terminal can output a connection prompt message, which is used to prompt the user whether to connect to the target device through the first terminal; when the connection confidence value of the first terminal is greater than or equal to the preset threshold, the first terminal controls the target device to switch from wirelessly connecting to the second terminal to wirelessly connecting to the first terminal, including: when the connection confidence value of the first terminal is greater than or equal to the preset threshold, in response to receiving a connection confirmation message sent by the user of the first terminal based on the connection prompt message, the first terminal controls the target device to switch from wirelessly connecting to the second terminal to wirelessly connecting to the first terminal.

[0090] For example, when the connection confidence value is greater than or equal to the preset threshold, the first terminal can perform a pop-up window reminder to prompt the user whether to connect to the target device through the first terminal; or, when the connection confidence value is greater than or equal to the preset threshold, the first terminal can give a reminder in the notification bar to prompt the user whether to connect to the target device through the first terminal. The embodiments of the present application do not limit the prompting method of the connection prompt message.

[0091] The user of the first terminal performs a connection confirmation operation on the connection prompt message. For example, when the first terminal performs a pop-up window reminder, a first control for confirming the connection and a second control for rejecting the connection can be displayed. In response to the first terminal receiving the user's operation on the first control, the first terminal can confirm that it has received the connection confirmation message, so that the first terminal can control the target device to switch from wirelessly connecting to the second terminal to wirelessly connecting to the first terminal, realizing the wireless connection switch of the target device from the second terminal to the first terminal.

[0092] In this way, through the user's confirmation operation on the connection prompt message, the wireless connection switch of the target device from the second terminal to the first terminal is realized, improving the user's sense of participation in the process of the wireless connection switch; compared with the user operating the second terminal and the first terminal successively to realize the wireless connection switch of the target device, the number of user operations can be reduced, and the wireless connection switch process of the target device from the second terminal to the first terminal is simplified.

[0093] Figure 2 It is a block diagram of a device control device 120 shown according to an exemplary embodiment. Refer to Figure 2, the device control apparatus 120 includes a first acquisition module 121, a second acquisition module 122, and a control module 123.

[0094] The first acquisition module 121 is configured to obtain usage status information of the first terminal based on a connection signal sent by a target device; the target device is a device wirelessly connected to a second terminal.

[0095] The second acquisition module 122 is configured to obtain a connection confidence value corresponding to the first terminal according to the usage status information, and the connection confidence value is used to represent the probability of wireless connection between the first terminal and the target device.

[0096] The control module 123 is configured to control the target device to switch from wireless connection with the second terminal to wireless connection with the first terminal when the connection confidence value is greater than or equal to a preset threshold.

[0097] In one embodiment, the usage status information includes at least one type. The second acquisition module 122 is further configured to, for each type of usage status information, determine a confidence value corresponding to the usage status represented by the usage status information, and obtain a total confidence value corresponding to the usage status information, where different usage statuses correspond to different confidence values; the total confidence value is the sum of the confidence values corresponding to different usage statuses; according to the confidence value and the total confidence value, obtain the connection confidence value corresponding to the first terminal.

[0098] In one embodiment, the usage status information includes one type. The second acquisition module 122 is further configured to use the ratio of the confidence value to the total confidence value as the connection confidence value.

[0099] In one embodiment, the usage status information includes multiple types. The second acquisition module 122 is further configured to obtain a first sum value of the confidence values corresponding to multiple types of usage status information; obtain a second sum value of the total confidence values corresponding to multiple types of usage status information; use the ratio of the first sum value to the second sum value as the connection confidence value.

[0100] In one embodiment, the usage status information includes one or more of the following: the service type currently used by the first terminal; the current screen status of the first terminal; user information of a user gazing at the screen of the first terminal; the program type of the application currently running on the first terminal.

[0101] In one embodiment, the second acquisition module 122 is further configured to stop obtaining the connection confidence value corresponding to the first terminal when the target device is wirelessly connected to the first terminal.

[0102] In one embodiment, the second acquisition module 122 is further configured to stop acquiring the connection confidence value corresponding to the first terminal in response to receiving a prompt signal sent by the target device when the target device is not wirelessly connected to the first terminal; wherein, the prompt signal is sent when the power of the target device is less than or equal to a preset power, or the prompt signal is sent when the target device is in a charging state.

[0103] In one embodiment, the device control apparatus 120 further includes a prompt module 124, and the prompt module 124 is configured to output a connection prompt message when the connection confidence value is greater than or equal to a preset threshold, and the connection prompt message is used to prompt the user whether to connect the target device through the first terminal. The control module 123 is further configured to, when the connection confidence value is greater than or equal to a preset threshold, in response to receiving a connection confirmation message sent by the user based on the connection prompt message, control the target device to switch from wirelessly connecting to the second terminal to wirelessly connecting to the first terminal.

[0104] Through the device control apparatus provided by the embodiments of the present application, based on the connection signal sent by the target device, the usage status information of the first terminal is acquired, and the connection confidence value corresponding to the first terminal is acquired according to the usage status information. When the connection confidence value is greater than or equal to a preset threshold, the target device is controlled to switch from wirelessly connecting to the second terminal to wirelessly connecting to the first terminal, which can realize the fast switching of the wireless connection of the target device between different terminals, without the user manually disconnecting the wireless connection between the second terminal and the target device and making the target device wirelessly connect to the first terminal, effectively reducing the number of user operations and improving the user operation experience.

[0105] Regarding the apparatus in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated herein.

[0106] The present disclosure also provides a computer-readable storage medium, on which computer program instructions are stored, and when the program instructions are executed by a processor, the steps of the device control method provided by the present disclosure are implemented.

[0107] Figure 3 It is a block diagram of a device control apparatus 800 shown according to an exemplary embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0108] Refer to Figure 3, device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input / output interface 812, a sensor component 814, and a communication component 816.

[0109] The processing component 802 generally controls the overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-described device control methods. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0110] The memory 804 is configured to store various types of data to support the operation of the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disk.

[0111] The power component 806 provides power to the various components of the device 800. The power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.

[0112] The multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can not only sense the boundaries of the touch or swipe actions, but also detect the duration and pressure associated with the touch or swipe operations. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each of the front camera and the rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0113] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC) that is configured to receive external audio signals when the device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 further includes a speaker for outputting audio signals.

[0114] The input / output interface 812 provides an interface between the processing component 802 and a peripheral interface module, and the peripheral interface module can be a keyboard, a click wheel, buttons, etc. These buttons can include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0115] The sensor component 814 includes one or more sensors for providing status assessments of various aspects of the device 800. For example, the sensor component 814 can detect the on / off state of the device 800, the relative positioning of components, such as the display and keypad of the device 800. The sensor component 814 can also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration / deceleration of the device 800, and a change in the temperature of the device 800. The sensor component 814 can include a proximity sensor that is configured to detect the presence of nearby objects without any physical contact. The sensor component 814 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 814 can further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0116] The communication component 816 is configured to facilitate communication between the device 800 and other devices in a wired or wireless manner. The device 800 can access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0117] In an exemplary embodiment, the apparatus 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the method of device control described above.

[0118] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the above instructions can be executed by a processor 820 of the apparatus 800 to complete the method of device control described above. For example, the non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0119] In addition to being an independent electronic device, the above apparatus may also be a part of an independent electronic device. For example, in one embodiment, the apparatus may be an integrated circuit (IC) or a chip. The integrated circuit may be a single IC or a collection of multiple ICs. The chip may include, but is not limited to, the following types: GPU (Graphics Processing Unit), CPU (Central Processing Unit), FPGA (Field Programmable Gate Array), DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit), SOC (System on Chip), etc. The above integrated circuit or chip may be used to execute executable instructions (or code) to implement the method of device control described above. The executable instructions may be stored in the integrated circuit or chip, or obtained from other devices or apparatuses. For example, the integrated circuit or chip includes a processor, a memory, and an interface for communicating with other devices. The executable instructions may be stored in the memory, and when the executable instructions are executed by the processor, the method of device control described above is implemented; or, the integrated circuit or chip may receive the executable instructions through the interface and transmit them to the processor for execution to implement the method of device control described above.

[0120] In another exemplary embodiment, a computer program product is also provided. The computer program product includes a computer program executable by a programmable device. The computer program has a code portion for performing the method of device control described above when executed by the programmable device.

[0121] Figure 4 FIG. 4 is a block diagram of a device control apparatus 1900 shown in accordance with an exemplary embodiment. For example, the apparatus 1900 may be provided as a server. Referring to Figure 4 FIG. 4, the apparatus 1900 includes a processing component 1922, which further includes one or more processors, and memory resources represented by a memory 1932 for storing instructions executable by the processing component 1922, such as application programs. The application programs stored in the memory 1932 may include one or more modules each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the method of device control described above.

[0122] The apparatus 1900 may also include a power component 1926 configured to perform power management of the apparatus 1900, a wired or wireless network interface 1950 configured to connect the apparatus 1900 to a network, and an input / output interface 1958. The apparatus 1900 may operate based on an operating system stored in the memory 1932, such as Windows Server TM , Mac OS X TM , Unix TM , Linux TM , FreeBSD TM or the like.

[0123] Those skilled in the art will readily conceive of other embodiments of the present disclosure after considering the specification and practicing the present disclosure. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure, which follow the general principles of the present disclosure and include known common knowledge or conventional technical means in the technical field not disclosed by the present disclosure. The specification and embodiments are to be considered as exemplary only, and the true scope and spirit of the present disclosure are pointed out by the following claims.

[0124] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.

Claims

1. A method for device control, applied to a first terminal, characterized in that, it includes: Based on the connection signal sent by the target device, obtain the usage status information of the first terminal; The target device is a device wirelessly connected to a second terminal; According to the usage status information, obtain the connection confidence value corresponding to the first terminal, where the connection confidence value is used to represent the probability of wireless connection between the first terminal and the target device; When the connection confidence value is greater than or equal to a preset threshold, control the target device to switch from wireless connection with the second terminal to wireless connection with the first terminal.

2. The method according to claim 1, characterized in that, The usage status information includes at least one type, and obtaining the connection confidence value corresponding to the first terminal according to the usage status information includes: For each type of usage status information, determine the confidence value corresponding to the usage status represented by the usage status information, and obtain the total confidence value corresponding to the usage status information, where different usage statuses correspond to different confidence values; the total confidence value is the sum of the confidence values corresponding to different usage statuses; According to the confidence value and the total confidence value, obtain the connection confidence value corresponding to the first terminal.

3. The method according to claim 2, characterized in that, The usage status information includes one type, and obtaining the connection confidence value corresponding to the first terminal according to the confidence value and the total confidence value includes: Taking the ratio of the confidence value to the total confidence value as the connection confidence value.

4. The method according to claim 2, characterized in that, The usage status information includes multiple types, and obtaining the connection confidence value corresponding to the first terminal according to the confidence value and the total confidence value includes: Obtain the first sum value of the confidence values corresponding to multiple types of usage status information; Obtain the second sum value of the total confidence values corresponding to multiple types of usage status information; Taking the ratio of the first sum value to the second sum value as the connection confidence value.

5. The method according to claim 1, characterized in that, The usage status information includes at least one of the following: The service type currently used by the first terminal; The current screen status of the first terminal; User information looking at the screen of the first terminal; The program type of the application currently running on the first terminal.

6. The method according to claim 1, characterized in that, The method further includes: When the target device is wirelessly connected to the first terminal, stop obtaining the connection confidence value corresponding to the first terminal.

7. The method according to claim 1, characterized in that, The method further includes: When the target device is not wirelessly connected to the first terminal, in response to receiving the prompt signal sent by the target device, stop obtaining the connection confidence value corresponding to the first terminal; wherein, the prompt signal is sent when the power of the target device is less than or equal to the preset power, or the prompt signal is sent when the target device is in a charging state.

8. The method according to any one of claims 1 to 7, wherein, the method further comprises: when the connection confidence value is greater than or equal to a preset threshold, outputting a connection prompt message for prompting a user whether to connect to the target device through the first terminal; the controlling the target device to switch from wirelessly connecting to the second terminal to wirelessly connecting to the first terminal when the connection confidence value is greater than or equal to the preset threshold comprises: when the connection confidence value is greater than or equal to the preset threshold, in response to receiving a connection confirmation message sent by the user based on the connection prompt message, controlling the target device to switch from wirelessly connecting to the second terminal to wirelessly connecting to the first terminal.

9. A device control apparatus, wherein, it comprises: a first acquisition module configured to acquire usage status information of the first terminal based on a connection signal sent by a target device; the target device is a device wirelessly connected to a second terminal; a second acquisition module configured to acquire a connection confidence value corresponding to the first terminal according to the usage status information, the connection confidence value being used to represent a probability of wireless connection between the first terminal and the target device; a control module configured to control the target device to switch from wirelessly connecting to the second terminal to wirelessly connecting to the first terminal when the connection confidence value is greater than or equal to a preset threshold.

10. A computer-readable storage medium, on which computer program instructions are stored, wherein, when the program instructions are executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.