Equipment connection method and device, sound source equipment and computer readable storage medium

By turning on the target mode on the audio source device and detecting new audio source devices, the problem of audio listening stuttering in complex scenarios by Bluetooth headsets is solved, achieving lower audio lag frequency and longer battery life.

CN119629770APending Publication Date: 2025-03-14GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202311193507.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-14
Publication Date
2025-03-14

AI Technical Summary

Technical Problem

In complex scenarios, when Bluetooth headphones are connected to multiple audio source devices, traditional methods lead to the problem of audio listening stuttering.

Method used

By turning on the target mode on the audio source device, including query scanning mode and paging scanning mode, when a new audio source device is detected, its information is sent to the Bluetooth headset to achieve pairing connection between the Bluetooth headset and the new audio source device.

Benefits of technology

It reduces the number of audio lags in complex environments, improves the battery life of Bluetooth headsets, and reduces the power consumption of Bluetooth headsets by transferring the scanning function of Bluetooth headsets to the audio source device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119629770A_ABST
    Figure CN119629770A_ABST
Patent Text Reader

Abstract

The invention relates to an equipment connection method and device, sound source equipment and a computer readable storage medium. The method comprises the following steps: starting a target mode of the sound source equipment under the condition of determining that the Bluetooth earphone connected with the sound source equipment supports a multi-split function and the sound source equipment supports the target mode; the target mode comprises a query scanning mode and a paging scanning mode; and if a new sound source device is detected in the target mode, sending information of the new sound source device to the Bluetooth earphone, so that the Bluetooth earphone and the new sound source device are paired and connected. By adopting the method, the problem that audition of audios played by the Bluetooth earphone in a complex scene is not smooth can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a device connection method, apparatus, sound source device and computer-readable storage medium. Background Art

[0002] With the development of true wireless headset (TWS) technology, the scenarios and proportion of users using Bluetooth headsets have increased rapidly. By collecting user usage scenarios, it is found that users generally use a pair of Bluetooth headsets with multiple Bluetooth audio devices, but can only play music through one of the Bluetooth audio devices at the same time.

[0003] In the conventional technology, when a pair of Bluetooth headsets is used with multiple Bluetooth audio source devices, the Bluetooth headsets need to periodically open an inquiry scan mode to pair with a new Bluetooth audio source device, and open a page scan mode to pair and reconnect with an old Bluetooth audio source device.

[0004] However, traditional methods may cause the audio played by Bluetooth headsets to be jittery in complex scenarios. Summary of the invention

[0005] The embodiments of the present application provide a device connection method, apparatus, audio source device, and computer-readable storage medium, which can avoid the problem of audio jamming when played by Bluetooth headphones in complex scenarios.

[0006] In a first aspect, an embodiment of the present application provides a device connection method, which is applied to a sound source device, comprising:

[0007] When it is determined that the Bluetooth headset connected to the sound source device supports one-to-many functions and the sound source device supports a target mode, turning on the target mode of the sound source device; the target mode includes an inquiry scanning mode and a paging scanning mode;

[0008] If a new sound source device is detected in the target mode, the information of the new sound source device is sent to the Bluetooth headset, so that the Bluetooth headset is paired with the new sound source device.

[0009] In a second aspect, an embodiment of the present application provides a device connection apparatus, which is applied to a sound source device, including:

[0010] An enabling module, configured to enable a target mode of the sound source device when it is determined that the Bluetooth headset connected to the sound source device supports one-to-many functions and the sound source device supports a target mode; the target mode includes an inquiry scanning mode and a paging scanning mode;

[0011] The sending module is used to send information of the new sound source device to the Bluetooth headset if a new sound source device is detected in the target mode, so that the Bluetooth headset is paired with the new sound source device.

[0012] In a third aspect, an embodiment of the present application provides a sound source device, including a transceiver, a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the device connection method described in the first aspect.

[0013] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.

[0014] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which implements the steps of the method described in the first aspect when executed by a processor.

[0015] The above-mentioned device connection method, device, sound source device and computer-readable storage medium, when the sound source device determines that the Bluetooth headset connected to it supports one-to-many functions and the sound source device itself supports target modes including query scanning mode and paging scanning mode, can turn on the target mode of the sound source device. In this way, if the sound source device detects a new sound source device in the target mode, it can send the information of the new sound source device to the Bluetooth headset so that the Bluetooth headset is paired and connected with the new sound source device. By adjusting the scanning function of the Bluetooth headset that supports one-to-many functions to be completed on the connected audio device side, when the audio device side scans a new sound source device to connect to the Bluetooth headset, it can send the information of the new sound source device to the Bluetooth headset to start the pairing process to complete the connection and pairing of the Bluetooth headset and other sound source devices, eliminating the increase in retransmission rate caused by the Bluetooth headset itself turning on the query scanning mode and the paging scanning mode and frequently occupying the air interface time, thereby reducing the number of audio freezes in complex environments; in addition, by completing the scanning function of the Bluetooth headset on the connected audio device side, the power consumption of the Bluetooth headset can be reduced and the battery life of the Bluetooth headset can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0017] Figure 1An application environment diagram of a device connection method in an embodiment;

[0018] Figure 2 is a flow chart of a device connection method in one embodiment;

[0019] Figure 3 is a flow chart of a device connection method in another embodiment;

[0020] Figure 4 is a flow chart of a device connection method in another embodiment;

[0021] Figure 5 is a flow chart of a device connection method in another embodiment;

[0022] Figure 6 is a structural block diagram of a device connection apparatus in one embodiment;

[0023] Figure 7 is a structural block diagram of a device connecting apparatus in another embodiment;

[0024] Figure 8 is a structural block diagram of a device connecting apparatus in another embodiment;

[0025] Fig. 9 is a structural block diagram of a device connecting apparatus in another embodiment;

[0026] Fig.10 is a structural block diagram of a device connecting apparatus in another embodiment;

[0027] Fig.11 Schematic diagram of the internal structure of a sound source device in an embodiment. DETAILED DESCRIPTION

[0028] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0029] The device connection method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the Bluetooth headset 102 is a Bluetooth headset that supports one-to-many functions. The Bluetooth headset 102 can communicate with multiple audio source devices 104, but music can only be played through one of the audio source devices at the same time. Among them, the audio source device 104 can be, but not limited to, various personal computers, laptops, smart phones, tablets, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc.

[0030] In traditional technology, for Bluetooth headsets that support one-to-many functions, when a pair of Bluetooth headsets is used with multiple Bluetooth audio source devices, the Bluetooth headsets need to periodically turn on the inquiry scan mode to pair new Bluetooth audio source devices, and turn on the page scan mode to pair and reconnect to old Bluetooth audio source devices. If you want to connect a second Bluetooth audio source device, you only need to operate on the second Bluetooth audio source device (such as searching for new devices and reconnecting to old devices). The user does not need to do anything on the headset end. The user-end operation is simple, the switching is simple and fast, and the user experience is good. However, the Bluetooth headset periodically turns on the inquiry scan mode and the page scan mode, which affects the normal audio data transmission of the connected audio source device, occupies the air interface time and increases the retransmission rate. Therefore, in complex scenarios, it will cause the audio played by the Bluetooth headset to be stuck.

[0031] In one embodiment, Figure 2 As shown, a device connection method is provided, which is applied to Figure 1 The following steps are used as an example to illustrate the audio source device in the figure:

[0032] S201, when it is determined that the Bluetooth headset connected to the audio source device supports one-to-many functions and the audio source device supports the target mode, enable the target mode of the audio source device; the target mode includes the query scanning mode and the paging scanning mode.

[0033] Among them, the Bluetooth headset supports one-to-multi-function, which means that the Bluetooth headset can be connected to multiple audio source devices, but music can only be played through one of the audio source devices at the same time. The inquiry scan mode in this embodiment is what is usually called a scanning state. In the inquiry scan mode, the device scans other devices around it. The device does not know what other devices are around it and needs to inquire, which is similar to broadcasting. Other devices in the inquiry scan mode can respond to this inquiry, and after necessary negotiations, they can connect. Usually, the device can respond to connection requests from other Bluetooth devices only when the paging scan mode is turned on. For example, the audio source device allows other devices to connect only when it is in the page scan mode.

[0034] Optionally, in this embodiment, after the sound source device establishes a connection with the Bluetooth headset, it can determine whether the Bluetooth headset supports one-to-multi-function according to the data packet of the Bluetooth headset. Further, when the sound source device determines that the connected Bluetooth headset supports one-to-multi-function and determines that the sound source device supports target modes including the query scanning mode and the paging scanning mode according to the configuration information of the sound source device, the sound source device can control to start its own query scanning mode and paging scanning mode to scan other surrounding sound source devices and establish connections with other sound source devices to obtain information of other sound source devices.

[0035] In addition, it is understandable that Bluetooth is a low-power communication solution that works on the ISM 2.4G unlicensed channel. There are many types of devices that also work in this unlicensed frequency band, such as cordless phones, microwave ovens, wireless fidelity (WIFI), and some wireless cameras. Therefore, in order to reduce the interference of other 2.4G frequency band devices on Bluetooth, Bluetooth devices use a frequency hopping working mechanism, that is, each interaction uses a different frequency.

[0036] S202: If a new audio source device is detected in the target mode, information of the new audio source device is sent to the Bluetooth headset, so that the Bluetooth headset is paired with the new audio source device.

[0037] In this embodiment, after the sound source device turns on the target mode, the sound source device can perform paging scanning based on the turned-on target mode. If the sound source device detects a new sound source device in the target mode, it establishes a connection with the new sound source device, and after obtaining the information of the new sound source device, it can send the information of the new sound source device to the Bluetooth headset, so that the Bluetooth headset can be paired and connected with the new sound source device based on the information of the new sound source device. That is to say, in this embodiment, the Bluetooth headset can be paired and connected with the new sound source device through the sound source device, the paging scanning function of the Bluetooth headset is transferred to the sound source device, and the new sound source device is detected through the sound source device. Paging scanning is performed, and the new sound source device is paired and connected with the new sound source device.

[0038] Optionally, in this embodiment, the audio source device can send the information of the detected new audio source device to the Bluetooth headset through the Bluetooth physical link (Asynchronous connectionless, ACL) between the audio source device and the Bluetooth headset, after which the Bluetooth headset reserves a time window to complete the pairing process with the new audio source device.

[0039] In the above device connection method, the audio source device can enable the target mode of the audio source device when it determines that the Bluetooth headset connected to it supports one-drag multi-functions and the audio source device itself supports target modes including inquiry scanning mode and paging scanning mode. In this way, if the audio source device detects a new audio source device in the target mode, the information of the new audio source device can be sent to the Bluetooth headset so that the Bluetooth headset can be paired and connected with the new audio source device. The scanning function of the Bluetooth headset that supports one-drag multi-functions is adjusted to be completed on the connected audio device side. When the audio device side scans a new audio source device to connect to the Bluetooth headset, the information of the new audio source device can be sent to the Bluetooth headset to start the pairing process to complete the connection and pairing of the Bluetooth headset and other audio source devices, eliminating the increase in retransmission rate caused by the Bluetooth headset itself turning on the inquiry scanning mode and the paging scanning mode and frequently occupying the air interface time, thereby reducing the number of audio freezes in complex environments; in addition, by completing the scanning function of the Bluetooth headset on the connected audio device side, the power consumption of the Bluetooth headset can be reduced and the battery life of the Bluetooth headset can be improved.

[0040] In this embodiment, the detailed process of turning on the target mode of the audio source device when the audio source device determines that the Bluetooth headset supports one-to-many functions and the audio source device supports the above target mode is described. Figure 3 As shown, the “enabling the target mode of the audio source device” in the above S201 includes:

[0041] S301, determining target window configuration information of the sound source device according to the window configuration information of the Bluetooth headset and the window configuration information of the sound source device.

[0042] Among them, the window configuration information refers to the window configuration information of the inquiry scan mode and the window configuration information of the page scan mode, which may include the scan window duration (Scan_window), the scan window interval (Scan_interval), the scan behavior duration (Scan_duration), etc.

[0043] In this embodiment, after the sound source device establishes a connection with the Bluetooth headset, the window configuration information of the Bluetooth headset can be obtained through the communication connection with the Bluetooth headset, and then the target window configuration information of the sound source device can be determined according to the window configuration information of the Bluetooth headset and the window configuration information of the sound source device. As an optional implementation, the sound source device can select a scan configuration with a higher scan window ratio according to the scan window information of the Bluetooth headset and its own scan window information, that is, the sound source device can determine the optimal window configuration information in the window configuration information of the Bluetooth headset and the window configuration information of the sound source device as the target window configuration information of the sound source device. Exemplarily, when Scan_window / Scan_interval_Bluetooth headset>Scan_window / Scan_interval_sound source device, the scan configuration of the sound source device is set to the Scan_window and Scan_interval of the Bluetooth headset, otherwise it is set to the Scan_window and Scan_interval of the sound source device itself, and when Scan_duration_Bluetooth headset>Scan_duration_sound source device, the final scan duration is set to the Scan_duration of the Bluetooth headset, otherwise it is set to the Scan_duration of the sound source device itself.

[0044] S302: Enable the target mode of the audio source device based on the target window configuration information.

[0045] In this embodiment, since the target window configuration information of the sound source device is a scan configuration in which the scan window accounts for a higher proportion between the scan window information of the Bluetooth headset and its own scan window information, after the window configuration information of the sound source device is adjusted to the target window configuration information, the sound source device can turn on the target mode of the sound source device based on the target window configuration information to scan and detect new sound source devices.

[0046] In this embodiment, the sound source device can determine the target window configuration information of the sound source device based on the window configuration information of the Bluetooth headset and the window configuration information of the sound source device itself, so that the sound source device can turn on the target mode of the sound source device based on the determined target window configuration information, and enable the sound source device to perform query scanning, thereby saving the air interface occupancy time of the Bluetooth headset and improving the transmission bandwidth of the Bluetooth headset.

[0047] In this embodiment, the process of determining whether the audio source device supports one-to-many functions of the Bluetooth headset and whether the audio source device paired with the Bluetooth headset supports the target mode will be described in detail. Figure 4 As shown, the above method also includes:

[0048] S401, when it is detected that the Bluetooth headset is not connected for the first time, obtaining a pairing list of the Bluetooth headset.

[0049] In this embodiment, if the sound source device detects that the Bluetooth headset is not connected for the first time, it means that the Bluetooth headset has established a connection with the sound source device before. In this scenario, the sound source device can send a request to the Bluetooth headset to obtain the pairing list of the Bluetooth headset. Optionally, in this embodiment, the pairing list of the Bluetooth headset obtained by the sound source device may be empty, or the pairing list of the Bluetooth headset may include one sound source device, or the pairing list of the Bluetooth headset may include multiple sound source devices. This embodiment does not limit the type of the pairing list of the Bluetooth headset obtained.

[0050] S402, when the number of audio source devices paired with the Bluetooth headset in the pairing list is greater than or equal to a preset threshold, determine whether the Bluetooth headset supports one-to-many functions and whether the audio source device supports the target mode.

[0051] The preset threshold value may be 1 or 2, and this embodiment does not limit this. In this embodiment, when the sound source device determines that the number of sound source devices paired with the Bluetooth headset in the pairing list of the Bluetooth headset is greater than or equal to the preset threshold value, that is, when the sound source device determines that the pairing list of the Bluetooth headset is not empty and there is a sound source device paired with the Bluetooth headset in the pairing list, it determines whether the Bluetooth headset supports one-to-multi-functions and whether it supports the target mode, and starts the target mode when it is determined that the Bluetooth headset supports one-to-multi-functions and it supports the target mode, so as to perform an inquiry scan to find other sound source devices paired with the Bluetooth headset.

[0052] Optionally, in this embodiment, when the audio source device determines that the pairing list of the Bluetooth headset is not empty and there is an audio source device paired with the Bluetooth headset in the pairing list, the audio source device can obtain the configuration information of the Bluetooth headset, determine whether the Bluetooth headset supports one-to-many functions according to the configuration information of the Bluetooth headset, and determine whether the audio source device supports the target mode according to its own configuration information. Optionally, the configuration information of the Bluetooth headset can be the type of the Bluetooth headset, etc., and the configuration information of the audio source device can be the type of mode supported by the audio source device, etc.

[0053] As another optional implementation, the pairing list of the Bluetooth headset obtained by the audio source device may not contain the audio source device paired with the Bluetooth headset. In this case, the audio source device can output a first indication message, which instructs the user to manually trigger the Bluetooth headset to enter pairing mode at the Bluetooth headset end.

[0054] As another optional implementation, the pairing list of the Bluetooth headset obtained by the audio source device may be empty, that is, when the audio source device does not exist in the pairing list of the Bluetooth headset, the audio source device can output a second indication message, instructing the user to manually trigger the Bluetooth headset to enter pairing mode through the second indication message.

[0055] In this embodiment, when the audio source device detects that this is not the first time that the Bluetooth headset is connected to a computer, the audio source device obtains the pairing list of the Bluetooth headset and, when the number of audio source devices paired and connected to the Bluetooth headset in the pairing list of the Bluetooth headset is greater than or equal to a preset threshold, determines whether the Bluetooth headset supports one-to-multi-functions and whether the audio source device supports the target mode. This ensures that the Bluetooth headset has been connected to other audio source devices before and that the audio source device itself can support the functions of query scanning and paging scanning, thereby ensuring that other audio source devices can be queried through the audio source device, thereby making it feasible for the Bluetooth headset to establish a connection with other audio source devices.

[0056] In some scenarios, there may be a situation where the Bluetooth headset supports one-to-multi-functions, but the sound source device does not support the target mode. In one embodiment, the above method also includes: if the Bluetooth headset supports one-to-multi-functions, and the sound source device does not support the target mode, sending a third indication information to the Bluetooth headset; the third indication information is used to instruct the Bluetooth headset to turn on the inquiry scan mode and the paging scan mode.

[0057] In this embodiment, if the Bluetooth headset supports one-to-multi-functions, but the sound source device does not support the target mode, it means that the query scanning function and the paging scanning function of the sound source device cannot be enabled, and the sound source device cannot query and scan other sound source devices. At this time, the sound source device can send a third indication message to the Bluetooth headset, instructing the Bluetooth headset to turn on the query scanning mode and the paging scanning mode through the third indication message, and continue to query and scan other sound source devices through the Bluetooth headset.

[0058] In this embodiment, if the audio source device determines that the Bluetooth headset supports one-to-multi-functions and the audio source device itself does not support the target mode, the audio source device can instruct the Bluetooth headset to turn on the inquiry scanning mode and the paging scanning mode by sending a third indication message to the Bluetooth headset. This ensures that the Bluetooth headset can continue to inquire and scan other audio source devices, enriching the diversity of implementation methods for connecting the Bluetooth headset with other audio source devices.

[0059] In some scenarios, the Bluetooth headset may not support one-drag multi-functions. In one embodiment, the above method also includes: when the Bluetooth headset does not support one-drag multi-functions, outputting fourth indication information; the fourth indication information is used to instruct the user to perform a pairing operation on the Bluetooth headset.

[0060] In this embodiment, when the audio source device determines based on the configuration information of the Bluetooth headset that the Bluetooth headset does not support one-to-multi-function, that is, the audio source device determines that the Bluetooth headset is a Bluetooth headset that supports the one-to-one function, then the audio source device can output fourth indication information at this time, instructing the user to manually trigger the Bluetooth headset to enter pairing mode through the fourth indication information.

[0061] In this embodiment, when the audio source device determines that the Bluetooth headset does not support one-to-multi-functions, it outputs a fourth indication message, and instructs the user through the fourth indication message to manually trigger the Bluetooth headset to enter pairing mode at the Bluetooth headset end, thereby ensuring that the Bluetooth headset can still be paired and connected with other audio source devices even if it does not support one-to-multi-functions, thereby enabling the Bluetooth headset to be connected to other audio source devices, and enriching the richness of audio source devices connected to the Bluetooth headset.

[0062] In some scenarios, the Bluetooth headset detected by the sound source device may also be the headset that establishes a connection with the sound source device for the first time. In one embodiment, the above method also includes: when it is detected that the Bluetooth headset is establishing a connection for the first time, outputting fifth indication information; the fifth indication information is used to instruct the user to perform a pairing operation on the Bluetooth headset.

[0063] In this embodiment, if the audio source device detects that the Bluetooth headset is establishing a connection for the first time, that is, the Bluetooth headset has not established a connection with the audio source device before, the audio source device can output fifth indication information, instructing the user to manually trigger the Bluetooth headset to enter pairing mode through the fifth indication information.

[0064] In this embodiment, if the sound source device detects that the Bluetooth headset is a Bluetooth headset that is establishing a connection for the first time, it means that the Bluetooth headset has not established a connection with the sound source device before. The sound source device can output fifth indication information to the user, and instruct the user to perform a pairing operation on the Bluetooth headset through the fifth indication information, thereby ensuring that the Bluetooth headset can be paired and connected with the sound source device in a timely manner.

[0065] In order to facilitate the understanding of those skilled in the art, Figure 5 As shown, the device connection method provided by this application is described in detail below in combination with a complete embodiment:

[0066] S1, detecting whether the Bluetooth headset is a Bluetooth headset that is connected for the first time, and if so, instructing the user to perform a pairing operation on the Bluetooth headset.

[0067] S2: If not, obtain the pairing list of the Bluetooth headset and determine whether the pairing list of the Bluetooth headset is empty.

[0068] S3: If the pairing list is empty, instruct the user to perform a pairing operation on the Bluetooth headset.

[0069] S4: If there is at least one audio source device in the pairing list and there is no audio source device paired with the Bluetooth headset, instruct the user to perform a pairing operation on the Bluetooth headset.

[0070] S5: If there is at least one audio source device in the pairing list and the Bluetooth headset does not support one-to-many functions, instruct the user to perform a pairing operation on the Bluetooth headset.

[0071] S6: If there is at least one audio source device in the pairing list, the Bluetooth headset supports one-to-many functions, and the audio source device does not support the target mode, the Bluetooth headset is instructed to turn on the inquiry scan mode and the paging scan mode.

[0072] S7, if there is at least one audio source device in the pairing list, and the number of audio source devices paired with the Bluetooth headset in the pairing list is greater than or equal to a preset threshold, if it is determined that the Bluetooth headset connected to the audio source device supports one-to-multi-functions, and the audio source device supports the target mode, turn on the target mode of the audio source device; the target mode includes the query scan mode and the paging scan mode.

[0073] S8, if a new audio source device is detected in the target mode, the information of the new audio source device is sent to the Bluetooth headset, so that the Bluetooth headset is paired with the new audio source device.

[0074] It should be noted that for the descriptions in the above S1-S8, reference may be made to the relevant descriptions in the above embodiments, and the effects are similar, so this embodiment will not be repeated here.

[0075] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0076] Based on the same inventive concept, the embodiment of the present application also provides a device connection device for implementing the device connection method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more device connection device embodiments provided below can refer to the limitations on the device connection method above, and will not be repeated here.

[0077] In one embodiment, Figure 6 As shown, a device connection device is provided, which is applied to a sound source device, including: an opening module 10 and a sending module 11, wherein:

[0078] The activation module 10 is used to activate the target mode of the audio source device when it is determined that the Bluetooth headset connected to the audio source device supports one-to-many functions and the audio source device supports the target mode; the target mode includes an inquiry scanning mode and a paging scanning mode;

[0079] The sending module 11 is used for sending the information of the new audio source device to the Bluetooth headset if a new audio source device is detected in the target mode, so that the Bluetooth headset is paired with the new audio source device.

[0080] The device connection apparatus provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0081] Based on the above embodiments, Figure 7 As shown, optionally, the above-mentioned opening module 10 includes: a determination unit 101 and an opening unit 102, wherein:

[0082] The determining unit 101 is used to determine the target window configuration information of the sound source device according to the window configuration information of the Bluetooth headset and the window configuration information of the sound source device.

[0083] The enabling unit 102 is used to enable the target mode of the audio source device based on the target window configuration information.

[0084] The device connection apparatus provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0085] Based on the above embodiment, optionally, the above determination unit 101 is used to determine the best window configuration information among the window configuration information of the Bluetooth headset and the window configuration information of the audio source device as the target window configuration information.

[0086] The device connection apparatus provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0087] Based on the above embodiments, Figure 8 As shown, optionally, the above device further includes: an acquisition module 12 and a judgment module 13, wherein:

[0088] The acquisition module 12 is used to acquire a pairing list of the Bluetooth headset when it is detected that the Bluetooth headset is not establishing a connection for the first time.

[0089] The judgment module 13 is used to judge whether the Bluetooth headset supports one-to-many functions and whether the audio source device supports the target mode when the number of audio source devices paired with the Bluetooth headset in the pairing list is greater than or equal to a preset threshold.

[0090] The device connection apparatus provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0091] Based on the above embodiments, Fig. 9 As shown, optionally, the above-mentioned judgment module 13 includes: a judgment unit 131, wherein:

[0092] The judgment unit 131 is used to obtain the configuration information of the Bluetooth headset when the number of audio source devices paired with the Bluetooth headset in the pairing list is greater than or equal to a preset threshold; judge whether the Bluetooth headset supports one-to-multi-function according to the configuration information of the Bluetooth headset, and judge whether the audio source device supports the target mode according to the configuration information of the audio source device.

[0093] The device connection apparatus provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0094] Based on the above embodiments, Fig.10 As shown, optionally, the above device further includes: a first output module 14, wherein:

[0095] The first output module 14 is used to output first indication information if there is no audio source device paired with the Bluetooth headset in the pairing list; the first indication information is used to instruct the user to perform a pairing operation on the Bluetooth headset.

[0096] The device connection apparatus provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0097] Based on the above examples, please continue to refer to Fig.10 Optionally, the above device further includes: a second output module 15, wherein:

[0098] The second output module 15 is used to output second indication information if the pairing list is empty; the second indication information is used to instruct the user to perform a pairing operation on the Bluetooth headset.

[0099] The device connection apparatus provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0100] Based on the above examples, please continue to refer to Fig.10Optionally, the above device further includes: a third output module 16, wherein:

[0101] The third output module 16 is used to send third indication information to the Bluetooth headset if the Bluetooth headset supports one-to-many functions and the audio source device does not support the target mode; the third indication information is used to instruct the Bluetooth headset to turn on the inquiry scanning mode and the paging scanning mode.

[0102] The device connection apparatus provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0103] Based on the above examples, please continue to refer to Fig.10 Optionally, the above device further includes: a fourth output module 17, wherein:

[0104] The fourth output module 17 is used to output fourth indication information when the Bluetooth headset does not support one-to-many functions; the fourth indication information is used to instruct the user to perform a pairing operation on the Bluetooth headset.

[0105] The device connection apparatus provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0106] Based on the above examples, please continue to refer to Fig.10 Optionally, the above device further includes: a fifth output module 18, wherein:

[0107] The fifth output module 18 is used to output fifth indication information when it is detected that the Bluetooth headset is connected for the first time; the fifth indication information is used to instruct the user to perform a pairing operation on the Bluetooth headset.

[0108] The device connection apparatus provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0109] Each module in the above-mentioned device connection device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module above.

[0110] In one embodiment, a sound source device is provided. The sound source device may be a terminal, and its internal structure diagram may be as follows: Fig.11As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface, the display unit and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a device connection method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0111] Those skilled in the art will understand that Fig.11 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0112] In one embodiment, a sound source device is provided, including a transceiver, a memory, and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0113] When it is determined that the Bluetooth headset connected to the audio source device supports one-to-many functions and the audio source device supports the target mode, the target mode of the audio source device is enabled; the target mode includes the query scanning mode and the paging scanning mode;

[0114] If a new audio source device is detected in the target mode, the information of the new audio source device is sent to the Bluetooth headset so that the Bluetooth headset is paired with the new audio source device.

[0115] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0116] Determine the target window configuration information of the sound source device according to the window configuration information of the Bluetooth headset and the window configuration information of the sound source device;

[0117] Enables target mode for the source device based on the target window configuration information.

[0118] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0119] The optimal window configuration information among the window configuration information of the Bluetooth headset and the window configuration information of the audio source device is determined as the target window configuration information.

[0120] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0121] When it is detected that the Bluetooth headset is not connected for the first time, obtaining a pairing list of the Bluetooth headset;

[0122] When the number of audio source devices paired and connected to the Bluetooth headset in the pairing list is greater than or equal to a preset threshold, it is determined whether the Bluetooth headset supports one-to-many functions and whether the audio source device supports the target mode.

[0123] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0124] When the number of audio source devices paired and connected to the Bluetooth headset in the pairing list is greater than or equal to a preset threshold, obtaining configuration information of the Bluetooth headset;

[0125] Whether the Bluetooth headset supports one-to-multi-function is determined according to the configuration information of the Bluetooth headset, and whether the audio source device supports the target mode is determined according to the configuration information of the audio source device.

[0126] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0127] If there is no audio source device paired with the Bluetooth headset in the pairing list, the first indication information is output; the first indication information is used to instruct the user to perform a pairing operation on the Bluetooth headset.

[0128] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0129] If the pairing list is empty, the second indication information is output; the second indication information is used to instruct the user to perform a pairing operation on the Bluetooth headset.

[0130] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0131] If the Bluetooth headset supports one-to-multi-functions and the audio source device does not support the target mode, a third indication message is sent to the Bluetooth headset; the third indication message is used to instruct the Bluetooth headset to turn on the inquiry scanning mode and the paging scanning mode.

[0132] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0133] When the Bluetooth headset does not support one-to-many functions, the fourth indication information is output; the fourth indication information is used to instruct the user to perform a pairing operation on the Bluetooth headset.

[0134] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0135] When it is detected that the Bluetooth headset is connected for the first time, the fifth indication information is output; the fifth indication information is used to instruct the user to perform a pairing operation on the Bluetooth headset.

[0136] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0137] When it is determined that the Bluetooth headset connected to the audio source device supports one-to-many functions and the audio source device supports the target mode, the target mode of the audio source device is enabled; the target mode includes the query scanning mode and the paging scanning mode;

[0138] If a new audio source device is detected in the target mode, the information of the new audio source device is sent to the Bluetooth headset so that the Bluetooth headset is paired with the new audio source device.

[0139] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0140] Determine the target window configuration information of the sound source device according to the window configuration information of the Bluetooth headset and the window configuration information of the sound source device;

[0141] Enables target mode for the source device based on the target window configuration information.

[0142] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0143] The optimal window configuration information among the window configuration information of the Bluetooth headset and the window configuration information of the audio source device is determined as the target window configuration information.

[0144] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0145] When it is detected that the Bluetooth headset is not connected for the first time, obtaining a pairing list of the Bluetooth headset;

[0146] When the number of audio source devices paired and connected to the Bluetooth headset in the pairing list is greater than or equal to a preset threshold, it is determined whether the Bluetooth headset supports one-to-many functions and whether the audio source device supports the target mode.

[0147] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0148] When the number of audio source devices paired and connected to the Bluetooth headset in the pairing list is greater than or equal to a preset threshold, obtaining configuration information of the Bluetooth headset;

[0149] Whether the Bluetooth headset supports one-to-multi-function is determined according to the configuration information of the Bluetooth headset, and whether the audio source device supports the target mode is determined according to the configuration information of the audio source device.

[0150] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0151] If there is no audio source device paired with the Bluetooth headset in the pairing list, the first indication information is output; the first indication information is used to instruct the user to perform a pairing operation on the Bluetooth headset.

[0152] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0153] If the pairing list is empty, the second indication information is output; the second indication information is used to instruct the user to perform a pairing operation on the Bluetooth headset.

[0154] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0155] If the Bluetooth headset supports one-to-multi-functions and the audio source device does not support the target mode, a third indication message is sent to the Bluetooth headset; the third indication message is used to instruct the Bluetooth headset to turn on the inquiry scanning mode and the paging scanning mode.

[0156] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0157] When the Bluetooth headset does not support one-to-many functions, the fourth indication information is output; the fourth indication information is used to instruct the user to perform a pairing operation on the Bluetooth headset.

[0158] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0159] When it is detected that the Bluetooth headset is connected for the first time, the fifth indication information is output; the fifth indication information is used to instruct the user to perform a pairing operation on the Bluetooth headset.

[0160] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0161] When it is determined that the Bluetooth headset connected to the audio source device supports one-to-many functions and the audio source device supports the target mode, the target mode of the audio source device is enabled; the target mode includes the query scanning mode and the paging scanning mode;

[0162] If a new audio source device is detected in the target mode, the information of the new audio source device is sent to the Bluetooth headset so that the Bluetooth headset is paired with the new audio source device.

[0163] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0164] Determine the target window configuration information of the sound source device according to the window configuration information of the Bluetooth headset and the window configuration information of the sound source device;

[0165] Enables target mode for the source device based on the target window configuration information.

[0166] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0167] The optimal window configuration information among the window configuration information of the Bluetooth headset and the window configuration information of the audio source device is determined as the target window configuration information.

[0168] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0169] When it is detected that the Bluetooth headset is not connected for the first time, obtaining a pairing list of the Bluetooth headset;

[0170] When the number of audio source devices paired and connected to the Bluetooth headset in the pairing list is greater than or equal to a preset threshold, it is determined whether the Bluetooth headset supports one-to-many functions and whether the audio source device supports the target mode.

[0171] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0172] When the number of audio source devices paired and connected to the Bluetooth headset in the pairing list is greater than or equal to a preset threshold, obtaining configuration information of the Bluetooth headset;

[0173] Whether the Bluetooth headset supports one-to-multi-function is determined according to the configuration information of the Bluetooth headset, and whether the audio source device supports the target mode is determined according to the configuration information of the audio source device.

[0174] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0175] If there is no audio source device paired with the Bluetooth headset in the pairing list, the first indication information is output; the first indication information is used to instruct the user to perform a pairing operation on the Bluetooth headset.

[0176] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0177] If the pairing list is empty, the second indication information is output; the second indication information is used to instruct the user to perform a pairing operation on the Bluetooth headset.

[0178] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0179] If the Bluetooth headset supports one-to-multi-functions and the audio source device does not support the target mode, a third indication message is sent to the Bluetooth headset; the third indication message is used to instruct the Bluetooth headset to turn on the inquiry scanning mode and the paging scanning mode.

[0180] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0181] When the Bluetooth headset does not support one-to-many functions, the fourth indication information is output; the fourth indication information is used to instruct the user to perform a pairing operation on the Bluetooth headset.

[0182] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0183] When it is detected that the Bluetooth headset is connected for the first time, the fifth indication information is output; the fifth indication information is used to instruct the user to perform a pairing operation on the Bluetooth headset.

[0184] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0185] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0186] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A device connection method, characterized in that: Applicable to audio source devices, including: When it is determined that the Bluetooth headset connected to the sound source device supports one-to-many functions and the sound source device supports a target mode, turning on the target mode of the sound source device; the target mode includes an inquiry scanning mode and a paging scanning mode; If a new sound source device is detected in the target mode, the information of the new sound source device is sent to the Bluetooth headset, so that the Bluetooth headset is paired with the new sound source device.

2. The method according to claim 1, characterized in that The step of starting the target mode of the audio source device includes: Determining target window configuration information of the sound source device according to the window configuration information of the Bluetooth headset and the window configuration information of the sound source device; The target mode of the audio source device is enabled based on the target window configuration information.

3. The method according to claim 2, characterized in that The step of determining target window configuration information of the sound source device according to the window configuration information of the Bluetooth headset and the window configuration information of the sound source device comprises: The optimal window configuration information among the window configuration information of the Bluetooth headset and the window configuration information of the sound source device is determined as the target window configuration information.

4. The method according to claims 1-3, characterized in that: The method further comprises: When it is detected that the Bluetooth headset is not establishing a connection for the first time, obtaining a pairing list of the Bluetooth headset; When the number of audio source devices paired and connected with the Bluetooth headset in the pairing list is greater than or equal to a preset threshold, it is determined whether the Bluetooth headset supports one-to-many functions and whether the audio source device supports the target mode.

5. The method according to claim 4, characterized in that When the number of audio source devices paired and connected with the Bluetooth headset in the pairing list is greater than or equal to a preset threshold, determining whether the Bluetooth headset supports one-to-many functions and whether the audio source device supports the target mode includes: When the number of audio source devices paired and connected with the Bluetooth headset in the pairing list is greater than or equal to a preset threshold, acquiring configuration information of the Bluetooth headset; Whether the Bluetooth headset supports one-to-multi-function is determined according to the configuration information of the Bluetooth headset, and whether the audio source device supports the target mode is determined according to the configuration information of the audio source device.

6. The method according to claim 4, characterized in that The method further comprises: If there is no audio source device paired with the Bluetooth headset in the pairing list, first indication information is output; the first indication information is used to instruct the user to perform a pairing operation on the Bluetooth headset.

7. The method according to claim 4, characterized in that The method further comprises: If the pairing list is empty, a second indication information is output; the second indication information is used to instruct the user to perform a pairing operation on the Bluetooth headset.

8. The method according to claim 1, characterized in that The method further comprises: If the Bluetooth headset supports one-to-multi-functions and the audio source device does not support the target mode, a third indication message is sent to the Bluetooth headset; the third indication message is used to instruct the Bluetooth headset to turn on the inquiry scanning mode and the paging scanning mode.

9. The method according to claim 1, characterized in that: The method further comprises: In the case that the Bluetooth headset does not support one-to-many functions, fourth indication information is output; the fourth indication information is used to instruct the user to perform a pairing operation on the Bluetooth headset.

10. The method according to claim 1, characterized in that The method further comprises: When it is detected that the Bluetooth headset is connected for the first time, fifth indication information is output; the fifth indication information is used to instruct the user to perform a pairing operation on the Bluetooth headset.

11. A device connection device, characterized in that: Applicable to audio source equipment, including: An enabling module, configured to enable a target mode of the sound source device when it is determined that the Bluetooth headset connected to the sound source device supports one-to-many functions and the sound source device supports a target mode; the target mode includes an inquiry scanning mode and a paging scanning mode; The sending module is used to send information of the new sound source device to the Bluetooth headset if a new sound source device is detected in the target mode, so that the Bluetooth headset is paired with the new sound source device.

12. A sound source device, comprising a transceiver, a memory and a processor, wherein a computer program is stored in the memory, characterized in that: When the computer program is executed by the processor, the processor is caused to perform the steps of the device connection method according to any one of claims 1 to 10.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.

14. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.

Citation Information

Patent Citations

  • Bluetooth device matching method and system

    CN104540190A

  • Equipment switching method and related equipment

    CN111083755A

  • Automatic switching method and device for Bluetooth connection, equipment and medium

    CN115515117A

  • Data transmission method and device, storage medium and terminal equipment

    CN116437329A