A smart networking method of a Bluetooth audio device, a Bluetooth audio device and a storage medium

By automatically detecting the number of similar devices and switching pairing modes via Bluetooth audio devices, the problem of complicated mode switching in existing technologies is solved, achieving seamless device networking and improving user experience.

CN122120739APending Publication Date: 2026-05-29ZHUHAI JIELI TECH
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
ZHUHAI JIELI TECH
Filing Date
2026-01-06
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

The operation of switching between TWS pairing mode and LE Audio broadcast mode in existing Bluetooth audio devices is complicated. Users need to switch manually, which is prone to misoperation and affects the reliability of device combination and user experience.

Method used

Bluetooth audio devices automatically detect the number of similar devices in the environment through BLE broadcast frames and automatically switch pairing modes according to the number, without requiring manual operation by the user. They use broadcast names, MAC addresses, network pairing priority rules, and custom private protocol content to distinguish devices and form networks.

Benefits of technology

It achieves seamless device networking, simplifies the mode switching process, improves user experience, reduces operational complexity, and allows users to immerse themselves in audio content.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122120739A_ABST
    Figure CN122120739A_ABST
Patent Text Reader

Abstract

The application provides a smart networking method of a Bluetooth audio device, which comprises the following steps: S100, one or more Bluetooth audio devices enter a pairable state; S200, each Bluetooth audio device starts BLE broadcasting to send a BLE broadcasting frame, starts BLE scanning, and determines the number of same type BLE broadcasting frames in the environment according to the content of the scanned BLE broadcasting frame; S300, the number of same type BLE broadcasting frames is used to determine the pairable mode of the Bluetooth audio device; and S400, the Bluetooth audio device is paired and networked according to the pairable mode determined in step S300. The application also provides a Bluetooth audio device and a storage medium. The method, the Bluetooth audio device and the storage medium have the technical effects of improving user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of Bluetooth, and more particularly to a smart networking method for Bluetooth audio devices, a Bluetooth audio device, and a storage medium. Background Technology

[0002] In recent years, Bluetooth technology has matured significantly, and speakers supporting multi-speaker setups and broadcasting are now widely used in daily life. TWS speakers offer high-fidelity stereo sound quality, meeting the needs of immersive personal listening; while LE Audio broadcast speakers achieve seamless multi-channel synchronization, facilitating music sharing across multiple devices. These two technologies together form the foundation of today's high-quality audio experience.

[0003] However, while enjoying the convenience of the technology, the switching experience between the two modes suffers from a significant bottleneck. Most speakers on the market that currently support both modes still rely on traditional physical buttons for switching. Users not only need to memorize cumbersome button combinations and indicator light states, but also must manually exit the current mode before switching, making the process rigid and prone to errors. This design, which directly transfers technological complexity to the user, not only disrupts the continuous auditory experience but also exposes the device's shortcomings in intelligent sensing and autonomous collaboration.

[0004] Specifically, traditional solutions use different combinations of physical buttons to trigger either TWS pairing or LE Audio broadcasting modes. However, since these two modes are independent and mutually exclusive, when a user needs to combine multiple devices into an LE Audio broadcasting array, they must ensure that all devices are accurately in LE Audio mode. If, due to misoperation, some devices enter TWS pairing mode, the system will experience a state split. At this point, the user must manually intervene one by one, re-operating on the devices in the incorrect mode until all devices are in the same state to achieve normal cascading playback. This process significantly increases operational complexity and affects the reliability of multi-device combinations.

[0005] In general, traditional technical solutions have three major drawbacks: First, the operation logic is complex, resulting in a poor user experience. Users need to memorize two sets of button logic, which leads to a high learning cost and a high risk of operation failure.

[0006] Second, the mode switching is rigid and the scenario adaptability is poor. The forced "exit-re-enter" process interrupts the continuous experience and hinders the flexible switching between different usage scenarios.

[0007] Third, the complexity of the technology is made explicit; directly exposing the complexity of the underlying connection management to users violates the principle of "technology serving the experience" and forces users to focus on operational details rather than enjoying the audio content itself.

[0008] In the era of interconnected and intelligent technology, this switching logic that remains stuck in the "manual era" clearly falls far short of users' expectations for a seamless and smooth audio experience. Summary of the Invention

[0009] Based on the above situation, the main objective of this invention is to provide a smart networking method for Bluetooth audio devices, a Bluetooth audio device, and a storage medium that allows networking without requiring users to manually switch modes.

[0010] To achieve the above objectives, the technical solution adopted by the present invention is as follows: A method for intelligent networking of Bluetooth audio devices, the method comprising: Step S100: One or more Bluetooth audio devices enter a pairing state; Step S200: Each Bluetooth audio device initiates BLE broadcasting and sends out BLE broadcast frames, and initiates BLE scanning to determine the number of similar BLE broadcast frames in the environment based on the content of the scanned BLE broadcast frames. Step S300: Determine the pairing mode entered by the Bluetooth audio device based on the number of similar BLE broadcast frames; when the number of similar BLE broadcast frames in the environment is 1, the Bluetooth audio device exits the pairing state; when the number of similar BLE broadcast frames in the environment is 2, the Bluetooth audio device automatically switches to TWS pairing mode or maintains the original TWS pairing mode; when the number of similar BLE broadcast frames in the environment is greater than or equal to 3, the Bluetooth audio device automatically switches to LE Audio pairing mode or maintains the original LE Audio pairing mode. Step S400: The Bluetooth audio device pairs and forms a network according to the pairing mode determined in step S300.

[0011] Preferably, the BLE broadcast frame includes one or more of the following: broadcast name, MAC address, network pairing priority rules, and custom private protocol content; The custom private protocol content includes network link identifier and / or network device quantity identifier; The broadcast name is used to distinguish different types of Bluetooth audio devices; The MAC address is used to distinguish different Bluetooth audio devices; The network pairing priority rule is used to determine the master and slave status of the Bluetooth audio devices after they are networked. The custom private protocol content is used to identify the specific networking requirements of the Bluetooth audio device; The network link identifier is used to distinguish different network links; The network device quantity identifier is used to determine the upper limit of the number of Bluetooth audio devices participating in the network in the network link.

[0012] Preferably, the network pairing priority rule is as follows: The Bluetooth audio device in a call state is used as the master, and the other Bluetooth audio devices are used as slaves; If none of the Bluetooth audio devices are in a call state, the Bluetooth audio device in the playback state is used as the master, and the other Bluetooth audio devices are used as slaves; If neither of the Bluetooth audio devices is in a call state nor in a playback state, the Bluetooth audio device with the most connected Bluetooth audio devices shall be designated as the master device, and the remaining Bluetooth audio devices shall be designated as slave devices. When multiple Bluetooth audio devices have the same priority, the master is determined by the size of the MAC address, and the remaining Bluetooth audio devices are slaves.

[0013] Preferably, determining the number of similar BLE broadcast frames in the environment based on the scanned BLE broadcast frame content includes: Step S210a: Determine whether the broadcast names of the scanned BLE broadcast frames are consistent; if they are consistent, proceed to step S220a, otherwise proceed to step S230a. Step S220a: The BLE broadcast frame is the same type of BLE broadcast frame; Step S230a: The BLE broadcast frame is not the same type of BLE broadcast frame; Alternatively, determining the number of similar BLE broadcast frames in the environment based on the scanned BLE broadcast frame content includes: Step S210b: Determine whether the broadcast names in the scanned BLE broadcast frames are consistent; if they are consistent, proceed to step S220b, otherwise proceed to step S240b. Step S220b: Determine whether the Bluetooth audio devices with the same broadcast name belong to the same network link. If yes, proceed to step S230b; otherwise, proceed to step S240b. Step S230b: The BLE broadcast frame is the same type of BLE broadcast frame; Step S240b: The BLE broadcast frame is not the same type of BLE broadcast frame; Alternatively, determining the number of similar BLE broadcast frames in the environment based on the scanned BLE broadcast frame content includes: Step S210c: Determine whether the broadcast names in the scanned BLE broadcast frames are consistent; if they are consistent, proceed to step S220c; otherwise, proceed to step S250c. Step S220c: Determine whether the Bluetooth audio devices with the same broadcast name belong to the same network link. If yes, proceed to step S230c; otherwise, proceed to step S250c. Step S230c: Determine whether the number of BLE broadcast frames with the same broadcast name and belonging to the same network link exceeds the number of network devices; if it does not exceed, proceed to step S240c, otherwise proceed to step S250c. Step S240c: The BLE broadcast frame is the same type of BLE broadcast frame; Step S250c: The BLE broadcast frame is not the same type of BLE broadcast frame.

[0014] Preferably, determining the number of similar BLE broadcast frames in the environment based on the scanned BLE broadcast frame content includes: Step S210d: Determine whether the broadcast names of the scanned BLE broadcast frames are consistent; if they are consistent, proceed to step S220d; otherwise, proceed to step S250d. Step S220d: Determine whether the BLE broadcast frame with the same broadcast name has a network device quantity identifier that limits the maximum number of network devices. If yes, proceed to step S230d; otherwise, proceed to step S240d. Step S230d: Determine the number of BLE broadcast frames of the same type based on the maximum value in the network device quantity identifier; Step S240d: Identify the BLE broadcast frames with the same broadcast name as the same type of BLE broadcast frames; Step S250d: The BLE broadcast frame is not the same type of BLE broadcast frame; Alternatively, determining the number of similar BLE broadcast frames in the environment based on the scanned BLE broadcast frame content includes: Step S210e: Determine whether the broadcast names in the scanned BLE broadcast frames are consistent; if they are consistent, proceed to step S220e; otherwise, proceed to step S260e. Step S220e: Determine whether the Bluetooth audio devices with the same broadcast name belong to the same network link. If yes, proceed to step S230e; otherwise, proceed to step S260e. Step S230e: Determine whether the BLE broadcast frames with the same broadcast name and belonging to the same network link have a network device number identifier that limits the upper limit of the number of network devices. If yes, proceed to step S240e; otherwise, proceed to step S250e. Step S240e: Determine the number of BLE broadcast frames of the same type based on the maximum value in the network device quantity identifier; Step S250e: Identify BLE broadcast frames with the same broadcast name and belonging to the same network link as the same type of BLE broadcast frames; Step S260e: The BLE broadcast frame is not the same type of BLE broadcast frame.

[0015] Preferably, in step S220d or step S230e, when the BLE broadcast frame contains an identifier indicating the maximum number of network devices, The Bluetooth audio devices corresponding to the same type of broadcast frames are determined according to the number of network devices in descending order and the MAC address in descending order. In step S400, the Bluetooth audio devices corresponding to the same type of broadcast frames are paired and networked.

[0016] Preferably, when the Bluetooth audio device is in a pairable state, steps S200 and S300 are continuously executed; The Bluetooth audio device executes step S200 at the same frequency before and after networking; or the frequency of executing step S200 before networking is higher than the frequency of executing step S200 after networking.

[0017] Preferably, the user manually controls the one or more Bluetooth audio devices to enter or exit a pairing state.

[0018] The present invention also provides a Bluetooth audio device, the Bluetooth audio device comprising: A pairing state activation module is used to activate the pairing state of the Bluetooth audio device. The BLE broadcast module is used to send BLE broadcast frames; The BLE scanning module is used to scan the BLE broadcast frames. The counting module is used to determine the number of similar BLE broadcast frames in the environment based on the scanned content of the BLE broadcast frames; The pairing mode switching module is used to determine the pairing mode that the Bluetooth audio device enters based on the number of similar BLE broadcast frames. When the number of similar BLE broadcast frames in the environment is 1, the Bluetooth audio device exits the pairing state. When the number of similar BLE broadcast frames in the environment is 2, the Bluetooth audio device automatically switches to TWS pairing mode or maintains the original TWS pairing mode. When the number of similar BLE broadcast frames in the environment is greater than or equal to 3, the Bluetooth audio device automatically switches to LE Audio pairing mode or maintains the original LE Audio pairing mode. The pairing and networking module is used to perform pairing and networking according to the pairing mode determined by the pairing mode switching module.

[0019] Preferably, the BLE broadcast frame includes one or more of the following: broadcast name, MAC address, network pairing priority rules, and custom private protocol content; The custom private protocol content includes network link identifier and / or network device quantity identifier; The broadcast name is used to distinguish different types of Bluetooth audio devices; The MAC address is used to distinguish different Bluetooth audio devices; The network pairing priority rule is used to determine the master and slave status of the Bluetooth audio devices after they are networked. The custom private protocol content is used to identify the specific networking requirements of the Bluetooth audio device; The network link identifier is used to distinguish different network links; The network device quantity identifier is used to determine the upper limit of the number of Bluetooth audio devices participating in the network in the network link.

[0020] Preferably, the network pairing priority rule is as follows: The Bluetooth audio device in a call state is used as the master, and the other Bluetooth audio devices are used as slaves; If none of the Bluetooth audio devices are in a call state, the Bluetooth audio device in the playback state is used as the master, and the other Bluetooth audio devices are used as slaves; If neither of the Bluetooth audio devices is in a call state nor in a playback state, the Bluetooth audio device with the most connected devices shall be designated as the master, and the remaining Bluetooth audio devices shall be designated as slaves. When multiple Bluetooth audio devices have the same priority, the master is determined by the size of the MAC address, and the remaining Bluetooth audio devices are slaves.

[0021] Preferably, the calculation module specifically includes: The judgment module is used to determine whether the broadcast names of the scanned BLE broadcast frames are consistent; if they are consistent, the BLE broadcast frame is determined to be a BLE broadcast frame of the same type; otherwise, the BLE broadcast frame is determined not to be a BLE broadcast frame of the same type. Or the computing module specifically includes: The first judgment module is used to determine whether the broadcast names in the scanned BLE broadcast frames are consistent; The second judgment module is used to determine whether the Bluetooth audio devices with the same broadcast name belong to the same network link; If the first judgment module determines that the broadcast name in the scanned BLE broadcast frame is consistent, then the second judgment module is activated to make a judgment; otherwise, it is determined that the BLE broadcast frame is not the same type of BLE broadcast frame. If the second determination module determines that the Bluetooth audio devices with the same broadcast name belong to the same network link, then the BLE broadcast frame is determined to be a BLE broadcast frame of the same type; otherwise, the BLE broadcast frame is determined not to be a BLE broadcast frame of the same type. Or the computing module specifically includes: Module 1 is used to determine whether the broadcast names in the scanned BLE broadcast frames are consistent; Module 2 is used to determine whether the Bluetooth audio devices with the same broadcast name belong to the same network link; Module 3 is used to determine whether the number of BLE broadcast frames with the same broadcast name and belonging to the same network link exceeds the number of network devices. If the judgment module one determines that the broadcast name in the scanned BLE broadcast frame is consistent, then the judgment module two is activated to make a judgment; otherwise, it is determined that the BLE broadcast frame is not the same type of BLE broadcast frame. If the second judgment module determines that the Bluetooth audio devices with the same broadcast name belong to the same network link, then the third judgment module is activated to make a judgment; otherwise, the BLE broadcast frame is not a BLE broadcast frame of the same type. If the determination module three determines that the number of BLE broadcast frames with the same broadcast name and belonging to the same network link does not exceed the number of network devices, then the BLE broadcast frame is determined to be a BLE broadcast frame of the same type; otherwise, the BLE broadcast frame is determined not to be a BLE broadcast frame of the same type.

[0022] Preferably, the counting module specifically includes: The first judgment module is used to determine whether the broadcast names of the scanned BLE broadcast frames are consistent; The second judgment module determines whether the BLE broadcast frame with the same broadcast name is set with a network device quantity identifier that limits the upper limit of the number of network devices; If the first judgment module determines that the broadcast name in the scanned BLE broadcast frame is consistent, then the second judgment module is started to make a judgment; otherwise, it is determined that the BLE broadcast frame is not the same type of BLE broadcast frame. The second judgment module determines that when the BLE broadcast frame with the same broadcast name is set with a network device quantity identifier that limits the upper limit of the number of network devices, the number of the same type of BLE broadcast frame is determined by the maximum value in the network device quantity identifier; otherwise, the BLE broadcast frame with the same broadcast name is determined as the same type of BLE broadcast frame. Or the computing module specifically includes: Module 1 is used to determine whether the broadcast names of the scanned BLE broadcast frames are consistent; Module 2 is used to determine whether the Bluetooth audio devices with the same broadcast name belong to the same network link; Module 3 is used to determine whether the BLE broadcast frames with the same broadcast name and belonging to the same network link are set with a network device quantity identifier that limits the upper limit of the number of network devices; If the judgment module one determines that the broadcast name in the scanned BLE broadcast frame is consistent, then the judgment module two is activated to make a judgment; otherwise, it is determined that the BLE broadcast frame is not the same type of BLE broadcast frame. If the second judgment module determines that the Bluetooth audio devices with the same broadcast name belong to the same network link, then the third judgment module is activated to make a judgment; otherwise, the BLE broadcast frame is not a BLE broadcast frame of the same type. If the judgment module three determines that the BLE broadcast frames with the same broadcast name and belonging to the same network link are set with a network device number identifier that limits the upper limit of the number of network devices, the maximum value in the network device number identifier is used to determine the number of BLE broadcast frames of the same type; otherwise, the BLE broadcast frames with the same broadcast name and belonging to the same network link are determined as the BLE broadcast frames of the same type.

[0023] Preferably, in the second judgment module or the third judgment of the judgment module, when the BLE broadcast frame contains an identifier indicating the maximum number of network devices, The Bluetooth audio devices corresponding to the same type of broadcast frames are determined according to the number of network devices in descending order and the MAC address in descending order. The Bluetooth audio devices corresponding to the same type of broadcast frames are paired and networked through the pairing and networking module.

[0024] Preferably, when the Bluetooth audio device is in a pairable state, the BLE broadcast module, the BLE scanning module, and the counting module continue to operate; Before and after networking, the broadcast frequency of the BLE broadcast module and the scanning frequency of the BLE scanning module of the Bluetooth audio device are the same; or the broadcast frequency and scanning frequency before networking are higher than the broadcast frequency and scanning frequency after networking.

[0025] Preferably, the user manually controls one or more of the Bluetooth audio devices to enter or exit a pairing state.

[0026] The present invention also provides a storage medium storing a computer program, which, when executed by a processor, enables the intelligent networking method for Bluetooth audio devices as described above.

[0027] The intelligent networking method for Bluetooth audio devices provided by this invention involves BLE broadcasting BLE frames after the Bluetooth audio device enters a pairable state. BLE scanning determines the number of similar BLE broadcast frames in the environment, and then determines whether the Bluetooth audio device needs to automatically switch pairing modes based on the number of BLE broadcast frames. If switching is required, the Bluetooth audio device automatically switches pairing modes without manual user operation or the need for users to memorize multiple sets of button logic. Pairing modes can be flexibly selected in different usage scenarios. The technical complexity of mode switching is resolved at the product design level and is not exposed to the user, allowing users to immerse themselves in the audio content and greatly improving the user experience.

[0028] The Bluetooth audio device and storage medium provided by this invention also have the above-mentioned technical effects.

[0029] Other beneficial effects of the present invention will be explained in detail through the introduction of specific technical features and technical solutions in specific embodiments. Those skilled in the art should be able to understand the beneficial technical effects brought about by these technical features and technical solutions through the introduction of these technical features and technical solutions. Attached Figure Description

[0030] Preferred embodiments of the present invention will now be described with reference to the accompanying drawings.

[0031] Figure 1 This is a schematic diagram of the basic process of a smart networking method for Bluetooth audio devices according to an embodiment of the present invention.

[0032] Figure 2 This is a diagram illustrating the data structure of a BLE broadcast frame in an embodiment of the present invention.

[0033] Figures 3 to 7 This is a schematic diagram illustrating the main process of determining similar BLE broadcast frames in the environment based on the scanned BLE broadcast frame content in an embodiment of the present invention.

[0034] Figure 8 and Figure 9This is a network topology diagram for different application scenarios.

[0035] Figure 10 This is a schematic diagram of the module structure of a Bluetooth audio device. Detailed Implementation

[0036] The present invention is described below based on embodiments, but the present invention is not limited to these embodiments. In the following detailed description of the present invention, some specific details are described in detail, but well-known methods, processes, procedures, and elements are not described in detail in order to avoid obscuring the essence of the present invention.

[0037] Furthermore, those skilled in the art should understand that the accompanying drawings provided herein are for illustrative purposes only and are not necessarily drawn to scale.

[0038] Unless the context explicitly requires it, the words "comprising," "including," and similar terms throughout the specification and claims should be interpreted as encompassing rather than being exclusive or exhaustive; that is, meaning "including but not limited to."

[0039] In the description of this invention, it should be understood that the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance. Furthermore, in the description of this invention, unless otherwise stated, "a plurality of" means two or more.

[0040] This invention provides a smart networking method for Bluetooth audio devices, the method comprising: Step S100: One or more Bluetooth audio devices enter a pairing state; Step S200: Each Bluetooth audio device initiates BLE broadcasting and sends out BLE broadcast frames, and initiates BLE scanning to determine the number of similar BLE broadcast frames in the environment based on the content of the scanned BLE broadcast frames. Step S300: Determine the pairing mode entered by the Bluetooth audio device based on the number of similar BLE broadcast frames; when the number of similar BLE broadcast frames in the environment is 1, the Bluetooth audio device exits the pairing state; when the number of similar BLE broadcast frames in the environment is 2, the Bluetooth audio device automatically switches to TWS pairing mode or maintains the original TWS pairing mode; when the number of similar BLE broadcast frames in the environment is greater than or equal to 3, the Bluetooth audio device automatically switches to LE Audio pairing mode or maintains the original LE Audio pairing mode. Step S400: The Bluetooth audio device pairs and forms a network according to the pairing mode determined in step S300.

[0041] The intelligent networking method for Bluetooth audio devices provided by this invention involves BLE broadcasting BLE frames after the Bluetooth audio device enters a pairable state. BLE scanning determines the number of similar BLE broadcast frames in the environment, and then determines whether the Bluetooth audio device needs to automatically switch pairing modes based on the number of BLE broadcast frames. If switching is required, the Bluetooth audio device automatically switches pairing modes without manual user operation or the need for users to memorize multiple sets of button logic. Pairing modes can be flexibly selected in different usage scenarios. The technical complexity of mode switching is resolved at the product design level and is not exposed to the user, allowing users to immerse themselves in the audio content and greatly improving the user experience.

[0042] Please see Figure 1 This invention provides a smart networking method for Bluetooth audio devices, applicable to networking multiple Bluetooth audio devices. As one embodiment, when there are two Bluetooth audio devices, both devices enter TWS pairing mode. After pairing and networking, the two Bluetooth audio devices enter TWS stereo mode to play audio signals. As another embodiment, when there are three Bluetooth audio devices, all three devices enter LE Audio pairing mode. After pairing and networking, the three Bluetooth audio devices seamlessly play audio signals in multi-channel synchronous mode.

[0043] It is understandable that Bluetooth audio devices can be Bluetooth speakers, Bluetooth headphones, smartphones, and other electronic devices that support Bluetooth connectivity and audio playback.

[0044] Smart networking methods for Bluetooth audio devices include: Step S100: One or more Bluetooth audio devices enter a pairing state; Step S200: Each Bluetooth audio device initiates BLE broadcasting and sends out BLE broadcast frames, and initiates BLE scanning to determine the number of similar BLE broadcast frames in the environment based on the content of the scanned BLE broadcast frames. Step S300: Determine the pairing mode entered by the Bluetooth audio device based on the number of similar BLE broadcast frames; when the number of similar BLE broadcast frames in the environment is 1, the Bluetooth audio device exits the pairing state; when the number of similar BLE broadcast frames in the environment is 2, the Bluetooth audio device automatically switches to TWS pairing mode or maintains the original TWS pairing mode; when the number of similar BLE broadcast frames in the environment is greater than or equal to 3, the Bluetooth audio device automatically switches to LE Audio pairing mode or maintains the original LE Audio pairing mode. Step S400: The Bluetooth audio device pairs and forms a network according to the pairing mode determined in step S300.

[0045] It is understood that in step S100, one or more Bluetooth audio devices enter a pairing-ready state. In the pairing-ready state, the Bluetooth audio devices can pair and network according to the set pairing mode. For example, in the pairing-ready state, when the Bluetooth audio device is configured in TWS pairing mode, the Bluetooth audio device will pair and network according to the TWS pairing mode; when the Bluetooth audio device is configured in LE Audio pairing mode, the Bluetooth audio device will pair and network according to the LE Audio pairing mode.

[0046] As one example, a user can manually put one or more Bluetooth audio devices into or out of pairing mode. If the Bluetooth audio device has a button or user interface, the user can click the button or issue a command through the user interface to put the Bluetooth audio device into pairing mode.

[0047] It is understood that in step S200, each Bluetooth audio device initiates BLE broadcasting and sends out BLE broadcast frames, and initiates BLE scanning to determine the number of similar BLE broadcast frames in the environment based on the content of the scanned BLE broadcast frames.

[0048] Compared to existing technologies, Bluetooth audio devices now feature a smart broadcast scheduling hub. This hub allows the Bluetooth audio device to adaptively set its pairing mode based on the application scenario, such as whether it's a TWS pairing mode or an LE Audio pairing mode. The smart broadcast scheduling hub is configured to implement the functions of steps S200 and S300.

[0049] Specifically, after a Bluetooth audio device enters a pairing-ready state, each Bluetooth audio device initiates BLE broadcasting and starts BLE scanning.

[0050] As one implementation, BLE broadcasting and BLE scanning can be performed only after the Bluetooth audio device enters a pairable state but before successful pairing and networking. However, the application scenarios for this are somewhat limited. For example, if some Bluetooth audio devices that have successfully networked in LE Audio pairing mode exit the pairing mode, causing the pairing mode to need to be switched, the Bluetooth audio devices in the networked state do not perform BLE scanning, and therefore cannot detect this situation, thus preventing the pairing mode from being switched.

[0051] To overcome the limited application scenarios mentioned in the previous paragraph, in a more preferred embodiment, steps S200 and S300 are continuously executed while the Bluetooth audio devices are in a pairable state. In this case, the application scenarios are greatly broadened. When multiple Bluetooth audio devices are already paired and networked, the exit of one Bluetooth audio device or the addition of a new Bluetooth audio device can be intelligently detected, and the pairing mode of all Bluetooth audio devices can be adaptively adjusted.

[0052] In one embodiment, the Bluetooth audio device executes step S200 at the same frequency before and after network formation. In another embodiment, the frequency of executing step S200 before network formation is higher than the frequency of executing step S200 after network formation.

[0053] It is understood that the Bluetooth audio device determines the number of similar BLE broadcast frames in the environment based on the scanned BLE broadcast frame content. The content of the BLE broadcast frame can be defined by the user or predefined by the Bluetooth audio device manufacturer, etc., without requiring user definition. As one embodiment, the content of the BLE broadcast frame is partly defined by the Bluetooth audio device manufacturer, etc., and partly defined by the user.

[0054] Please see Figure 2 As one embodiment, a BLE broadcast frame includes one or more of the following: broadcast name (Local name), MAC address (MAC addr), pairing priority rule (Pairing Priority), and custom private protocol content (Privateparam); the custom private protocol content includes network link identifier and / or network device quantity identifier.

[0055] The broadcast name is used to distinguish different types of Bluetooth audio devices. For example, the broadcast name can be a brand name, such as Xiaomi or Huawei, or a device model, such as Xiaomi buds5 or Huawei freebuds. It can also be a device model and a specific code, such as Xiaomi buds5 Music1.

[0056] The MAC address is used to distinguish different Bluetooth audio devices. In some embodiments, the broadcast name and MAC address work together to differentiate between different Bluetooth audio devices.

[0057] The network pairing priority rule is used to determine the master / slave status of Bluetooth audio devices after they are networked. As one embodiment, the network pairing priority rule is: 1. The Bluetooth audio device in a call state is used as the master, and the other Bluetooth audio devices are used as slaves.

[0058] 2. If none of the Bluetooth audio devices are in a call state, the Bluetooth audio device in the playback state shall be the master, and the other Bluetooth audio devices shall be the slaves.

[0059] 3. If neither of the Bluetooth audio devices is in a call state nor in a playback state, the Bluetooth audio device with the most connected Bluetooth audio devices shall be designated as the master device, and the remaining Bluetooth audio devices shall be designated as slave devices.

[0060] 4. When multiple Bluetooth audio devices have the same priority, the master is determined by the size of the MAC address, and the remaining Bluetooth audio devices are slaves.

[0061] It is understandable that when determining which Bluetooth audio device should be the host after networking, the Bluetooth audio device in call mode has the highest priority, followed by the Bluetooth audio device in playback mode, then the Bluetooth audio device with the most connected devices, and finally the Bluetooth audio device with a large or small MAC address.

[0062] It is understandable that the priority rules for network pairing are not limited, and other rules can also be used to determine the master and slave status.

[0063] The custom private protocol content is used to identify the specific networking requirements of the Bluetooth audio device. Preferably, the user has the right to set the custom private protocol content, so that the user can customize the settings. As one embodiment, the custom private protocol content can also be predefined by a non-user.

[0064] These can be used for special status identifiers, allowing control over which Bluetooth audio devices in an environment enter independent network links. For example, they can identify whether a Bluetooth audio device participates only in TWS pairing mode or LE Audio pairing mode. Another example is setting a custom limit on the number of Bluetooth audio devices that can participate in a network.

[0065] The network link identifier is used to distinguish different network links; for example, it can be defined that the Bluetooth audio device only participates in TWS pairing mode or LE Audio pairing mode. Another example is that the Bluetooth audio device can be defined to only participate in network links with specific labels.

[0066] The network device quantity identifier is used to determine the upper limit of the number of Bluetooth audio devices participating in the network link. For example, the number of network devices can be customized to be less than or equal to 5.

[0067] It is understood that the specific data structure (payload) of a BLE broadcast frame is not limited, as long as it can broadcast and identify different devices and provide content for determining whether it is a BLE broadcast frame of the same type. Preferably, the specific data structure of a BLE broadcast frame consists of the following: Figure 2 As shown, the specific data structure of a BLE broadcast frame includes a broadcast name field, a MAC address field, a network pairing priority rule field, and a custom private protocol field.

[0068] It is understandable that there can be various ways to determine the number of similar BLE broadcast frames in the environment based on the scanned BLE broadcast frame content.

[0069] Please see Figure 3 As one embodiment, determining the number of similar BLE broadcast frames in the environment based on the scanned BLE broadcast frame content includes: Step S210a: Determine whether the broadcast names of the scanned BLE broadcast frames are consistent; if they are consistent, proceed to step S220a, otherwise proceed to step S230a. Step S220a: The BLE broadcast frame is the same type of BLE broadcast frame; Step S230a: The BLE broadcast frame is not the same type of BLE broadcast frame.

[0070] It is understood that in this embodiment, the Bluetooth audio device determines whether a BLE broadcast frame in the environment belongs to the same type of BLE broadcast frame as its own based on whether the broadcast name is consistent. For example, if six Bluetooth audio devices (such as Bluetooth audio devices A, B, C, D, E, and F) participate in a network, but only five Bluetooth audio devices (such as Bluetooth audio devices A, B, C, D, and E) have the same broadcast name, although these six Bluetooth audio devices scan five BLE broadcast frames other than their own, after judgment, only four of the Bluetooth audio devices A, B, C, D, and E have broadcast names that are consistent with their own broadcast name. Therefore, for Bluetooth audio devices A, B, C, D, and E, only four of their BLE broadcast frames belong to the same type as their own BLE broadcast frames. Thus, the total number of similar BLE broadcast frames in the environment is five (it can be understood that the number of similar BLE broadcast frames in the environment described in this invention includes the Bluetooth audio device itself as the scanning subject).

[0071] Please see Figure 4 As one embodiment, determining the number of similar BLE broadcast frames in the environment based on the scanned BLE broadcast frame content includes: Step S210b: Determine whether the broadcast names in the scanned BLE broadcast frames are consistent; if they are consistent, proceed to step S220b, otherwise proceed to step S240b. Step S220b: Determine whether the Bluetooth audio devices with the same broadcast name belong to the same network link. If yes, proceed to step S230b; otherwise, proceed to step S240b. Step S230b: The BLE broadcast frame is the same type of BLE broadcast frame; Step S240b: The BLE broadcast frame is not the same type of BLE broadcast frame.

[0072] It is understood that in this embodiment, Bluetooth audio devices determine whether BLE broadcast frames in the environment belong to the same type of BLE broadcast frames as their own based on whether the broadcast name and network link are consistent. For example, if six Bluetooth audio devices (such as Bluetooth audio devices A, B, C, D, E, and F) participate in a network, but only five Bluetooth audio devices have the same broadcast name (such as Bluetooth audio devices A, B, C, D, and E), and only four of these five Bluetooth audio devices have the same network link identifier (such as Bluetooth audio devices A, B, C, and D), then although these six Bluetooth audio devices scan five BLE broadcast frames other than their own, after judgment, Bluetooth audio devices A, B, C, D, and E will find that only four of these Bluetooth audio devices have the same broadcast name as their own, and among the Bluetooth audio devices with the same broadcast name, one Bluetooth audio device has a network link identifier that is inconsistent with other network link identifiers. In this case, Bluetooth audio devices A, B, C, D, and E determine that the number of similar BLE broadcast frames in the environment is only four.

[0073] Please see Figure 5 As one embodiment, determining the number of similar BLE broadcast frames in the environment based on the scanned BLE broadcast frame content includes: Step S210c: Determine whether the broadcast names in the scanned BLE broadcast frames are consistent; if they are consistent, proceed to step S220c; otherwise, proceed to step S250c. Step S220c: Determine whether the Bluetooth audio devices with the same broadcast name belong to the same network link. If yes, proceed to step S230c; otherwise, proceed to step S250c. Step S230c: Determine whether the number of BLE broadcast frames with the same broadcast name and belonging to the same network link exceeds the number of network devices; if it does not exceed, proceed to step S240c, otherwise proceed to step S250c. Step S240c: The BLE broadcast frame is the same type of BLE broadcast frame; Step S250c: The BLE broadcast frame is not the same type of BLE broadcast frame.

[0074] It is understood that in this embodiment, the Bluetooth audio device determines whether a BLE broadcast frame in the environment belongs to the same type of BLE broadcast frame as its own by checking whether the broadcast name and network link are consistent, and whether the number of BLE broadcast frames on the same network link exceeds the network device count identifier. For example, if six Bluetooth audio devices (A, B, C, D, and E) participate in a network, but the broadcast names of Bluetooth audio devices A, B, C, D, and E are the same, while the name of Bluetooth audio device F is different from the other Bluetooth audio devices, the network link identifiers of Bluetooth audio devices A, B, C, and D are the same, and the network link identifier of Bluetooth audio device E is different from the network link identifiers of Bluetooth audio devices A, B, C, and D. The network device count identifiers of Bluetooth audio devices A, B, and C are all set to unlimited (0xFF), and the network device count identifier of Bluetooth audio device D is 3. In this situation, although the six Bluetooth audio devices scanned five BLE broadcast frames other than their own, after judgment, Bluetooth audio devices A, B, and C all determined that the number of similar BLE broadcast frames in the environment was only three.

[0075] Please see Figure 6 As one embodiment, determining the number of similar BLE broadcast frames in the environment based on the scanned BLE broadcast frame content includes: Step S210d: Determine whether the broadcast names of the scanned BLE broadcast frames are consistent; if they are consistent, proceed to step S220d; otherwise, proceed to step S240d. Step S220d: Determine whether the BLE broadcast frame with the same broadcast name has a network device quantity identifier that limits the upper limit of the number of network devices. If yes, proceed to step S230d; otherwise, proceed to step S240d. Step S230d: Determine the number of BLE broadcast frames of the same type based on the maximum value in the network device quantity identifier; Step S240d: Identify BLE broadcast frames with the same broadcast name as BLE broadcast frames of the same type; Step S250d: The BLE broadcast frame is not a BLE broadcast frame of the same type.

[0076] It is understood that in this embodiment, the number of similar BLE broadcast frames in the environment is determined by whether the broadcast names are consistent, combined with the network device quantity identifier. For example, if six Bluetooth audio devices (A, B, C, D, and E) participate in the network, but the broadcast names of Bluetooth audio devices A, B, C, D, and E are consistent, while the name of Bluetooth audio device F is different from the other Bluetooth audio devices, and the network link identifiers of Bluetooth audio devices A, B, C, and D are 2, 3, 0xff (i.e., unlimited), and 0xff respectively, then Bluetooth audio devices A and B have network device quantity identifiers that limit the upper limit of the number of network devices, while Bluetooth audio devices C and D do not have network device quantity identifiers that limit the upper limit of the number of network devices. In this case, the maximum value of 3 in the network device quantity identifier is used to determine the number of similar BLE broadcast frames.

[0077] It is understood that in step S220d, when the BLE broadcast frame contains a network device quantity identifier that limits the number of network devices, the Bluetooth audio devices corresponding to the same type of broadcast frame are determined according to the network device quantity identifier from largest to smallest and the MAC address from largest to smallest. For example, in the embodiment described in the previous paragraph, the number of the same type of BLE broadcast frames is 3. The Bluetooth audio devices corresponding to these 3 types of broadcast frames are Bluetooth audio devices A and B that have a network device quantity identifier, and Bluetooth audio device C with a relatively large MAC address (the MAC address of Bluetooth audio device C is larger than the MAC address of Bluetooth audio device D). Bluetooth audio device D with the smallest MAC address exits the pairing mode and enters the standalone state. In other words, when the number of BLE broadcast frames of the same type is determined by the maximum value in the network device quantity identifier, Bluetooth audio devices with a network device quantity identifier have a higher priority for participating in the network than Bluetooth audio devices without such an identifier. For Bluetooth audio devices without a network device quantity identifier, the priority for participating in the network is determined by the size of their MAC addresses; for example, Bluetooth audio devices with larger MAC addresses have a higher priority. This priority is used to determine the corresponding number of Bluetooth audio devices to be networked. In some embodiments, when the maximum value determines the number of BLE broadcast frames of the same type to be greater than the number of Bluetooth audio devices with the same broadcast name, all Bluetooth audio devices with the same broadcast name participate in the network.

[0078] In step S220d, when the BLE broadcast frame does not have a network device quantity identifier that limits the number of network devices, that is, when the network device quantity identifier of all Bluetooth audio devices is 0xff, the number of BLE broadcast frames with the same broadcast name in the environment corresponds to the number of BLE broadcast frames of the same type.

[0079] Please see Figure 7As one embodiment, determining the number of similar BLE broadcast frames in the environment based on the scanned BLE broadcast frame content includes: Step S210e: Determine whether the broadcast names in the scanned BLE broadcast frames are consistent; if they are consistent, proceed to step S220e; otherwise, proceed to step S260e. Step S220e: Determine whether Bluetooth audio devices with the same broadcast name belong to the same network link. If yes, proceed to step S230e; otherwise, proceed to step S260e. Step S230e: Determine whether BLE broadcast frames with the same broadcast name and belonging to the same network link have a network device number identifier that limits the maximum number of network devices. If yes, proceed to step S240e; otherwise, proceed to step S250e. Step S240e: Determine the number of BLE broadcast frames of the same type based on the maximum value in the network device quantity identifier. Step S250e: Identify BLE broadcast frames with the same broadcast name and belonging to the same network link as the same type of BLE broadcast frames; Step S260e: The BLE broadcast frame is not a BLE broadcast frame of the same type.

[0080] It is understood that in this embodiment, the number of similar BLE broadcast frames in the environment is determined by whether the broadcast name and network link are consistent, combined with the network device quantity identifier. For example, if six Bluetooth audio devices (A, B, C, D, E, and F) participate in the network, but the broadcast names of Bluetooth audio devices A, B, C, D, and E are the same, while the name of Bluetooth audio device F is different from the other Bluetooth audio devices; the network link identifiers of Bluetooth audio devices A, B, C, and D are the same, while the network link identifier of Bluetooth audio device E is different from the other Bluetooth audio devices; and the network device quantity identifiers of Bluetooth audio devices A, B, C, and D are 2, 0xff (i.e., unlimited), 0xff, and 0xff, respectively. That is, Bluetooth audio device A has a network device quantity identifier that limits the number of network devices, while Bluetooth audio devices B, C, and D do not have a network device quantity identifier that limits the number of network devices. In this case, the maximum value of 2 in the network device quantity identifier is used to determine the number of similar BLE broadcast frames.

[0081] It is understood that in step S230e, when a BLE broadcast frame contains a network device quantity identifier that limits the number of network devices, the Bluetooth audio devices corresponding to the same type of broadcast frame are determined according to the network device quantity identifier from largest to smallest and the MAC address from largest to smallest. For example, in the embodiment described in the previous paragraph, the number of the same type of BLE broadcast frames is 2. The Bluetooth audio devices corresponding to these 2 type of broadcast frames are Bluetooth audio device A, which has a network device quantity identifier, and Bluetooth audio device C, which has a relatively large MAC address (the MAC address of Bluetooth audio device C is larger than the MAC addresses of Bluetooth audio devices B and D). Bluetooth audio devices B and D exit the pairing mode and enter the standalone state. That is, when the number of the same type of BLE broadcast frames is determined by the maximum value in the network device quantity identifier, the priority of Bluetooth audio devices with a network device quantity identifier to participate in the network is higher than that of Bluetooth audio devices without a network device quantity identifier. For Bluetooth audio devices without a network device quantity identifier, the priority of participating in the network is determined by the size of the MAC address. For example, the Bluetooth audio device with the larger MAC address has a higher priority to participate in the network.

[0082] In step S250e, when the BLE broadcast frame does not have a network device number identifier that limits the number of network devices, that is, when the network link identifier of all Bluetooth audio devices is 0xff, the number of BLE broadcast frames with the same broadcast name and belonging to the same network link in the environment corresponds to the number of BLE broadcast frames of the same type.

[0083] It is understood that in step S300, the pairing mode entered by the Bluetooth audio device is determined based on the number of similar BLE broadcast frames. Specifically, when the number of similar BLE broadcast frames in the environment is 1, the Bluetooth audio device exits the pairing state, meaning it does not meet the pairing and networking conditions and cannot form a network. When the number of similar BLE broadcast frames in the environment is 2, the Bluetooth audio device automatically switches to TWS pairing mode or remains in its original TWS pairing mode. That is, if the two Bluetooth audio devices corresponding to similar BLE broadcast frames are not currently in TWS pairing mode, they will automatically switch to TWS pairing mode to establish a high-fidelity TWS stereo connection system; if the two Bluetooth audio devices corresponding to similar BLE broadcast frames are currently in TWS pairing mode, they can remain in their original TWS pairing mode without changing the pairing mode. When the number of similar BLE broadcast frames in the environment is greater than or equal to 3, the Bluetooth audio device automatically switches to LE Audio pairing mode or remains in its original LE Audio pairing mode. If two or more Bluetooth audio devices corresponding to the same type of BLE broadcast frame are not currently in LE Audio pairing mode, then these two or more Bluetooth audio devices will automatically switch to LE Audio pairing mode to establish a seamless multi-channel synchronous playback system; if two or more Bluetooth audio devices corresponding to the same type of BLE broadcast frame are currently in LE Audio pairing mode, then these two or more Bluetooth audio devices can remain in their original LE Audio pairing mode without changing the pairing mode.

[0084] It is understood that in step S400, the Bluetooth audio device pairs and forms a network according to the pairing mode determined in step S300.

[0085] It is understood that when a Bluetooth audio device first establishes a network, it will execute steps S100 to S400 in their entirety. After successful network establishment, it is preferable to continue executing steps S200 and S300. In step S300, if the pairing mode is switched, step S400 will be executed. If the pairing mode is not switched, it can be understood that step S400 will not be executed, or step S400 can be considered to represent a state of network establishment.

[0086] It can be understood that in step S400, the Bluetooth audio devices that form a network are the Bluetooth audio devices corresponding to the same type of BLE broadcast frames.

[0087] Please see Figure 8In some basic networking scenarios, when only Bluetooth audio device A and Bluetooth audio device B exist in the environment, both devices simultaneously enter pairing mode. If the number of similar BLE broadcast frames in the environment is determined to be 2, the two devices enter TWS pairing mode and establish a high-fidelity TWS stereo connection system X. Bluetooth audio devices A and B continuously perform BLE scanning and determine the presence of similar BLE broadcast frames. Before Bluetooth audio device C enters pairing mode, Bluetooth audio devices A and B detect 2 similar BLE broadcast frames, and maintain their original TWS pairing mode. When Bluetooth audio device C enters pairing mode and sends a BLE broadcast frame, both Bluetooth audio devices A and B recognize the BLE broadcast frame sent by Bluetooth audio device C. If the number of similar BLE broadcast frames detected is 3, Bluetooth audio devices A and B automatically switch to LE Audio pairing mode and establish a network, achieving seamless mode switching without manual intervention and fully automatic intelligent networking from single-device to multi-device cluster.

[0088] Please refer to Figure 9. Bluetooth audio devices A, B, and C form a network system Y in LE Audio pairing mode. If the user causes Bluetooth audio device C to exit pairing mode, neither Bluetooth audio devices A nor B will detect the BLE broadcast frames emitted by Bluetooth audio device C. Therefore, the number of similar BLE broadcast frames detected is 2. Bluetooth audio devices A and B will automatically switch to TWS pairing mode, returning to TWS stereo mode. It is evident that if the user wants Bluetooth audio device C to exit and Bluetooth audio devices A and B to return to TWS stereo mode, they only need to trigger Bluetooth audio device C to exit the combined pairing mode. After detecting the loss of BLE broadcast frames from Bluetooth audio device C, Bluetooth audio devices A and B will automatically execute the mode switching logic, rebuild the TWS connection, and achieve seamless backtracking once again.

[0089] In multi-link networking scenarios, when users need to establish two independent network links for Bluetooth audio devices, they can set a specific network link identifier in a custom private protocol field to guide the devices to establish and maintain a specified network relationship. Furthermore, in some embodiments, the system automatically decides whether to enter TWS or LE Audio mode based on the number of similar BLE broadcast frames present in the network link. Alternatively, the number of participating devices can be set in a custom private protocol field to guide Bluetooth audio devices to participate only in TWS or LE Audio pairing modes. This satisfies diverse audio layout requirements.

[0090] This method significantly improves the ease of use and flexibility of multi-device audio systems. Through intelligent pattern recognition and switching mechanisms, it completely eliminates the cumbersome manual operation mode of traditional solutions. It achieves: 1. Extremely simple interaction. Users only need to press a physical button once (to control the Bluetooth audio device to enter pairing mode) to trigger the entire networking process. The system automatically completes all subsequent complex mode decisions and connection establishment, completely eliminating the burden on users to learn multiple button logics and manually switch modes.

[0091] 2. Intelligent Environmental Sensing. By continuously sending, receiving, and parsing specific BLE broadcast frames, Bluetooth audio devices enable the system to perceive the number, status, and capabilities of all networkable Bluetooth audio devices in the environment in real time, providing a precise data foundation for intelligent decision-making.

[0092] 3. Dynamic Mode Decision-Making and Switching. The core of the system possesses intelligent decision-making capabilities, automatically selecting the optimal operating mode based on the real-time number of Bluetooth audio devices. More importantly, it can dynamically respond to changes in network topology. When Bluetooth audio devices join or leave midway, it can automatically and seamlessly complete the mode switching without user intervention, ensuring service continuity.

[0093] 4. Flexible and fine-grained control. By designing fields in the BLE broadcast frame that include network pairing priority rules and custom private protocols, the system can not only automatically arbitrate master-slave roles, but also implement complex networking strategies (such as specifying device pairing relationships) through private identifiers, balancing the convenience of fully automatic operation with the customization needs of specific scenarios.

[0094] 5. Complete automated closed loop. From Bluetooth audio device discovery, mode decision-making, role arbitration to connection establishment and dynamic adjustment, the entire process forms a complete automated closed loop. This ensures that users receive a smooth experience of "one-click triggering and worry-free operation" throughout the entire lifecycle, from single-machine to multi-machine clusters, and then to dynamic changes in the cluster.

[0095] Please see Figure 10The present invention also provides a Bluetooth audio device, comprising a pairing state activation module 10, a BLE broadcast module 20, a BLE scanning module 30, a counting module 40, a pairing mode switching module 50, and a pairing networking module 60. The pairing state activation module 10 is used to activate the pairing state of the Bluetooth audio device. The BLE broadcast module 20 is used to transmit BLE broadcast frames. The BLE scanning module 30 is used to scan the BLE broadcast frames. The counting module 40 is used to determine the number of similar BLE broadcast frames in the environment based on the content of the scanned BLE broadcast frames. The pairing mode switching module 50 is used to determine the pairing mode entered by the Bluetooth audio device based on the number of similar BLE broadcast frames; when the number of similar BLE broadcast frames in the environment is 1, the Bluetooth audio device exits the pairing state; when the number of similar BLE broadcast frames in the environment is 2, the Bluetooth audio device automatically switches to TWS pairing mode; when the number of similar BLE broadcast frames in the environment is greater than or equal to 3, the Bluetooth audio device automatically switches to LE Audio pairing mode. The pairing and networking module 60 is used to perform pairing and networking according to the pairing mode determined by the pairing mode switching module 50.

[0096] As one embodiment, the BLE broadcast frame includes one or more of the following: broadcast name, MAC address, network pairing priority rule, and custom private protocol content; the custom private protocol content includes a network link identifier and / or a network device quantity identifier; the broadcast name is used to distinguish different types of Bluetooth audio devices; the MAC address is used to distinguish different Bluetooth audio devices; the network pairing priority rule is used to determine the master / slave status of the Bluetooth audio devices after networking; the custom private protocol content is used to identify the specific networking requirements of the Bluetooth audio devices; the network link identifier is used to distinguish different network links; and the network device quantity identifier is used to determine the upper limit of the number of Bluetooth audio devices participating in networking on the network link.

[0097] As one embodiment, the network pairing priority rule is as follows: the Bluetooth audio device in a call state is designated as the master, and the remaining Bluetooth audio devices are designated as slaves; if no Bluetooth audio device is in a call state, the Bluetooth audio device in a playback state is designated as the master, and the remaining Bluetooth audio devices are designated as slaves; if neither the Bluetooth audio device is in a call state nor the Bluetooth audio device is in a playback state, the Bluetooth audio device with the most connected devices is designated as the master, and the remaining Bluetooth audio devices are designated as slaves; when multiple Bluetooth audio devices have the same priority, the master is determined by the size of the MAC address, and the remaining Bluetooth audio devices are designated as slaves.

[0098] As one embodiment, the calculation module 40 specifically includes a judgment module, used to determine whether the broadcast names of the scanned BLE broadcast frames are consistent; if they are consistent, the BLE broadcast frame is determined to be a BLE broadcast frame of the same type; otherwise, the BLE broadcast frame is determined not to be a BLE broadcast frame of the same type.

[0099] In one embodiment, the calculation module 40 specifically includes a first judgment module and a second judgment module. The first judgment module is used to determine whether the broadcast names in the scanned BLE broadcast frames are consistent; the second judgment module is used to determine whether the Bluetooth audio devices with consistent broadcast names belong to the same network link. If the first judgment module determines that the broadcast names in the scanned BLE broadcast frames are consistent, then the second judgment module is activated to make a judgment; otherwise, it is determined that the BLE broadcast frame is not a BLE broadcast frame of the same type. If the second judgment module determines that the Bluetooth audio devices with consistent broadcast names belong to the same network link, then it is determined that the BLE broadcast frame is a BLE broadcast frame of the same type; otherwise, it is determined that the BLE broadcast frame is not a BLE broadcast frame of the same type.

[0100] As one embodiment, the calculation module 40 specifically includes a judgment module one, a judgment module two, and a judgment module three. The judgment module one is used to determine whether the broadcast names in the scanned BLE broadcast frames are consistent; the judgment module two is used to determine whether the Bluetooth audio devices with consistent broadcast names belong to the same network link; and the judgment module three is used to determine whether the number of BLE broadcast frames with consistent broadcast names and belonging to the same network link exceeds the number of network devices. If the judgment module one determines that the broadcast names in the scanned BLE broadcast frames are consistent, then the judgment module two is activated to make a judgment; otherwise, the BLE broadcast frame is determined not to be a BLE broadcast frame of the same type. If the judgment module two determines that the Bluetooth audio devices with consistent broadcast names belong to the same network link, then the judgment module three is activated to make a judgment; otherwise, the BLE broadcast frame is not a BLE broadcast frame of the same type. If the judgment module three determines that the number of BLE broadcast frames with consistent broadcast names and belonging to the same network link does not exceed the number of network devices, then the BLE broadcast frame is determined to be a BLE broadcast frame of the same type; otherwise, the BLE broadcast frame is determined not to be a BLE broadcast frame of the same type.

[0101] In another embodiment, the counting module 40 includes a first judgment module for judging whether the broadcast names of the scanned BLE broadcast frames are consistent; and a second judgment module for judging whether the BLE broadcast frames with consistent broadcast names are set with a network device quantity identifier that limits the upper limit of the number of network devices. If the first judgment module judges that the broadcast names of the scanned BLE broadcast frames are consistent, the second judgment module is activated to make a judgment; otherwise, the BLE broadcast frame is determined not to be a BLE broadcast frame of the same type. When the second judgment module judges that the BLE broadcast frames with consistent broadcast names are set with a network device quantity identifier that limits the upper limit of the number of network devices, the maximum value in the network device quantity identifier is used to determine the number of BLE broadcast frames of the same type; otherwise, the BLE broadcast frames with consistent broadcast names are determined to be BLE broadcast frames of the same type. In another embodiment, the counting module 40 includes a judgment module 1 for judging whether the broadcast names of the scanned BLE broadcast frames are consistent; a judgment module 2 for judging whether the Bluetooth audio devices with consistent broadcast names belong to the same network link; and a judgment module 3 for judging whether the BLE broadcast frames with consistent broadcast names and belonging to the same network link are set with a network device quantity identifier that limits the maximum number of network devices. If the judgment module 1 judges that the broadcast names in the scanned BLE broadcast frames are consistent, then the judgment module 2 is activated to make a judgment; otherwise, it is determined that the BLE broadcast frame is not of the same type of BLE. Broadcast frames; if the judgment module two determines that the Bluetooth audio devices with the same broadcast name belong to the same network link, then the judgment module three is activated to make a judgment; otherwise, the BLE broadcast frame is not the same type of BLE broadcast frame; if the judgment module three determines that the BLE broadcast frames with the same broadcast name and belonging to the same network link are set with a network device quantity identifier that limits the upper limit of the number of network devices, then the maximum value in the network device quantity identifier is used to determine the number of the same type of BLE broadcast frames; otherwise, the BLE broadcast frames with the same broadcast name and belonging to the same network link are determined as the same type of BLE broadcast frames; As one embodiment, in the second judgment module or the third judgment of the judgment module, when the BLE broadcast frame contains a network device quantity identifier that limits the maximum number of network devices, the Bluetooth audio devices corresponding to the same type of broadcast frames are determined according to the network device quantity identifier from largest to smallest and the MAC address from largest to smallest. The Bluetooth audio devices corresponding to the same type of broadcast frames are paired and networked through the pairing network module.

[0102] As one embodiment, when the Bluetooth audio device is in a pairable state, the BLE broadcast module 20, the BLE scanning module 30, the counting module 40, and the pairing mode switching module 50 work continuously; that is, the BLE broadcast module 20 continuously broadcasts, the BLE scanning module 30 continuously scans, the counting module 40 calculates and determines the number of similar BLE broadcast frames in the environment, and the pairing mode switching module 50 determines the pairing mode that the Bluetooth audio device enters based on the number of similar BLE broadcast frames.

[0103] As one embodiment, the broadcast frequency of the BLE broadcast module 20 and the scanning frequency of the BLE scanning module 30 are the same before and after networking; or the broadcast frequency and scanning frequency before networking are higher than the broadcast frequency and scanning frequency after networking.

[0104] As one example, a user can manually put one or more of the Bluetooth audio devices into or out of a pairing state.

[0105] It is understood that the description of the smart networking method for Bluetooth audio devices in the embodiment is applicable to this embodiment, therefore, it will not be repeated in this embodiment.

[0106] The present invention also provides a storage medium storing a computer program, which, when executed by a processor, enables the intelligent networking method for Bluetooth audio devices as described above.

[0107] It should be noted that the computer-readable storage medium described in the embodiments of this disclosure is not limited to the embodiments given above. For example, it can also be an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In the embodiments of this disclosure, the computer-readable storage medium can be any tangible medium that contains or stores a program, which can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0108] It will be understood by those skilled in the art that the above-described preferred solutions can be freely combined and superimposed without conflict. The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings; for example, two consecutively indicated blocks may actually be executed substantially in parallel, or sometimes in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions. The numbering of each step in this document is for ease of explanation and reference only and is not intended to limit the order of execution. The specific execution order is determined by the technology itself, and those skilled in the art can determine various permissible and reasonable orders based on the technology itself.

[0109] It should be noted that the use of step numbers (letters or numbers) to refer to certain specific method steps in this invention is merely for the purpose of convenience and brevity in description, and is by no means intended to restrict the order of these method steps. Those skilled in the art will understand that the order of the relevant method steps should be determined by the technology itself and should not be unduly restricted by the existence of step numbers. Those skilled in the art can determine various permissible and reasonable orderings of steps based on the technology itself.

[0110] Those skilled in the art will understand that, without conflict, the above-mentioned preferred solutions can be freely combined and superimposed.

[0111] It should be understood that the above embodiments are merely exemplary and not restrictive. Various obvious or equivalent modifications or substitutions that can be made by those skilled in the art regarding the above details without departing from the basic principles of the present invention will be included within the scope of the claims of the present invention.

Claims

1. A method for intelligent networking of Bluetooth audio devices, characterized in that, The method includes: Step S100: One or more Bluetooth audio devices enter a pairing state; Step S200: Each Bluetooth audio device initiates BLE broadcasting and sends out BLE broadcast frames, and initiates BLE scanning to determine the number of similar BLE broadcast frames in the environment based on the content of the scanned BLE broadcast frames. Step S300: Determine the pairing mode entered by the Bluetooth audio device based on the number of similar BLE broadcast frames; when the number of similar BLE broadcast frames in the environment is 1, the Bluetooth audio device exits the pairing state; when the number of similar BLE broadcast frames in the environment is 2, the Bluetooth audio device automatically switches to TWS pairing mode or maintains the original TWS pairing mode; when the number of similar BLE broadcast frames in the environment is greater than or equal to 3, the Bluetooth audio device automatically switches to LE Audio pairing mode or maintains the original LE Audio pairing mode. Step S400: The Bluetooth audio device pairs and forms a network according to the pairing mode determined in step S300.

2. The intelligent networking method for Bluetooth audio devices according to claim 1, characterized in that, The BLE broadcast frame includes one or more of the following: broadcast name, MAC address, network pairing priority rules, and custom private protocol content; The custom private protocol content includes network link identifier and / or network device quantity identifier; The broadcast name is used to distinguish different types of Bluetooth audio devices; The MAC address is used to distinguish different Bluetooth audio devices; The network pairing priority rule is used to determine the master and slave status of the Bluetooth audio devices after they are networked. The custom private protocol content is used to identify the specific networking requirements of the Bluetooth audio device; The network link identifier is used to distinguish different network links; The network device quantity identifier is used to determine the upper limit of the number of Bluetooth audio devices participating in the network in the network link.

3. The intelligent networking method for Bluetooth audio devices according to claim 2, characterized in that, The network pairing priority rule is as follows: The Bluetooth audio device in a call state is used as the master, and the other Bluetooth audio devices are used as slaves; If none of the Bluetooth audio devices are in a call state, the Bluetooth audio device in the playback state is used as the master, and the other Bluetooth audio devices are used as slaves; If neither of the Bluetooth audio devices is in a call state nor in a playback state, the Bluetooth audio device with the most connected Bluetooth audio devices shall be designated as the master device, and the remaining Bluetooth audio devices shall be designated as slave devices. When multiple Bluetooth audio devices have the same priority, the master is determined by the size of the MAC address, and the remaining Bluetooth audio devices are slaves.

4. The intelligent networking method for Bluetooth audio devices according to claim 2, characterized in that, Determining the number of similar BLE broadcast frames in the environment based on the scanned BLE broadcast frame content includes: Step S210a: Determine whether the broadcast names of the scanned BLE broadcast frames are consistent; if they are consistent, proceed to step S220a, otherwise proceed to step S230a. Step S220a: The BLE broadcast frame is the same type of BLE broadcast frame; Step S230a: The BLE broadcast frame is not a BLE broadcast frame of the same type; Alternatively, determining the number of similar BLE broadcast frames in the environment based on the scanned BLE broadcast frame content includes: Step S210b: Determine whether the broadcast names in the scanned BLE broadcast frames are consistent; if they are consistent, proceed to step S220b, otherwise proceed to step S240b. Step S220b: Determine whether the Bluetooth audio devices with the same broadcast name belong to the same network link. If yes, proceed to step S230b; otherwise, proceed to step S240b. Step S230b: The BLE broadcast frame is the same type of BLE broadcast frame; Step S240b: The BLE broadcast frame is not the same type of BLE broadcast frame; Alternatively, determining the number of similar BLE broadcast frames in the environment based on the scanned BLE broadcast frame content includes: Step S210c: Determine whether the broadcast names in the scanned BLE broadcast frames are consistent; if they are consistent, proceed to step S220c; otherwise, proceed to step S250c. Step S220c: Determine whether the Bluetooth audio devices with the same broadcast name belong to the same network link. If yes, proceed to step S230c; otherwise, proceed to step S250c. Step S230c: Determine whether the number of BLE broadcast frames with the same broadcast name and belonging to the same network link exceeds the number of network devices; if it does not exceed, proceed to step S240c, otherwise proceed to step S250c. Step S240c: The BLE broadcast frame is the same type of BLE broadcast frame; Step S250c: The BLE broadcast frame is not the same type of BLE broadcast frame.

5. The intelligent networking method for Bluetooth audio devices according to claim 2, characterized in that, Determining the number of similar BLE broadcast frames in the environment based on the scanned BLE broadcast frame content includes: Step S210d: Determine whether the broadcast names of the scanned BLE broadcast frames are consistent; if they are consistent, proceed to step S220d; otherwise, proceed to step S250d. Step S220d: Determine whether the BLE broadcast frame with the same broadcast name has a network device quantity identifier that limits the maximum number of network devices. If yes, proceed to step S230d; otherwise, proceed to step S240d. Step S230d: Determine the number of BLE broadcast frames of the same type based on the maximum value in the network device quantity identifier; Step S240d: Identify the BLE broadcast frames with the same broadcast name as the same type of BLE broadcast frames; Step S250d: The BLE broadcast frame is not the same type of BLE broadcast frame; Alternatively, determining the number of similar BLE broadcast frames in the environment based on the scanned BLE broadcast frame content includes: Step S210e: Determine whether the broadcast names in the scanned BLE broadcast frames are consistent; if they are consistent, proceed to step S220e; otherwise, proceed to step S260e. Step S220e: Determine whether the Bluetooth audio devices with the same broadcast name belong to the same network link. If yes, proceed to step S230e; otherwise, proceed to step S260e. Step S230e: Determine whether the BLE broadcast frames with the same broadcast name and belonging to the same network link have a network device number identifier that limits the upper limit of the number of network devices. If yes, proceed to step S240e; otherwise, proceed to step S250e. Step S240e: Determine the number of BLE broadcast frames of the same type based on the maximum value in the network device quantity identifier; Step S250e: Identify BLE broadcast frames with the same broadcast name and belonging to the same network link as the same type of BLE broadcast frames; Step S260e: The BLE broadcast frame is not the same type of BLE broadcast frame.

6. The intelligent networking method for Bluetooth audio devices according to claim 5, characterized in that, In step S220d or step S230e, when the BLE broadcast frame contains an identifier indicating the maximum number of network devices, The Bluetooth audio devices corresponding to the same type of broadcast frames are determined according to the number of network devices in descending order and the MAC address in descending order. In step S400, the Bluetooth audio devices corresponding to the same type of broadcast frames are paired and networked.

7. The intelligent networking method for Bluetooth audio devices according to claim 1, characterized in that, When the Bluetooth audio device is in a pairable state, steps S200 and S300 are continuously executed. The Bluetooth audio device executes step S200 at the same frequency before and after networking; or the frequency of executing step S200 before networking is higher than the frequency of executing step S200 after networking.

8. The intelligent networking method for Bluetooth audio devices according to claim 1, characterized in that, Users can manually put or take off one or more Bluetooth audio devices into a pairing state.

9. A Bluetooth audio device, characterized in that, The Bluetooth audio device includes: A pairing state activation module is used to activate the pairing state of the Bluetooth audio device. The BLE broadcast module is used to send BLE broadcast frames. The BLE scanning module is used to scan the BLE broadcast frames. The counting module is used to determine the number of similar BLE broadcast frames in the environment based on the scanned content of the BLE broadcast frames; The pairing mode switching module is used to determine the pairing mode that the Bluetooth audio device enters based on the number of similar BLE broadcast frames. When the number of similar BLE broadcast frames in the environment is 1, the Bluetooth audio device exits the pairing state. When the number of similar BLE broadcast frames in the environment is 2, the Bluetooth audio device automatically switches to TWS pairing mode or maintains the original TWS pairing mode. When the number of similar BLE broadcast frames in the environment is greater than or equal to 3, the Bluetooth audio device automatically switches to LE Audio pairing mode or maintains the original LE Audio pairing mode. The pairing and networking module is used to perform pairing and networking according to the pairing mode determined by the pairing mode switching module.

10. The Bluetooth audio device according to claim 9, characterized in that, The BLE broadcast frame includes one or more of the following: broadcast name, MAC address, network pairing priority rules, and custom private protocol content; The custom private protocol content includes network link identifier and / or network device quantity identifier; The broadcast name is used to distinguish different types of Bluetooth audio devices; The MAC address is used to distinguish different Bluetooth audio devices; The network pairing priority rule is used to determine the master and slave status of the Bluetooth audio devices after they are networked. The custom private protocol content is used to identify the specific networking requirements of the Bluetooth audio device; The network link identifier is used to distinguish different network links; The network device quantity identifier is used to determine the upper limit of the number of Bluetooth audio devices participating in the network in the network link.

11. The Bluetooth audio device according to claim 10, characterized in that, The network pairing priority rule is as follows: The Bluetooth audio device in a call state is used as the master, and the other Bluetooth audio devices are used as slaves; If none of the Bluetooth audio devices are in a call state, the Bluetooth audio device in the playback state is used as the master, and the other Bluetooth audio devices are used as slaves; If neither of the Bluetooth audio devices is in a call state nor in a playback state, the Bluetooth audio device with the most connected devices shall be designated as the master, and the remaining Bluetooth audio devices shall be designated as slaves. When multiple Bluetooth audio devices have the same priority, the master is determined by the size of the MAC address, and the remaining Bluetooth audio devices are slaves.

12. The Bluetooth audio device according to claim 9, characterized in that, The calculation module specifically includes: The judgment module is used to determine whether the broadcast names of the scanned BLE broadcast frames are consistent; if they are consistent, the BLE broadcast frame is determined to be a BLE broadcast frame of the same type; otherwise, the BLE broadcast frame is determined not to be a BLE broadcast frame of the same type. Or the computing module specifically includes: The first judgment module is used to determine whether the broadcast names in the scanned BLE broadcast frames are consistent; The second judgment module is used to determine whether the Bluetooth audio devices with the same broadcast name belong to the same network link; If the first judgment module determines that the broadcast name in the scanned BLE broadcast frame is consistent, then the second judgment module is activated to make a judgment; otherwise, it is determined that the BLE broadcast frame is not the same type of BLE broadcast frame. If the second determination module determines that the Bluetooth audio devices with the same broadcast name belong to the same network link, then the BLE broadcast frame is determined to be a BLE broadcast frame of the same type; otherwise, the BLE broadcast frame is determined not to be a BLE broadcast frame of the same type. Or the computing module specifically includes: Module 1 is used to determine whether the broadcast names in the scanned BLE broadcast frames are consistent; Module 2 is used to determine whether the Bluetooth audio devices with the same broadcast name belong to the same network link; Module 3 is used to determine whether the number of BLE broadcast frames with the same broadcast name and belonging to the same network link exceeds the number of network devices. If the judgment module one determines that the broadcast name in the scanned BLE broadcast frame is consistent, then the judgment module two is activated to make a judgment; otherwise, it is determined that the BLE broadcast frame is not the same type of BLE broadcast frame. If the second judgment module determines that the Bluetooth audio devices with the same broadcast name belong to the same network link, then the third judgment module is activated to make a judgment; otherwise, the BLE broadcast frame is not a BLE broadcast frame of the same type. If the determination module three determines that the number of BLE broadcast frames with the same broadcast name and belonging to the same network link does not exceed the number of network devices, then the BLE broadcast frame is determined to be a BLE broadcast frame of the same type; otherwise, the BLE broadcast frame is determined not to be a BLE broadcast frame of the same type.

13. The Bluetooth audio device according to claim 9, characterized in that, The counting module specifically includes: The first judgment module is used to determine whether the broadcast names of the scanned BLE broadcast frames are consistent; The second judgment module determines whether the BLE broadcast frame with the same broadcast name is set with a network device quantity identifier that limits the upper limit of the number of network devices; If the first judgment module determines that the broadcast name in the scanned BLE broadcast frame is consistent, then the second judgment module is started to make a judgment; otherwise, it is determined that the BLE broadcast frame is not the same type of BLE broadcast frame. The second judgment module determines that when the BLE broadcast frame with the same broadcast name is set with a network device quantity identifier that limits the upper limit of the number of network devices, the number of the same type of BLE broadcast frame is determined by the maximum value in the network device quantity identifier; otherwise, the BLE broadcast frame with the same broadcast name is determined as the same type of BLE broadcast frame. Or the computing module specifically includes: Module 1 is used to determine whether the broadcast names of the scanned BLE broadcast frames are consistent; Module 2 is used to determine whether the Bluetooth audio devices with the same broadcast name belong to the same network link; Module 3 is used to determine whether the BLE broadcast frames with the same broadcast name and belonging to the same network link are set with a network device quantity identifier that limits the upper limit of the number of network devices; If the judgment module one determines that the broadcast name in the scanned BLE broadcast frame is consistent, then the judgment module two is activated to make a judgment; otherwise, it is determined that the BLE broadcast frame is not the same type of BLE broadcast frame. If the second judgment module determines that the Bluetooth audio devices with the same broadcast name belong to the same network link, then the third judgment module is activated to make a judgment; otherwise, the BLE broadcast frame is not a BLE broadcast frame of the same type. If the judgment module three determines that the BLE broadcast frames with the same broadcast name and belonging to the same network link have a network device number identifier that limits the upper limit of the number of network devices, the maximum value in the network device number identifier is used to determine the number of BLE broadcast frames of the same type; otherwise, the BLE broadcast frames with the same broadcast name and belonging to the same network link are determined as the BLE broadcast frames of the same type.

14. The Bluetooth audio device according to claim 13, characterized in that, In the second judgment module or the third judgment module, when the BLE broadcast frame contains an identifier indicating the maximum number of network devices that limits the number of network devices, The Bluetooth audio devices corresponding to the same type of broadcast frames are determined according to the number of network devices in descending order and the MAC address in descending order. The Bluetooth audio devices corresponding to the same type of broadcast frames are paired and networked through the pairing and networking module.

15. The Bluetooth audio device according to claim 9, characterized in that, When the Bluetooth audio device is in a pairable state, the BLE broadcast module, the BLE scanning module, and the counting module continue to operate. Before and after networking, the broadcast frequency of the BLE broadcast module and the scanning frequency of the BLE scanning module of the Bluetooth audio device are the same; or the broadcast frequency and scanning frequency before networking are higher than the broadcast frequency and scanning frequency after networking.

16. The Bluetooth audio device according to claim 9, characterized in that, Users can manually put the Bluetooth audio device into and out of pairing mode.

17. A storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it can implement the intelligent networking method for Bluetooth audio devices as described in any one of claims 1-8.