Bluetooth earphone connection optimization method and device

By establishing a pre-connection between the terminal device and the Bluetooth headset, loading user preference information, and optimizing the volume, the problem of cumbersome connection between Bluetooth headsets and multiple smart terminal devices is solved, realizing intelligent and automated operation and improving the user experience.

CN115707148BActive Publication Date: 2026-05-29CHINA MOBILE (SUZHOU) SOFTWARE TECH CO LTD +1

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA MOBILE (SUZHOU) SOFTWARE TECH CO LTD
Filing Date
2021-08-06
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

Existing Bluetooth headsets are cumbersome to connect, configure, and switch between multiple smart terminal devices, resulting in a poor user experience. Furthermore, the interaction methods of the same headset need to be manually adjusted when adapting to different applications on different devices.

Method used

By establishing a pre-connection between the terminal device and the Bluetooth headset, loading user preference information, automatically adjusting the volume and connection method, and optimizing the pre-connection queue with cloud data, intelligent operation is achieved.

Benefits of technology

It enables Bluetooth headsets to automatically connect, configure, and switch between multiple smart terminal devices, improving the user experience and reducing manual intervention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115707148B_ABST
    Figure CN115707148B_ABST
Patent Text Reader

Abstract

The embodiment of the present application relates to the technical field of communication, and discloses a Bluetooth earphone connection optimization method, a terminal device and a cloud device, the method comprising: when the terminal device is online, a pre-connection is established with the Bluetooth earphone, and user preference information is loaded from the cloud, the user preference information comprising device preference information and application preference information, the device preference information at least comprising a commonly used place and a first preset volume; when the terminal device starts an application, pre-stored application preference information corresponding to the application is acquired, and the use volume of the Bluetooth earphone is pre-adjusted according to the application preference information, the application preference information at least comprising an application number, a commonly used time period and a second preset volume; a gesture command of a user to the Bluetooth earphone is listened to, and a connection is established with the Bluetooth earphone according to the gesture command. Through the above-mentioned mode, the embodiment of the present application can realize the automation and intelligentization of the connection, configuration and switching operation of a personal intelligent terminal, reduce manual intervention, and improve the use experience of consumers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communication technology, specifically to a method and apparatus for optimizing Bluetooth headset connections. Background Technology

[0002] With the widespread adoption of personal smart devices and Bluetooth headsets, modern consumers typically own at least two smart devices, all of which generally have Bluetooth connectivity. Scenarios where consumers seamlessly switch between multiple smart devices for work are becoming increasingly common. This is especially true during the current pandemic, with online work and video conferencing becoming increasingly prevalent. Using Bluetooth headsets to connect to smartphones for phone calls, or to personal PCs for video conferencing, listening to music, or watching movies, is also becoming more and more common. However, currently, connecting, configuring, and switching between Bluetooth headsets on different smart devices requires manual operation, resulting in a less than ideal user experience.

[0003] Existing technologies rely on manual control of Bluetooth headsets to connect, configure, and switch between personal smart devices, resulting in low efficiency and cumbersome operation, leading to a poor user experience. Furthermore, the same Bluetooth headset cannot be used simultaneously with different smart devices, and the left and right earbuds cannot be adapted to different applications. Additionally, the interaction between the headset and the smart device or user cannot be modified based on the characteristics of the application or smart device. Summary of the Invention

[0004] In view of the above problems, embodiments of the present invention provide a Bluetooth headset connection optimization method and apparatus, which overcomes or at least partially solves the above problems.

[0005] According to one aspect of the present invention, a Bluetooth headset connection optimization method is provided. The method includes: when a terminal device is online, establishing a pre-connection with the Bluetooth headset and loading user preference information from the cloud, the user preference information including device preference information and application preference information, the device preference information including at least frequently used locations and a first preset volume; when the terminal device opens an application, obtaining pre-stored application preference information corresponding to the application, and pre-adjusting the usage volume of the Bluetooth headset according to the application preference information, the application preference information including at least: application number, frequently used time period, and a second preset volume; listening to user gesture commands to the Bluetooth headset, and establishing a connection with the Bluetooth headset according to the gesture commands.

[0006] In one optional approach, the step of pre-adjusting the usage volume of the Bluetooth headset according to the application preference information includes: determining whether the current timestamp is within the commonly used time period in the application preference information; if not, adjusting the usage volume of the Bluetooth headset to the first preset volume corresponding to the commonly used location; if yes, adjusting the usage volume of the Bluetooth headset to the second preset volume corresponding to the commonly used time period.

[0007] In an optional embodiment, the method further includes: when the terminal device is connected to the Bluetooth headset, collecting device connection information from the start of the connection to the disconnection time period and uploading it to the cloud, the device connection information including: Bluetooth headset ID, device ID, device usage duration, device audio, device connection timestamp, device disconnection timestamp, and connection disconnection coordinates; when the terminal device is connected to the Bluetooth headset and using an application, collecting application connection information from the opening of the application to the closing of the application and uploading it to the cloud, the application connection information including: Bluetooth headset ID, application ID, application start timestamp, application end timestamp, application usage coordinates, application volume, and audio mode.

[0008] According to another aspect of the present invention, a Bluetooth headset connection optimization method is provided. The method includes: receiving pre-connection information uploaded by at least one terminal device; updating a pre-connection queue according to the pre-connection information at preset intervals; the pre-connection queue including: device number, connection rejection count, current online location of the device, and timestamp of device online status; determining frequently used devices included in the pre-connection queue based on pre-stored user preference information; if there is only one terminal device in the pre-connection queue, controlling the Bluetooth headset to connect to the terminal device; if there is only one frequently used device in the pre-connection queue whose current online location matches the frequently used location in the user preference information, controlling the Bluetooth headset to connect to the frequently used device; otherwise, maintaining the pre-connection state of the Bluetooth headset.

[0009] In an optional embodiment, the method further includes: when the Bluetooth headset is connected to the first terminal device, acquiring the pre-connection queue including at least one second terminal device; sequentially determining whether the distance between the second terminal device and the Bluetooth headset is less than a preset distance, whether the second terminal device is located in a frequently used location, and whether the application opened on the second terminal device is a user-preferred application; if all the determination results are yes, then controlling one earpiece of the Bluetooth headset to remain connected to the first terminal device and the other earpiece to be connected to the second terminal device; if the time period when the second terminal device is open is within a frequently used time period, then loading a second preset volume corresponding to the frequently used time period.

[0010] In one optional embodiment, the method further includes: acquiring device connection information and application connection information uploaded by any of the terminal devices; analyzing the device connection information to acquire device preference information; and analyzing the application connection information to acquire application preference information.

[0011] According to another aspect of the present invention, a terminal device is provided, the terminal device comprising: a pre-connection unit, configured to establish a pre-connection with a Bluetooth headset when the terminal device is online, and load user preference information from the cloud, the user preference information including device preference information and application preference information, the device preference information including at least frequently used locations and a first preset volume; a volume adjustment unit, configured to, when the terminal device opens an application, obtain pre-stored application preference information corresponding to the application, and pre-adjust the usage volume of the Bluetooth headset according to the application preference information, the application preference information including at least: application number, frequently used time period, and a second preset volume; and a first connection unit, configured to listen to user gesture commands to the Bluetooth headset, and establish a connection with the Bluetooth headset according to the gesture commands.

[0012] According to another aspect of the present invention, a cloud device is provided, the cloud device comprising: a queue update unit, configured to receive pre-connection information uploaded by at least one terminal device, and update a pre-connection queue according to the pre-connection information at preset intervals, the pre-connection queue including: device number, connection rejection count, current online location of the device, and timestamp of device online; a device determination unit, configured to determine frequently used devices included in the pre-connection queue according to pre-stored user preference information; and a second connection unit, configured to control a Bluetooth headset to connect to the terminal device if there is only one terminal device in the pre-connection queue; control a Bluetooth headset to connect to the frequently used device if there is only one frequently used device in the pre-connection queue whose current online location matches the frequently used location in the user preference information; otherwise, maintain the pre-connection state of the Bluetooth headset.

[0013] According to another aspect of the present invention, a computing device is provided, including: a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface communicate with each other through the communication bus;

[0014] The memory is used to store at least one executable instruction, which causes the processor to perform the steps of the Bluetooth headset connection optimization method described above.

[0015] According to another aspect of the present invention, a computer storage medium is provided, the storage medium storing at least one executable instruction, the executable instruction causing the processor to perform the steps of the above-described Bluetooth headset connection optimization method.

[0016] In this embodiment of the invention, when the terminal device is online, a pre-connection is established with the Bluetooth headset, and user preference information is loaded from the cloud. The user preference information includes device preference information and application preference information. The device preference information includes at least frequently used locations and a first preset volume. When the terminal device opens an application, it obtains the pre-stored application preference information corresponding to the application and pre-adjusts the usage volume of the Bluetooth headset according to the application preference information. The application preference information includes at least: application number, frequently used time period, and a second preset volume. The device listens for user gesture commands to the Bluetooth headset and establishes a connection with the Bluetooth headset according to the gesture commands. This enables the automation and intelligentization of connection, configuration, and switching operations of personal smart terminals, reduces manual intervention, and improves the user experience.

[0017] The above description is merely an overview of the technical solutions of the embodiments of the present invention. In order to better understand the technical means of the embodiments of the present invention and to implement them in accordance with the contents of the specification, and to make the above and other objects, features and advantages of the embodiments of the present invention more apparent and understandable, specific embodiments of the present invention are described below. Attached Figure Description

[0018] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:

[0019] Figure 1 A schematic diagram of the Bluetooth headset connection optimization system provided in an embodiment of the present invention is shown;

[0020] Figure 2 A flowchart illustrating the Bluetooth headset connection optimization method provided in an embodiment of the present invention is shown.

[0021] Figure 3 This diagram illustrates a pre-connection schematic of the Bluetooth headset connection optimization method provided in an embodiment of the present invention.

[0022] Figure 4 A flowchart illustrating another Bluetooth headset connection optimization method provided by an embodiment of the present invention is shown;

[0023] Figure 5This diagram illustrates the connection of multiple terminal devices in the Bluetooth headset connection optimization method provided in an embodiment of the present invention.

[0024] Figure 6 This diagram illustrates the connection of a Bluetooth headset in a working state using the Bluetooth headset connection optimization method provided in this embodiment of the invention.

[0025] Figure 7 A schematic diagram of the structure of the terminal device provided in an embodiment of the present invention is shown;

[0026] Figure 8 A schematic diagram of the structure of the cloud device provided in an embodiment of the present invention is shown;

[0027] Figure 9 A schematic diagram of the structure of a computing device provided in an embodiment of the present invention is shown;

[0028] Figure 10 A schematic diagram of the structure of another computing device provided in an embodiment of the present invention is shown. Detailed Implementation

[0029] Exemplary embodiments of the invention will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this invention will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.

[0030] Figure 1 A schematic diagram of the Bluetooth headset connection optimization system provided in an embodiment of the present invention is shown. Figure 1 As shown, the Bluetooth headset connection optimization system includes cloud devices and terminal devices. The cloud devices are responsible for storing the user's Bluetooth headset's device connection history information and application connection history information. Based on these information, the cloud devices automatically learn the Bluetooth headset user's preference information and manage the Bluetooth device's pre-connection information. The terminal devices are responsible for collecting the Bluetooth headset's connection information and application connection information, uploading this data to the cloud devices, synchronizing the cloud devices' Bluetooth headset user preference information, performing pre-connection operations on the Bluetooth headset, and monitoring user gesture commands to perform connection and release operations on the Bluetooth headset.

[0031] This invention utilizes a smart terminal device to combine Bluetooth headset connection information, user's current geographical location information, terminal device information, and terminal APP information to obtain user connection preferences and pre-connect the Bluetooth headset and terminal device. After pre-connection, the Bluetooth headset is in an initial state where it is powered on and online but has not yet established any connection. At this time, the Bluetooth headset can be further optimized by selecting a volume corresponding to the user's preference information. Based on the optimization of the Bluetooth headset's working state, i.e., the Bluetooth headset further selects the APP to connect to when choosing different terminal devices, it can also select different terminal devices for connection after the Bluetooth headset is operational. The left and right earbuds can optimize sound output according to different APPs on different connected terminal devices, while also changing the interaction method between the earbuds and the terminal device or APP.

[0032] Figure 2 This diagram illustrates a flowchart of a Bluetooth headset connection optimization method provided by an embodiment of the present invention. This Bluetooth headset connection optimization method is applied to terminal devices, such as… Figure 2 As shown, the Bluetooth headset connection optimization methods include:

[0033] Step S11: When the terminal device is online, it establishes a pre-connection with the Bluetooth headset and loads user preference information from the cloud. The user preference information includes device preference information and application preference information. The device preference information includes at least frequently used locations and a first preset volume.

[0034] In this embodiment of the invention, optionally, when the terminal device is online, it actively initiates a pre-connection with the Bluetooth headset. It determines whether the Bluetooth headset is within the connectable range; if so, the pre-connection is successful, and the pre-connection information is synchronized to the cloud so that the cloud can update the pre-connection queue. Simultaneously, the latest user preference information, including device preference information and application preference information, is synchronized to the cloud and loaded locally onto the terminal device to facilitate subsequent pre-connection with the Bluetooth headset based on user preference information. Device preference information includes: device ID, device type, frequently used locations, and a first preset volume corresponding to the frequently used location. Application preference information includes: application ID, application type, frequently used time period, and a second preset volume corresponding to the frequently used time period. The first and second preset volumes can be set separately as needed.

[0035] Step S12: When the terminal device opens an application, it obtains the pre-stored application preference information corresponding to the application, and adjusts the usage volume of the Bluetooth headset in advance according to the application preference information. The application preference information includes at least: application number, frequently used time period and second preset volume.

[0036] In this embodiment of the invention, the terminal device may have multiple application preference information corresponding to different applications. When the terminal device opens an application, it triggers user preference recognition, retrieves the pre-stored application preference information corresponding to the application, and loads the user preference information of the terminal device or the type of terminal device based on whether the terminal device is a frequently used device or a frequently used device type. This optimizes the Bluetooth headset settings to the user preference settings, thereby improving the user experience. In step S12, optionally, it is determined whether the current timestamp is within the frequently used time period in the application preference information; if not, the volume of the Bluetooth headset is adjusted to the first preset volume corresponding to the frequently used location; if yes, the volume of the Bluetooth headset is adjusted to the second preset volume corresponding to the frequently used time period. Figure 3 As shown, it includes:

[0037] Step S120: The Bluetooth headset is in a pre-connection state, waiting for the user to operate on the terminal device.

[0038] When the terminal device is online, it automatically pre-connects with the Bluetooth headset and then waits for the user to operate on the terminal device to establish the actual connection.

[0039] Step S121: When the application is opened on the terminal device, the user preference recognition of the terminal device is triggered to obtain the application opening information to continue the pre-connection operation.

[0040] Application opening information includes: application ID, application type, and current timestamp.

[0041] Step S122: Read application preference information.

[0042] Read the application preference information corresponding to the opened application, including: application ID, application type, second preset volume, and frequently used time period. The second preset volume corresponds to the frequently used time period.

[0043] Step S123: Determine if the application has application preference information. If no, proceed to step S124; if yes, proceed to step S125.

[0044] Step S124: Keep the Bluetooth headset in pre-connected state and wait for the user to manually connect.

[0045] If the application does not have corresponding application preference information, that is, if the corresponding application preference information is not read in step S122, no operation will be performed, and the Bluetooth headset will remain in the pre-connection state, waiting for the user to manually connect.

[0046] Step S125: Connect the Bluetooth headset to the terminal device.

[0047] If the application has corresponding application preference information, then the Bluetooth headset will connect to the terminal device.

[0048] Step S126: Determine whether the current timestamp falls within a frequently used time period in the application preference information. If no, proceed to step S127; if yes, proceed to step S128.

[0049] Determine whether the current timestamp falls within the commonly used time period specified in the application preference information based on application preference information and application opening information.

[0050] Step S127: Load the first preset volume of the terminal device.

[0051] If the current timestamp is not within the frequently used time period in the application preference information, then the first preset volume of the terminal device is loaded according to the frequently used location of the terminal device, and the first preset volume corresponds to the frequently used location of the terminal device.

[0052] Step S128: The terminal device loads the second preset volume.

[0053] The current timestamp is within a commonly used time period in the application preference information. The terminal device loads the second preset volume, which corresponds to the commonly used time period.

[0054] Step S129: Wait for the user to connect manually.

[0055] At this point, the terminal device and the Bluetooth headset have established a complete pre-connection, and the pre-connection information is uploaded to the cloud. The Bluetooth headset is in a pre-connection state, meaning it is powered on and online but has not yet established any connection. The user is then required to manually connect the terminal device and the Bluetooth headset.

[0056] Step S13: Listen for the user's gesture commands to the Bluetooth headset, and establish a connection with the Bluetooth headset according to the gesture commands.

[0057] In this embodiment of the invention, the system listens for user gesture commands to the Bluetooth headset and determines whether to refuse the connection or initiate a connection confirmation operation based on the gesture command. If the connection is refused, the rejection count is incremented by 1, and pre-connection information is uploaded. If the connection is confirmed, a connection is established between the terminal device and the Bluetooth device.

[0058] In this embodiment of the invention, when the terminal device is connected to the Bluetooth headset, device connection information is collected and uploaded to the cloud during the time period from the start of the connection to its disconnection. The device connection information BT_EQ_INFO includes: Bluetooth headset ID, device ID, device usage duration, device audio, device connection timestamp, device disconnection timestamp, and connection disconnection coordinates.

[0059] When the terminal device connects to the Bluetooth headset and uses an application, the application connection information for the period from when the application is opened to when it is closed is collected and uploaded to the cloud. The application connection information includes: Bluetooth headset ID, application ID, application start timestamp, application end timestamp, coordinates of the application usage point, application volume, and audio mode.

[0060] Preferably, during the online period of the terminal device, the device connection information BT_EQ_INFO and application connection information BT_APP_INFO are uploaded to the cloud at hourly intervals. When the terminal device goes offline, the device connection information BT_EQ_INFO and application connection information BT_APP_INFO from the current online period are iterated through, and any BT_EQ_INFO and application connection information BT_APP_INFO that have not yet been synchronized are updated to the cloud so that the cloud can obtain user preference information based on the device connection information BT_EQ_INFO and application connection information BT_APP_INFO. After synchronization is complete, the device continues the offline operation.

[0061] In this embodiment of the invention, the terminal device reads the user's application usage preferences and automatically triggers the pre-connection, connection, and switching access actions of the Bluetooth headset. The entire process is imperceptible to the consumer, realizing the automation and intelligence of connection, configuration, and switching operations of personal smart terminals, reducing manual intervention, and effectively improving the consumer's user experience.

[0062] In this embodiment of the invention, when the terminal device is online, a pre-connection is established with the Bluetooth headset, and user preference information is loaded from the cloud. The user preference information includes device preference information and application preference information. The device preference information includes at least frequently used locations and a first preset volume. When the terminal device opens an application, it obtains the pre-stored application preference information corresponding to the application and pre-adjusts the usage volume of the Bluetooth headset according to the application preference information. The application preference information includes at least: application number, frequently used time period, and a second preset volume. The device listens for user gesture commands to the Bluetooth headset and establishes a connection with the Bluetooth headset according to the gesture commands. This enables the automation and intelligentization of connection, configuration, and switching operations of personal smart terminals, reduces manual intervention, and improves the user experience.

[0063] Figure 4 This diagram illustrates a flowchart of a Bluetooth headset connection optimization method provided by an embodiment of the present invention. This Bluetooth headset connection optimization method is applied to cloud devices, such as… Figure 4 As shown, the Bluetooth headset connection optimization methods include:

[0064] Step S21: Receive pre-connection information uploaded by at least one terminal device, and update the pre-connection queue according to the pre-connection information at preset intervals. The pre-connection queue includes: device number, number of connection rejections, current online location of the device, and timestamp of the device being online.

[0065] When any terminal device is online, it actively pre-connects to the Bluetooth headset to determine if the headset is within range. If within range, pre-connection is initiated. If pre-connection is successful, the terminal device synchronizes the pre-connection information to the cloud device. The cloud device receives the pre-connection information uploaded by the terminal device and manages the pre-connection information for that Bluetooth headset, maintaining a corresponding pre-connection queue. The pre-connection queue `bt_id_waiting_queue` includes: device ID, number of connection rejections, current online location of the device, and timestamp of the device's online status.

[0066] Step S22: Determine the commonly used devices included in the pre-connection queue based on the pre-stored user preference information.

[0067] Optionally, pre-stored user preference information corresponding to each terminal device can be obtained. If the device number in the pre-connection queue bt_id_waiting_queue matches the device number in the user preference information, it indicates that the frequently used device exists in the pre-connection queue bt_id_waiting_queue. The number of frequently used devices included in the pre-connection queue bt_id_waiting_queue is counted. This embodiment of the invention also sorts the terminal devices in the pre-connection queue in descending order based on the number of rejections, the distance of the device's current online location, and the timestamp of the device's online status, and then reads the user preference information.

[0068] In this embodiment of the invention, the cloud device also performs a user preference pattern learning process for the Bluetooth headset. Optionally, it acquires device connection information and application connection information uploaded by any of the terminal devices; analyzes the device connection information to obtain device preference information; and analyzes the application connection information to obtain application preference information.

[0069] After the Bluetooth headset is connected, the cloud device stores the historical device connection information (BT_EQ_INFO) uploaded by the terminal device connected to the Bluetooth headset, as well as the historical application connection information (BT_APP_INFO) on the terminal device. The historical device connection information (BT_EQ_INFO) includes the Bluetooth headset ID, device ID, device usage duration, device audio, connection timestamp, disconnection timestamp, and connection / disconnection coordinates. The historical application connection information (BT_APP_INFO) includes the Bluetooth headset ID, application ID, application audio start timestamp, application audio end timestamp, application usage coordinates, application usage volume, and audio mode. Based on the historical device connection information (BT_EQ_INFO) and historical application connection information (BT_APP_INFO) of the Bluetooth-connected terminal device, user preference patterns are self-learned, and the user preference information for the Bluetooth headset is output, including device preference information and application preference information. Device preference information includes: device ID, device type, frequently used locations, and a first preset volume corresponding to the frequently used locations. Application preference information includes: application ID, application type, frequently used time period, and a second preset volume corresponding to the frequently used time period.

[0070] The user preference pattern learning process includes: firstly, classifying terminal devices, applications, and locations. In this embodiment of the invention, terminal devices can be classified as personal computers (PCs), mobile phones, and smart terminals, etc.; applications can be classified as office, learning, entertainment, and general applications, etc.; and locations can be classified as workplaces, rest areas, entertainment venues, and public places, etc.

[0071] Then, for each terminal device, the frequently used locations and their corresponding first preset volume values ​​are statistically analyzed. For each terminal device, it is categorized based on its operating system (PC, mobile phone, smart terminal). Frequently used locations are those where the single online duration exceeds a first time threshold within a day and the number of times a location appears repeatedly within a week exceeds a first preset number. The first time threshold is preferably 10 minutes, and the first preset number of times is preferably 5. Frequently used locations are categorized by requesting the map provider to obtain the location type (office, rest area, entertainment venue, public place). The first preset volume values ​​for these frequently used locations are statistically analyzed. These are the volume values ​​where the single connection duration exceeds the first time threshold within at least one week. The median of these volume values ​​is taken, and the variance of the first preset volume values ​​from the previous week is calculated and corrected. The second preset number of times is preferably 7.

[0072] Finally, for each application, the commonly used time periods and the corresponding second preset volume are statistically analyzed. For each application, it is first categorized (office, study, entertainment, general). The commonly used volume, i.e., the second preset volume, is calculated by counting the volume levels of single uses exceeding a first time threshold within at least a week, taking the median, and correcting for the variance of the second preset volume from the previous week. The commonly used time periods are then recorded by noting the application's second preset volume and the time period in which it occurs. The time is rounded before and after the corresponding time point, with the smallest span being the third time threshold and the largest not exceeding the fourth time threshold. The third time threshold is preferably 1 hour, and the fourth time threshold is preferably 2 hours.

[0073] Step S23: If there is only one terminal device in the pre-connection queue, control the Bluetooth headset to connect to the terminal device; if there is only one frequently used device in the pre-connection queue whose current online location matches the frequently used location in the user preference information, control the Bluetooth headset to connect to the frequently used device; otherwise, maintain the current pre-connection state of the Bluetooth headset.

[0074] In step S23, the connection between the terminal device and the Bluetooth headset is controlled based on the statistically analyzed number of frequently used devices. If there is only one terminal device in the pre-connection queue, the Bluetooth headset is connected to the terminal device, which can be a frequently used device or a non-frequently used device. If it is a frequently used device and located in a frequently used location, a first preset volume is loaded after the Bluetooth headset is connected to the terminal device. If it is not a frequently used device, user preference learning for that terminal device begins after the Bluetooth headset is connected to the terminal device. If there is only one frequently used device in the pre-connection queue whose current online coordinates match the frequently used location in the user preference information (i.e., there is one frequently used device in the pre-connection queue and it is located in a frequently used location), the Bluetooth headset is connected to the frequently used device, i.e., the connection is optimized for that terminal device to improve the user experience. If there are no frequently used devices, multiple frequently used devices, or multiple non-frequently used devices in the pre-connection queue, the current pre-connection state of the Bluetooth headset is maintained.

[0075] Bluetooth headset connection optimization method based on multiple terminal devices, such as Figure 5 As shown, it includes:

[0076] Step S130: Receive pre-connection information uploaded by the terminal device and manage the pre-connection queue.

[0077] The pre-connection queue includes: device ID, number of connection rejections, device's current online location, and device online timestamp.

[0078] Step S131: Wait for a preset time to check if there are ≥1 terminal devices in the pre-connection queue. If yes, proceed to step S132; otherwise, return to step S130.

[0079] The preset time can be set as needed, preferably 5 seconds. If there are fewer than 1 terminal devices in the pre-connection queue, meaning there are no pre-connection terminal devices in the pre-connection queue, then wait for the preset time until the terminal devices upload their pre-connection information.

[0080] Step S132: Sort the terminal devices in the pre-connection queue in descending order according to the number of rejections, the distance of the device's current online location, and the timestamp of the device's online status, and read the user preference information.

[0081] If there are multiple terminal devices in the pre-connection queue, they are sorted in descending order of the number of rejections, distance from the current online location, and timestamp of the online status. Simultaneously, user preference information is obtained, primarily device preference information corresponding to each terminal device, including device ID, device type, frequently used locations, and the first preset volume corresponding to those locations.

[0082] Step S133: Determine the number of frequently used devices in the pre-connection queue. If the number of frequently used devices is 1, proceed to step S134; if the number of frequently used devices is 0, proceed to step S135; if the number of frequently used devices is greater than 1, proceed to step S137.

[0083] If device preference information of the terminal device is obtained in step S132, then the terminal device is a frequently used device, and the number of frequently used devices is counted. The pre-connection queue may contain no frequently used devices, or it may contain only one or multiple frequently used devices.

[0084] Step S134: Determine whether the device's current online location is consistent with its commonly used location. If yes, proceed to step S138; otherwise, proceed to step S139.

[0085] If there is only one frequently used device in the pre-connection queue, it is further determined whether the current online location of the frequently used device is consistent with the frequently used location in the device preference information.

[0086] Step S135: Determine the number of terminal devices in the pre-connection queue. If the number of terminal devices = 1, proceed to step S136; if the number of terminal devices > 1, proceed to step S139.

[0087] If there are no frequently used devices in the pre-connection queue, the number of terminal devices in the pre-connection queue is further determined. This number of terminal devices refers to the number of non-frequently used devices.

[0088] Step S136: The terminal device automatically connects to the Bluetooth headset.

[0089] If the number of terminal devices that are not frequently used in the pre-connection queue is 1, the terminal device will automatically connect to the Bluetooth headset and then begin the preference mode learning process for that terminal device.

[0090] Step S137: Determine the number of frequently used devices whose current online location matches their frequently used location. If the number of frequently used devices is 1, proceed to step S138; if the number of frequently used devices is greater than 1, proceed to step S139.

[0091] If there are multiple frequently used devices in the pre-connection queue, then the number of frequently used devices in the pre-connection queue whose current online location matches their frequently used location is further determined. If the number of frequently used devices whose current online location matches their frequently used location is 1, then step S138 is executed. If the number of frequently used devices whose current online location matches their frequently used location is 0 or greater than 1, then step S139 is executed.

[0092] Step S138: Connect the terminal device and load the first preset volume.

[0093] If the device's current online location matches its usual location, connect the terminal device and load the first preset volume corresponding to the usual location.

[0094] Step S139: Keep the Bluetooth headset in pre-connected state.

[0095] If the device's current online location is different from its usual location, the Bluetooth headset will remain in pre-connected state, waiting for the user to manually connect.

[0096] In this embodiment of the invention, optionally, when the Bluetooth headset is connected to the first terminal device, a pre-connection queue including at least one second terminal device is acquired; according to a preset order, it is determined whether the distance between the second terminal device and the Bluetooth headset is less than a preset distance, whether the second terminal device is located in a frequently used location, and whether the application opened on the second terminal device is a user-preferred application; if all the determination results are yes, then one earpiece of the Bluetooth headset is controlled to remain connected to the first terminal device, and the other earpiece is connected to the second terminal device; if the time period when the second terminal device is open is within a frequently used time period, then a second preset volume corresponding to the frequently used time period is loaded. Connection optimization of the Bluetooth headset in working state is as follows: Figure 6 As shown, it includes:

[0097] Step S300: The Bluetooth headset is connected to the first terminal device. The application on the first terminal device outputs audio to the Bluetooth headset and obtains and updates the pre-connection queue.

[0098] The Bluetooth headset is connected to the first terminal device, and the application on the first terminal device is outputting audio to the Bluetooth headset, meaning the Bluetooth headset is active. The cloud device retrieves and updates the pre-connection queue. Since the first terminal device is already connected to the Bluetooth headset, it is not in the preset connection queue. At this time, it still receives pre-connection messages uploaded by the terminal device, retrieves the pre-connection queue, and updates it.

[0099] Step S301: Determine if the number of terminal devices in the pre-connection queue is greater than 0. If not, return to step S300; if yes, proceed to step S302.

[0100] Check if the number of terminal devices in the pre-connection queue is 0, i.e., whether there are any terminal devices in the pre-connection queue. Simultaneously, record the number of times a terminal device's connection has been rejected by the user; the initial value for the rejection count is 0.

[0101] Step S302: Sort the terminal devices in the pre-connection queue in descending order of the number of rejections, the distance of the device's current online location, and the timestamp of the device's online status. If any application is opened on a terminal device in the pre-connection queue, process it in the order of sorting.

[0102] For terminal devices in the pre-connection queue, they are sorted in descending order of the number of times they were rejected, then by distance from the current online location, and finally by the timestamp of their online status. If an application is opened on a terminal device in the pre-connection queue, it is processed sequentially according to the sorting order.

[0103] Step S303: Read user preference information.

[0104] Read user preference information from a second terminal device where an application is open, including device preference information and application preference information.

[0105] Step S304: Determine whether the distance between the second terminal device and the Bluetooth headset is no greater than a preset distance. If not, return to step S301; if yes, proceed to step S305.

[0106] The distance between the second terminal device and the Bluetooth headset is obtained, and it is determined whether this distance is not greater than a preset distance. The preset distance can be set as needed; preferably, it is 5m. That is, if the distance between the second terminal device and the Bluetooth headset is less than or equal to 5m, step S305 is executed; if it is greater than 5m, the process returns to step S301.

[0107] Step S305: Determine whether the second terminal device is located in a frequently used location. If not, return to step S301; if yes, proceed to step S306.

[0108] If the distance between the second terminal device and the Bluetooth headset is less than or equal to a preset distance, then it is further determined whether the second terminal device is located in a frequently used location. That is, if the current online location of the second terminal device is consistent with the frequently used location in the device preference information, then step S306 is executed; otherwise, step S301 is executed.

[0109] Step S306: Determine whether the application opened on the second terminal device is a user-preferred application. If no, return to step S301; if yes, proceed to step S307.

[0110] If the second terminal device is located in a frequently used location, the system continues to determine whether the application opened on the second terminal device is a user-preferred application. If the user preference information obtained in step S303 includes application preference information corresponding to the application opened on the second terminal device, it indicates that the application opened on the second terminal device is a user-preferred application.

[0111] Step S307: Determine whether the left earpiece remains connected to the first terminal device and the right earpiece will connect to the second terminal device. Confirm the connection. If not, return to step S301; if yes, proceed to step S308.

[0112] If the application opened on the second terminal device is a user-preferred application, the left earpiece remains connected to the first terminal device, while the right earpiece connects to the second terminal device, and the second terminal device requests user confirmation. If user confirmation is received, step S308 is executed. If user connection rejection is received, meaning the user does not need to connect to the second terminal device at this time, the process returns to step S301, and the rejection count is incremented by 1. If the user taps the right earpiece once, the connection is confirmed; if no tap is detected, it indicates that the user has rejected the connection.

[0113] Step S308: The right earphone is connected to the second terminal device.

[0114] After the user confirms the connection, the right earphone is connected to the second terminal device, thus enabling the two earphones to connect to different terminal devices respectively.

[0115] Step S309: Determine if it falls within a common time period. If not, proceed to step S310; if yes, proceed to step S311.

[0116] That is, determine whether the device's online timestamp of the second terminal device belongs to the commonly used time period in the corresponding application preference information. If so, it means that it is within the commonly used time period.

[0117] Step S310: Load the first preset volume.

[0118] If it is not during a commonly used time period, load the first preset volume corresponding to the commonly used location of the second terminal device. Start the new usage time period for the opened application and begin the preference mode learning process.

[0119] Step S311: Load the second preset volume, and the right earphone becomes the second terminal device.

[0120] If it is within a common time period, the second preset volume corresponding to the common time period of the opened application is loaded, and the Bluetooth headset works as the second terminal device.

[0121] Step S312: Wait for the connection release command.

[0122] Waiting for user input to release the connection command. For example, if the user taps the right earpiece twice, it means that the user input to release the connection command has been received. In response to the command, the connection between the right earpiece and the second terminal device is disconnected.

[0123] In this embodiment of the invention, if the Bluetooth headset remains in a pre-connected state in scenarios not covered by the preferred Bluetooth headset mode, the user needs to manually complete the connection. This can be achieved by tapping a single earbud to manually connect and disconnect the pre-connected device, reducing manual configuration on the terminal device and improving the user experience. For example, tapping the left or right earbud once manually connects the left or right earbud to the corresponding terminal device. Tapping the left or right earbud twice manually disconnects the left or right earbud from the corresponding terminal device.

[0124] In this embodiment of the invention, the terminal device reads the user's usage preferences for the terminal device and automatically triggers the pre-connection, connection, and switching access actions of the terminal device to the Bluetooth headset. The entire process is imperceptible to the consumer, realizing the automation and intelligence of connection, configuration, and switching operations of personal smart terminals, reducing manual intervention, and effectively improving the consumer's user experience.

[0125] This invention, through receiving pre-connection information uploaded by at least one terminal device, updates a pre-connection queue at preset intervals based on the pre-connection information. The pre-connection queue includes: device number, number of connection rejections, current online location of the device, and timestamp of the device's online status. It determines frequently used devices included in the pre-connection queue based on pre-stored user preference information. If there is only one terminal device in the pre-connection queue, it controls the Bluetooth headset to connect to that terminal device. If there is only one frequently used device in the pre-connection queue whose current online location matches a frequently used location in the user preference information, it controls the Bluetooth headset to connect to that frequently used device. Otherwise, it maintains the pre-connection state of the Bluetooth headset. This automates and intelligently manages the connection, configuration, and switching operations of personal smart terminals, reducing manual intervention and improving the user experience.

[0126] Figure 7 A schematic diagram of the structure of a terminal device according to an embodiment of the present invention is shown. Figure 7 As shown, the terminal device includes: a pre-connection unit 701, a volume adjustment unit 702, a first connection unit 703, and an information acquisition unit 704. Wherein:

[0127] The pre-connection unit 701 is used to establish a pre-connection with the Bluetooth headset when the terminal device is online, and to load user preference information from the cloud. The user preference information includes device preference information and application preference information. The device preference information includes at least frequently used locations and a first preset volume. The volume adjustment unit 702 is used to obtain the pre-stored application preference information corresponding to the application when the terminal device opens an application, and to pre-adjust the usage volume of the Bluetooth headset according to the application preference information. The application preference information includes at least: application number, frequently used time period, and a second preset volume. The first connection unit 703 is used to listen to the user's gesture commands to the Bluetooth headset and establish a connection with the Bluetooth headset according to the gesture commands.

[0128] In one alternative approach, the volume adjustment unit 702 is configured to: determine whether the current timestamp is located within the commonly used time period in the application preference information; if not, adjust the usage volume of the Bluetooth headset to the first preset volume corresponding to the commonly used location; if yes, adjust the usage volume of the Bluetooth headset to the second preset volume corresponding to the commonly used time period.

[0129] In one optional embodiment, the information acquisition unit 704 is configured to: when the terminal device is connected to the Bluetooth headset, acquire device connection information from the start of the connection to the disconnection time period and upload it to the cloud, the device connection information including: Bluetooth headset ID, device ID, device usage duration, device audio, device connection timestamp, device disconnection timestamp, and connection disconnection coordinate point; when the terminal device is connected to the Bluetooth headset and uses an application, acquire application connection information from the opening of the application to the closing of the application and upload it to the cloud, the application connection information including: Bluetooth headset ID, application ID, application start timestamp, application end timestamp, application usage coordinate point, application usage volume, and audio mode.

[0130] In this embodiment of the invention, when the terminal device is online, a pre-connection is established with the Bluetooth headset, and user preference information is loaded from the cloud. The user preference information includes device preference information and application preference information. The device preference information includes at least frequently used locations and a first preset volume. When the terminal device opens an application, it obtains the pre-stored application preference information corresponding to the application and pre-adjusts the usage volume of the Bluetooth headset according to the application preference information. The application preference information includes at least: application number, frequently used time period, and a second preset volume. The device listens for user gesture commands to the Bluetooth headset and establishes a connection with the Bluetooth headset according to the gesture commands. This enables the automation and intelligentization of connection, configuration, and switching operations of personal smart terminals, reduces manual intervention, and improves the user experience.

[0131] Figure 8 A schematic diagram of the structure of a cloud device according to an embodiment of the present invention is shown. Figure 8 As shown, the cloud device includes: a queue update unit 801, a device determination unit 802, a second connection unit 803, and an information analysis unit 804. Wherein:

[0132] The queue update unit 801 is used to receive pre-connection information uploaded by at least one terminal device, and update the pre-connection queue according to the pre-connection information at preset intervals. The pre-connection queue includes: device number, number of connection rejections, current online location of the device, and timestamp of the device being online. The device determination unit 802 is used to determine the frequently used devices included in the pre-connection queue according to pre-stored user preference information. The second connection unit 803 is used to control the Bluetooth headset to connect to the terminal device if there is only one terminal device in the pre-connection queue; if there is only one frequently used device in the pre-connection queue whose current online location matches the frequently used location in the user preference information, then control the Bluetooth headset to connect to the frequently used device; otherwise, maintain the pre-connection state of the Bluetooth headset.

[0133] In one optional embodiment, the second connection unit 803 is configured to: when the Bluetooth headset is connected to the first terminal device, acquire the pre-connection queue including at least one second terminal device; sequentially determine whether the distance between the second terminal device and the Bluetooth headset is less than a preset distance, whether the second terminal device is located in a frequently used location, and whether the application opened on the second terminal device is a user-preferred application; if all the determination results are yes, then control one earpiece of the Bluetooth headset to remain connected to the first terminal device, and the other earpiece to be connected to the second terminal device; if the time period when the second terminal device is open is within a frequently used time period, then load a second preset volume corresponding to the frequently used time period.

[0134] In one optional embodiment, the information analysis unit 804 is configured to: acquire device connection information and application connection information uploaded by any of the terminal devices; analyze the device connection information to acquire device preference information; and analyze the application connection information to acquire application preference information.

[0135] This invention, through receiving pre-connection information uploaded by at least one terminal device, updates a pre-connection queue at preset intervals based on the pre-connection information. The pre-connection queue includes: device number, number of connection rejections, current online location of the device, and timestamp of the device's online status. It determines frequently used devices included in the pre-connection queue based on pre-stored user preference information. If there is only one terminal device in the pre-connection queue, it controls the Bluetooth headset to connect to that terminal device. If there is only one frequently used device in the pre-connection queue whose current online location matches a frequently used location in the user preference information, it controls the Bluetooth headset to connect to that frequently used device. Otherwise, it maintains the pre-connection state of the Bluetooth headset. This automates and intelligently manages the connection, configuration, and switching operations of personal smart terminals, reducing manual intervention and improving the user experience.

[0136] This invention provides a non-volatile computer storage medium storing at least one executable instruction that can execute the Bluetooth headset connection optimization method in any of the above method embodiments.

[0137] Executable instructions can specifically be used to cause the processor to perform the following operations:

[0138] When the terminal device is online, it establishes a pre-connection with the Bluetooth headset and loads user preference information from the cloud. The user preference information includes device preference information and application preference information. The device preference information includes at least frequently used locations and a first preset volume.

[0139] When the terminal device opens an application, it obtains the pre-stored application preference information corresponding to the application, and adjusts the usage volume of the Bluetooth headset in advance according to the application preference information. The application preference information includes at least: application number, frequently used time period and second preset volume.

[0140] Listen for user gesture commands to the Bluetooth headset and establish a connection with the Bluetooth headset based on the gesture commands.

[0141] In an alternative approach, the executable instructions cause the processor to perform the following operations:

[0142] Determine whether the current timestamp falls within the commonly used time period in the application preference information;

[0143] If not, adjust the volume of the Bluetooth headset to the first preset volume corresponding to the commonly used location;

[0144] If so, adjust the volume of the Bluetooth headset to a second preset volume corresponding to the commonly used time period.

[0145] In an alternative approach, the executable instructions cause the processor to perform the following operations:

[0146] When the terminal device is connected to the Bluetooth headset, the device connection information during the time period from the start of the connection to the disconnection is collected and uploaded to the cloud. The device connection information includes: Bluetooth headset number, device number, device usage duration, device audio, device connection timestamp, device disconnection timestamp, and connection disconnection coordinates.

[0147] When the terminal device is connected to the Bluetooth headset and uses an application, the application connection information during the time period from when the application is opened to when the application is closed is collected and uploaded to the cloud. The application connection information includes: Bluetooth headset number, application number, application start timestamp, application end timestamp, coordinates of the application usage, application volume, and audio mode.

[0148] In this embodiment of the invention, when the terminal device is online, a pre-connection is established with the Bluetooth headset, and user preference information is loaded from the cloud. The user preference information includes device preference information and application preference information. The device preference information includes at least frequently used locations and a first preset volume. When the terminal device opens an application, it obtains the pre-stored application preference information corresponding to the application and pre-adjusts the usage volume of the Bluetooth headset according to the application preference information. The application preference information includes at least: application number, frequently used time period, and a second preset volume. The device listens for user gesture commands to the Bluetooth headset and establishes a connection with the Bluetooth headset according to the gesture commands. This enables the automation and intelligentization of connection, configuration, and switching operations of personal smart terminals, reduces manual intervention, and improves the user experience.

[0149] This invention provides yet another non-volatile computer storage medium, which stores at least one executable instruction that can execute the Bluetooth headset connection optimization method in any of the above method embodiments.

[0150] Executable instructions can specifically be used to cause the processor to perform the following operations:

[0151] The system receives pre-connection information uploaded by at least one terminal device and updates the pre-connection queue according to the pre-connection information at preset intervals. The pre-connection queue includes: device number, number of connection rejections, current online location of the device, and timestamp of the device being online.

[0152] The commonly used devices included in the pre-connection queue are determined based on pre-stored user preference information;

[0153] If there is only one terminal device in the pre-connection queue, the Bluetooth headset is controlled to connect to the terminal device; if there is only one frequently used device in the pre-connection queue whose current online location matches the frequently used location in the user's preference information, the Bluetooth headset is controlled to connect to the frequently used device; otherwise, the pre-connection state of the Bluetooth headset is maintained.

[0154] In an alternative approach, the executable instructions cause the processor to perform the following operations:

[0155] When the Bluetooth headset is connected to the first terminal device, the pre-connection queue, which includes at least one second terminal device, is acquired.

[0156] According to a preset order, the system sequentially determines whether the distance between the second terminal device and the Bluetooth headset is less than a preset distance, whether the second terminal device is located in a frequently used location, and whether the application opened on the second terminal device is a user-preferred application. If all the determination results are yes, then the system controls one earpiece of the Bluetooth headset to remain connected to the first terminal device and the other earpiece to be connected to the second terminal device.

[0157] If the time period when the second terminal device is turned on is within a commonly used time period, then the second preset volume corresponding to the commonly used time period is loaded.

[0158] In an alternative approach, the executable instructions cause the processor to perform the following operations:

[0159] Obtain device connection information and application connection information uploaded by any of the terminal devices;

[0160] The device connection information is analyzed to obtain device preference information;

[0161] The application connection information is analyzed to obtain application preference information.

[0162] This invention, through receiving pre-connection information uploaded by at least one terminal device, updates a pre-connection queue at preset intervals based on the pre-connection information. The pre-connection queue includes: device number, number of connection rejections, current online location of the device, and timestamp of the device's online status. It determines frequently used devices included in the pre-connection queue based on pre-stored user preference information. If there is only one terminal device in the pre-connection queue, it controls the Bluetooth headset to connect to that terminal device. If there is only one frequently used device in the pre-connection queue whose current online location matches a frequently used location in the user preference information, it controls the Bluetooth headset to connect to that frequently used device. Otherwise, it maintains the pre-connection state of the Bluetooth headset. This automates and intelligently manages the connection, configuration, and switching operations of personal smart terminals, reducing manual intervention and improving the user experience.

[0163] This invention provides a computer program product, which includes a computer program stored on a computer storage medium. The computer program includes program instructions, which, when executed by a computer, cause the computer to execute the Bluetooth headset connection optimization method in any of the above method embodiments.

[0164] Executable instructions can specifically be used to cause the processor to perform the following operations:

[0165] When the terminal device is online, it establishes a pre-connection with the Bluetooth headset and loads user preference information from the cloud. The user preference information includes device preference information and application preference information. The device preference information includes at least frequently used locations and a first preset volume.

[0166] When the terminal device opens an application, it obtains the pre-stored application preference information corresponding to the application, and adjusts the usage volume of the Bluetooth headset in advance according to the application preference information. The application preference information includes at least: application number, frequently used time period and second preset volume.

[0167] Listen for user gesture commands to the Bluetooth headset and establish a connection with the Bluetooth headset based on the gesture commands.

[0168] In an alternative approach, the executable instructions cause the processor to perform the following operations:

[0169] Determine whether the current timestamp falls within the commonly used time period in the application preference information;

[0170] If not, adjust the volume of the Bluetooth headset to the first preset volume corresponding to the commonly used location;

[0171] If so, adjust the volume of the Bluetooth headset to a second preset volume corresponding to the commonly used time period.

[0172] In an alternative approach, the executable instructions cause the processor to perform the following operations:

[0173] When the terminal device is connected to the Bluetooth headset, the device connection information during the time period from the start of the connection to the disconnection is collected and uploaded to the cloud. The device connection information includes: Bluetooth headset number, device number, device usage duration, device audio, device connection timestamp, device disconnection timestamp, and connection disconnection coordinates.

[0174] When the terminal device is connected to the Bluetooth headset and uses an application, the application connection information during the time period from when the application is opened to when the application is closed is collected and uploaded to the cloud. The application connection information includes: Bluetooth headset number, application number, application start timestamp, application end timestamp, coordinates of the application usage, application volume, and audio mode.

[0175] In this embodiment of the invention, when the terminal device is online, a pre-connection is established with the Bluetooth headset, and user preference information is loaded from the cloud. The user preference information includes device preference information and application preference information. The device preference information includes at least frequently used locations and a first preset volume. When the terminal device opens an application, it obtains the pre-stored application preference information corresponding to the application and pre-adjusts the usage volume of the Bluetooth headset according to the application preference information. The application preference information includes at least: application number, frequently used time period, and a second preset volume. The device listens for user gesture commands to the Bluetooth headset and establishes a connection with the Bluetooth headset according to the gesture commands. This enables the automation and intelligentization of connection, configuration, and switching operations of personal smart terminals, reduces manual intervention, and improves the user experience.

[0176] This invention provides yet another computer program product, which includes a computer program stored on a computer storage medium. The computer program includes program instructions, which, when executed by a computer, cause the computer to execute the Bluetooth headset connection optimization method in any of the above method embodiments.

[0177] Executable instructions can specifically be used to cause the processor to perform the following operations:

[0178] The system receives pre-connection information uploaded by at least one terminal device and updates the pre-connection queue according to the pre-connection information at preset intervals. The pre-connection queue includes: device number, number of connection rejections, current online location of the device, and timestamp of the device being online.

[0179] The commonly used devices included in the pre-connection queue are determined based on pre-stored user preference information;

[0180] If there is only one terminal device in the pre-connection queue, the Bluetooth headset is controlled to connect to the terminal device; if there is only one frequently used device in the pre-connection queue whose current online location matches the frequently used location in the user's preference information, the Bluetooth headset is controlled to connect to the frequently used device; otherwise, the pre-connection state of the Bluetooth headset is maintained.

[0181] In an alternative approach, the executable instructions cause the processor to perform the following operations:

[0182] When the Bluetooth headset is connected to the first terminal device, the pre-connection queue, which includes at least one second terminal device, is acquired.

[0183] According to a preset order, the system sequentially determines whether the distance between the second terminal device and the Bluetooth headset is less than a preset distance, whether the second terminal device is located in a frequently used location, and whether the application opened on the second terminal device is a user-preferred application. If all the determination results are yes, then the system controls one earpiece of the Bluetooth headset to remain connected to the first terminal device and the other earpiece to be connected to the second terminal device.

[0184] If the time period when the second terminal device is turned on is within a commonly used time period, then the second preset volume corresponding to the commonly used time period is loaded.

[0185] In an alternative approach, the executable instructions cause the processor to perform the following operations:

[0186] Obtain device connection information and application connection information uploaded by any of the terminal devices;

[0187] The device connection information is analyzed to obtain device preference information;

[0188] The application connection information is analyzed to obtain application preference information.

[0189] This invention, through receiving pre-connection information uploaded by at least one terminal device, updates a pre-connection queue at preset intervals based on the pre-connection information. The pre-connection queue includes: device number, number of connection rejections, current online location of the device, and timestamp of the device's online status. It determines frequently used devices included in the pre-connection queue based on pre-stored user preference information. If there is only one terminal device in the pre-connection queue, it controls the Bluetooth headset to connect to that terminal device. If there is only one frequently used device in the pre-connection queue whose current online location matches a frequently used location in the user preference information, it controls the Bluetooth headset to connect to that frequently used device. Otherwise, it maintains the pre-connection state of the Bluetooth headset. This automates and intelligently manages the connection, configuration, and switching operations of personal smart terminals, reducing manual intervention and improving the user experience.

[0190] Figure 9 The diagram shows a schematic of the structure of a computing device provided in an embodiment of the present invention. The specific embodiments of the present invention do not limit the specific implementation of the device.

[0191] like Figure 9 As shown, the computing device may include: a processor 902, a communications interface 904, a memory 906, and a communications bus 908.

[0192] The processor 902, communication interface 904, and memory 906 communicate with each other via communication bus 908. Communication interface 904 is used to communicate with other network elements, such as clients or other servers. Processor 902 executes program 910, specifically performing the relevant steps in the above-described 9G base station planning method embodiment.

[0193] Specifically, program 910 may include program code that includes computer operation instructions.

[0194] Processor 902 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention. The device may include one or more processors of the same type, such as one or more CPUs; or different types of processors, such as one or more CPUs and one or more ASICs.

[0195] Memory 906 is used to store program 910. Memory 906 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.

[0196] Specifically, program 910 can be used to cause processor 902 to perform the following operations:

[0197] When the terminal device is online, it establishes a pre-connection with the Bluetooth headset and loads user preference information from the cloud. The user preference information includes device preference information and application preference information. The device preference information includes at least frequently used locations and a first preset volume.

[0198] When the terminal device opens an application, it obtains the pre-stored application preference information corresponding to the application, and adjusts the usage volume of the Bluetooth headset in advance according to the application preference information. The application preference information includes at least: application number, frequently used time period and second preset volume.

[0199] Listen for user gesture commands to the Bluetooth headset and establish a connection with the Bluetooth headset based on the gesture commands.

[0200] In an alternative manner, the program 910 causes the processor to perform the following operations:

[0201] Determine whether the current timestamp falls within the commonly used time period in the application preference information;

[0202] If not, adjust the volume of the Bluetooth headset to the first preset volume corresponding to the commonly used location;

[0203] If so, adjust the volume of the Bluetooth headset to a second preset volume corresponding to the commonly used time period.

[0204] In an alternative manner, the program 910 causes the processor to perform the following operations:

[0205] When the terminal device is connected to the Bluetooth headset, the device connection information during the time period from the start of the connection to the disconnection is collected and uploaded to the cloud. The device connection information includes: Bluetooth headset number, device number, device usage duration, device audio, device connection timestamp, device disconnection timestamp, and connection disconnection coordinates.

[0206] When the terminal device is connected to the Bluetooth headset and uses an application, the application connection information during the time period from when the application is opened to when the application is closed is collected and uploaded to the cloud. The application connection information includes: Bluetooth headset number, application number, application start timestamp, application end timestamp, coordinates of the application usage, application volume, and audio mode.

[0207] In this embodiment of the invention, when the terminal device is online, a pre-connection is established with the Bluetooth headset, and user preference information is loaded from the cloud. The user preference information includes device preference information and application preference information. The device preference information includes at least frequently used locations and a first preset volume. When the terminal device opens an application, it obtains the pre-stored application preference information corresponding to the application and pre-adjusts the usage volume of the Bluetooth headset according to the application preference information. The application preference information includes at least: application number, frequently used time period, and a second preset volume. The device listens for user gesture commands to the Bluetooth headset and establishes a connection with the Bluetooth headset according to the gesture commands. This enables the automation and intelligentization of connection, configuration, and switching operations of personal smart terminals, reduces manual intervention, and improves the user experience.

[0208] Figure 10 The diagram shows a structural schematic of another computing device provided in an embodiment of the present invention. The specific embodiments of the present invention do not limit the specific implementation of the device.

[0209] like Figure 10 As shown, the computing device may include: a processor 1002, a communication interface 1004, a memory 1006, and a communication bus 1008.

[0210] The processor 1002, communication interface 1004, and memory 1006 communicate with each other via communication bus 1008. Communication interface 1004 is used to communicate with other network elements, such as clients or other servers. Processor 1002 executes program 1010, specifically performing the relevant steps in the above-described 10G base station planning method embodiment.

[0211] Specifically, program 1010 may include program code that includes computer operation instructions.

[0212] The processor 1002 may be a central processing unit (CPU), a specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention. The device may include one or more processors of the same type, such as one or more CPUs; or it may include processors of different types, such as one or more CPUs and one or more ASICs.

[0213] Memory 1006 is used to store program 1010. Memory 1006 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage.

[0214] Specifically, program 1010 can be used to cause processor 1002 to perform the following operations:

[0215] The system receives pre-connection information uploaded by at least one terminal device and updates the pre-connection queue according to the pre-connection information at preset intervals. The pre-connection queue includes: device number, number of connection rejections, current online location of the device, and timestamp of the device being online.

[0216] The commonly used devices included in the pre-connection queue are determined based on pre-stored user preference information;

[0217] If there is only one terminal device in the pre-connection queue, the Bluetooth headset is controlled to connect to the terminal device; if there is only one frequently used device in the pre-connection queue whose current online location matches the frequently used location in the user's preference information, the Bluetooth headset is controlled to connect to the frequently used device; otherwise, the pre-connection state of the Bluetooth headset is maintained.

[0218] In an alternative manner, the program 1010 causes the processor to perform the following operations:

[0219] When the Bluetooth headset is connected to the first terminal device, the pre-connection queue, which includes at least one second terminal device, is acquired.

[0220] According to a preset order, the system sequentially determines whether the distance between the second terminal device and the Bluetooth headset is less than a preset distance, whether the second terminal device is located in a frequently used location, and whether the application opened on the second terminal device is a user-preferred application. If all the determination results are yes, then the system controls one earpiece of the Bluetooth headset to remain connected to the first terminal device and the other earpiece to be connected to the second terminal device.

[0221] If the time period when the second terminal device is turned on is within a commonly used time period, then the second preset volume corresponding to the commonly used time period is loaded.

[0222] In an alternative manner, the program 1010 causes the processor to perform the following operations:

[0223] Obtain device connection information and application connection information uploaded by any of the terminal devices;

[0224] The device connection information is analyzed to obtain device preference information;

[0225] The application connection information is analyzed to obtain application preference information.

[0226] This invention, through receiving pre-connection information uploaded by at least one terminal device, updates a pre-connection queue at preset intervals based on the pre-connection information. The pre-connection queue includes: device number, number of connection rejections, current online location of the device, and timestamp of the device's online status. It determines frequently used devices included in the pre-connection queue based on pre-stored user preference information. If there is only one terminal device in the pre-connection queue, it controls the Bluetooth headset to connect to that terminal device. If there is only one frequently used device in the pre-connection queue whose current online location matches a frequently used location in the user preference information, it controls the Bluetooth headset to connect to that frequently used device. Otherwise, it maintains the pre-connection state of the Bluetooth headset. This automates and intelligently manages the connection, configuration, and switching operations of personal smart terminals, reducing manual intervention and improving the user experience.

[0227] The algorithms or displays provided herein are not inherently related to any particular computer, virtual system, or other device. Various general-purpose systems can also be used in conjunction with the teachings herein. The required structure for constructing such systems is apparent from the above description. Furthermore, the embodiments of the present invention are not directed to any particular programming language. It should be understood that the content of the invention described herein can be implemented using various programming languages, and the above description of specific languages ​​is for the purpose of disclosing the best mode of implementation of the invention.

[0228] Numerous specific details are set forth in the specification provided herein. However, it will be understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures, and techniques have not been shown in detail so as not to obscure the understanding of this specification.

[0229] Similarly, it should be understood that, in order to streamline the invention and aid in understanding one or more of the various aspects of the invention, features of the embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof in the above description of exemplary embodiments of the invention. However, this disclosure should not be construed as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim.

[0230] Those skilled in the art will understand that modules in the device of the embodiments can be adaptively changed and placed in one or more devices different from that embodiment. Modules, units, or components in the embodiments can be combined into a single module, unit, or component, and further, they can be divided into multiple sub-modules, sub-units, or sub-components. Except where at least some of such features and / or processes or units are mutually exclusive, any combination can be used to combine all features disclosed in this specification (including the accompanying claims, abstract, and drawings) and all processes or units of any method or device so disclosed. Unless expressly stated otherwise, each feature disclosed in this specification (including the accompanying claims, abstract, and drawings) may be replaced by an alternative feature that serves the same, equivalent, or similar purpose.

[0231] It should be noted that the above embodiments are illustrative of the invention and not restrictive, and that those skilled in the art can devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses should not be construed as limiting the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third, etc., does not indicate any order. These words can be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be construed as limiting the order of execution.

Claims

1. A method for optimizing Bluetooth headset connections, characterized in that, The method includes: When the terminal device is online, it establishes a pre-connection with the Bluetooth headset and loads user preference information from the cloud. The user preference information includes device preference information and application preference information. The device preference information includes at least frequently used locations and a first preset volume. If the terminal device successfully pre-connects with the Bluetooth headset, the terminal device synchronizes the pre-connection information to the cloud device so that the cloud device can manage the pre-connection information of the Bluetooth headset and maintain the corresponding pre-connection queue. The pre-connection queue includes: device number, number of connection rejections, current online location of the device, and timestamp of the device being online. When the terminal device opens an application, it obtains the pre-stored application preference information corresponding to the application, and adjusts the usage volume of the Bluetooth headset in advance according to the application preference information. The application preference information includes at least: application number, frequently used time period and second preset volume. Listen for user gesture commands to the Bluetooth headset and establish a connection with the Bluetooth headset based on the gesture commands; The method further includes: The cloud device determines the frequently used devices included in the pre-connection queue based on the user preference information; if there is only one terminal device in the pre-connection queue, the Bluetooth headset is controlled to connect to the terminal device; if there is only one frequently used device in the pre-connection queue whose current online location matches the frequently used location in the user preference information, the Bluetooth headset is controlled to connect to the frequently used device; otherwise, the pre-connection state of the Bluetooth headset is maintained, waiting for the user to manually connect.

2. The method according to claim 1, characterized in that, The step of pre-adjusting the usage volume of the Bluetooth headset based on the application preference information includes: Determine whether the current timestamp falls within the commonly used time period in the application preference information; If not, adjust the volume of the Bluetooth headset to the first preset volume corresponding to the commonly used location; If so, adjust the volume of the Bluetooth headset to a second preset volume corresponding to the commonly used time period.

3. The method according to claim 1, characterized in that, The method further includes: When the terminal device is connected to the Bluetooth headset, the device connection information during the time period from the start of the connection to the disconnection is collected and uploaded to the cloud. The device connection information includes: Bluetooth headset number, device number, device usage duration, device audio, device connection timestamp, device disconnection timestamp, and connection disconnection coordinates. When the terminal device is connected to the Bluetooth headset and uses an application, the application connection information during the time period from when the application is opened to when the application is closed is collected and uploaded to the cloud. The application connection information includes: Bluetooth headset number, application number, application start timestamp, application end timestamp, coordinates of the application usage, application volume, and audio mode.

4. A terminal device, characterized in that, The terminal device includes: A pre-connection unit is used to establish a pre-connection with the Bluetooth headset when the terminal device is online, and to load user preference information from the cloud. The user preference information includes device preference information and application preference information. The device preference information includes at least frequently used locations and a first preset volume. If the terminal device successfully pre-connects with the Bluetooth headset, the terminal device synchronizes the pre-connection information to the cloud device so that the cloud device can manage the pre-connection information of the Bluetooth headset and maintain the corresponding pre-connection queue. The pre-connection queue includes: device number, number of connection rejections, current online location of the device, and timestamp of the device being online. The volume adjustment unit is used to obtain the pre-stored application preference information corresponding to the application when the terminal device opens an application, and to adjust the usage volume of the Bluetooth headset in advance according to the application preference information. The application preference information includes at least: application number, common time period and second preset volume. The first connection unit is used to listen to the user's gesture commands to the Bluetooth headset and establish a connection with the Bluetooth headset according to the gesture commands; The cloud device determines the frequently used devices included in the pre-connection queue based on the user preference information. If there is only one terminal device in the pre-connection queue, the Bluetooth headset is controlled to connect to the terminal device. If there is only one frequently used device in the pre-connection queue whose current online location matches the frequently used location in the user preference information, the Bluetooth headset is controlled to connect to the frequently used device. Otherwise, the pre-connection state of the Bluetooth headset is maintained, waiting for the user to manually connect.

5. A computing device, characterized in that, include: The processor, memory, communication interface, and communication bus are provided, wherein the processor, memory, and communication interface communicate with each other via the communication bus. The memory is used to store at least one executable instruction that causes the processor to perform the steps of the Bluetooth headset connection optimization method according to any one of claims 1-3.

6. A computer storage medium, characterized in that, The storage medium stores at least one executable instruction that causes the processor to perform the steps of the Bluetooth headset connection optimization method according to any one of claims 1-3.