Audio device control method, device, equipment, medium and product

By scanning the broadcast data packets of external Bluetooth low-power devices on the Bluetooth audio source device, judging the receiving device and switching the state, the problem of high power consumption of traditional Bluetooth devices is solved and low-power device state management is achieved.

CN118785126BActive Publication Date: 2025-10-03HUIZHOU DESAY SV AUTOMOTIVE
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411032570.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2025-10-03
Estimated Expiration
2044-07-30

AI Technical Summary

Technical Problem

Traditional Bluetooth audio devices require manual pairing during the connection process and consume high power, and one-way transmission increases device power consumption.

Method used

By scanning the advertising data packets of external Bluetooth low-power devices on the low-power main advertising physical channel, it is determined whether there is a receiving device, and the sleep or advertising state is switched according to the judgment result. The predefined BIG control PDU sub-event is used to notify the external device to broadcast its own data packet.

Benefits of technology

The power consumption of Bluetooth audio source devices is reduced, device state switching under a one-way no-response mechanism is realized, and the energy efficiency of the device is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118785126B_ABST
    Figure CN118785126B_ABST
Patent Text Reader

Abstract

The present invention discloses an audio device control method, apparatus, device, medium and product. The method is applied to a Bluetooth audio source device, comprising: when the sleep duration meets the wake-up condition, scanning the broadcast data packet of an external Bluetooth low-power device on the low-power main broadcast physical channel; determining whether there is an external Bluetooth low-power device that meets the receiving device conditions within the Bluetooth coverage range based on the broadcast data packet, and obtaining a judgment result; determining the device status based on the judgment result and a predefined BIG control PDU sub-event, and performing self-control based on the device status; the sub-event is used to notify the external Bluetooth audio receiving device to broadcast its own data packet; the device status includes the sleep state and the broadcast state. Using the predefined sub-events and broadcast data packets, it is determined whether there is a device that meets the receiving device conditions within the Bluetooth coverage range, thereby determining the device status and performing control, thereby reducing the power consumption of the Bluetooth audio source device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of wireless communication technology, and in particular to an audio device control method, apparatus, equipment, medium and product. Background Art

[0002] In traditional Bluetooth methods, devices need to be manually paired during the connection process. This step may be complicated and time-consuming for users. In addition, when playing Bluetooth audio streaming, an audio source device can only be connected to one audio sink device and played through one audio device.

[0003] Low Energy Audio Broadcast Isochronous Stream (LEAUDIO BIS) is a new concept in Bluetooth technology. Unlike traditional Bluetooth, where Bluetooth audio streams are streamed from one device to another, BIS allows any device within the radio frequency range of the audio broadcast source to obtain the audio data of the broadcast source without establishing a Bluetooth connection.

[0004] However, the transmission between the audio broadcast source and the audio receiver is one-way and there is no response mechanism. Therefore, the Bluetooth broadcast source will continue to broadcast audio without knowing whether there is a Bluetooth audio receiver nearby that is receiving audio. Audio broadcasting requires the Bluetooth chip to transmit at high power, which will consume a large amount of power of the Bluetooth device serving as the broadcast source. Summary of the Invention

[0005] The present invention provides an audio device control method, apparatus, device, medium and product to implement switching between sleep and broadcast states of a Bluetooth audio source device under a LEAUDIO BIS one-way no-response mechanism.

[0006] According to a first aspect of the present invention, there is provided an audio device control method, which is applied to a Bluetooth audio source device, comprising:

[0007] When the sleep duration meets the wake-up condition, the system scans the advertising data packets of external Bluetooth low energy devices on the low power main advertising physical channel;

[0008] Determine, based on the broadcast data packet, whether there is an external Bluetooth low energy device that meets the receiving device conditions within the Bluetooth coverage range, and obtain a judgment result;

[0009] According to the judgment result and the predefined broadcast synchronization group BIG control protocol data unit PDU sub-event, the device status is determined, and self-control is performed based on the device status; the predefined BIG control PDU sub-event is used to notify the external Bluetooth audio receiving device to broadcast its own data packet; the device status includes sleep state and broadcast state.

[0010] According to a second aspect of the present invention, there is provided an audio device control apparatus, which is applied to a Bluetooth audio source device, comprising:

[0011] The data packet scanning module is used to scan the advertising data packets of external Bluetooth low energy devices on the low power main advertising physical channel when the sleep time meets the wake-up condition;

[0012] A result determination module is used to determine whether there is an external Bluetooth low energy device that meets the receiving device conditions within the Bluetooth coverage range according to the broadcast data packet, and obtain a judgment result;

[0013] The status control module is used to determine the device status according to the judgment result and the predefined broadcast synchronization group BIG control protocol data unit PDU sub-event, and control itself based on the device status; the predefined BIG control PDU sub-event is used to notify the external Bluetooth audio receiving device to broadcast its own data packet; the device status includes sleep state and broadcast state.

[0014] According to a third aspect of the present invention, a Bluetooth audio source device is provided, the Bluetooth audio source device comprising:

[0015] at least one processor; and

[0016] a memory communicatively connected to the at least one processor; wherein,

[0017] The memory stores a computer program executable by the at least one processor. The computer program is executed by the at least one processor to enable the at least one processor to execute the audio device control method according to any embodiment of the present invention.

[0018] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the audio device control method according to any embodiment of the present invention when executed.

[0019] According to another aspect of the present invention, an embodiment of the present invention further provides a computer program product. The computer program product includes a computer program. When the computer program is executed by a processor, the audio device control method of any embodiment of the present invention is implemented.

[0020] The technical solution of the embodiment of the present invention is applied to a Bluetooth audio source device. When the sleep duration meets the wake-up condition, the device scans the broadcast data packet of the external Bluetooth low-power device on the low-power main broadcast physical channel; based on the broadcast data packet, it is determined whether there is an external Bluetooth low-power device that meets the receiving device conditions within the Bluetooth coverage range, and a judgment result is obtained; based on the judgment result and the predefined broadcast synchronization group BIG control protocol data unit PDU sub-event, the device status is determined, and the device itself is controlled based on the device status; the predefined BIG control PDU sub-event is used to notify the external Bluetooth audio receiving device to broadcast its own data packet; the device status includes the sleep state and the broadcast state. The predefined BIG control PDU sub-event is used to trigger the external Bluetooth audio receiving device to broadcast its own data packet, and the broadcast data packet is used to determine whether there is an external Bluetooth low-power device that meets the conditions within the Bluetooth coverage range, thereby determining the device status and switching the state. This solves the problem of determining whether there is a receiving device under the one-way no-response mechanism, and further realizes the switching between the sleep state and the broadcast state of the Bluetooth audio source device. The power consumption of the Bluetooth audio source device is reduced.

[0021] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0023] Figure 1 is a flowchart of an audio device control method provided according to embodiment 1 of the present invention;

[0024] Figure 2 is a flowchart of an audio device control method provided according to embodiment 2 of the present invention;

[0025] Figure 3 This is an example flow chart of a Bluetooth audio source device in an audio device control method provided according to Embodiment 2 of the present invention;

[0026] Figure 4 This is an example flow chart of an external Bluetooth low energy device in an audio device control method provided in accordance with the second embodiment of the present invention;

[0027] Figure 5 This is a structural diagram of an audio device control device provided according to a third embodiment of the present invention;

[0028] Figure 6 It is a schematic structural diagram of a Bluetooth audio source device implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0029] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.

[0030] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0031] Example 1

[0032] Figure 1 A flowchart of an audio device control method is provided for the first embodiment of the present invention. This embodiment is applicable to controlling the sleep and broadcast states of a Bluetooth audio source device and is applied to a Bluetooth audio source device. The method can be executed by an audio device control device, which can be implemented in the form of hardware and / or software and can be configured in a Bluetooth audio source device. Figure 1 As shown, the method includes:

[0033] S110: When the sleep duration meets the wake-up condition, scan the advertising data packets of the external Bluetooth low energy device on the low power main advertising physical channel.

[0034] In this embodiment, the sleep duration can be understood as the time to enter the sleep state. The wake-up condition can be understood as the set maximum sleep duration, for example, it can be 10s. The low-power primary advertising physical channel, namely the LE primary advertisingphysical channel, can be understood as the wireless frequency band used to send broadcast frames in the BLE system, which are channel 37, channel 38 and channel 39 respectively. The external Bluetooth low-power device can be understood as a Bluetooth low energy (Bluetooth Low Energy Device, BLE) BLE device independent of the Bluetooth audio source device. The broadcast data packet can be understood as a data packet used to represent the identity of the BLE device, which may include an ID, etc.

[0035] It can be known that when an external Bluetooth low energy device initially receives audio data, it will first broadcast the external Bluetooth low energy device's advertising data packet on the low-power main advertising physical channel to indicate its own identity to the Bluetooth audio source device and that it has entered its Bluetooth coverage range through the advertising data packet.

[0036] Specifically, the processor of the Bluetooth audio source device can set the maximum sleep time through a timer or other means before sleeping. When the sleep time of the Bluetooth audio source device in the sleep state reaches the set maximum sleep time, the wake-up condition is met, the Bluetooth audio source device wakes up from the sleep state, and the processor can scan the broadcast data packets of the external Bluetooth low-power device on the low-power main broadcast physical channel.

[0037] S120: Determine, based on the broadcast data packet, whether there is an external Bluetooth low energy device that meets the receiving device conditions within the Bluetooth coverage range, and obtain a determination result.

[0038] In this embodiment, the Bluetooth coverage range can be understood as the maximum coverage range of the Bluetooth signal of the Bluetooth audio source device. The receiving device condition can be understood as the condition for determining whether a device can receive audio data. The judgment result can be understood as the result used to indicate whether a device can receive audio data exists.

[0039] Specifically, the processor can parse the received broadcast data packet and compare it with the receiving device conditions based on the data representing the identity of the external Bluetooth low-power device in the broadcast data packet. For example, the receiving device conditions can be determined by pre-setting an identity identifier that meets the receiving conditions to determine whether the external Bluetooth low-power device is an external Bluetooth low-power device that meets the receiving device conditions. When the receiving device conditions are met, the existence of an external Bluetooth low-power device that meets the receiving device conditions will be used as a judgment result. If not, the scanning will continue until the maximum scanning time is reached and no external Bluetooth low-power device that meets the receiving device conditions is scanned. The absence of an external Bluetooth low-power device that meets the receiving device conditions will be used as a judgment condition.

[0040] S130. Determine the device status according to the judgment result and the predefined broadcast synchronization group BIG control protocol data unit PDU sub-event, and perform self-control based on the device status.

[0041] In this embodiment, the predefined BIG control PDU sub-event can be understood as a sub-event that triggers an external Bluetooth low energy device to perform a corresponding operation. By setting the BIG control PDU sub-event, it is possible to manage tasks and processing flows more precisely. The device status can be understood as a state used to determine whether the device is in sleep mode or transmitting data.

[0042] For example, the method of adding the predefined BIG control PDU sub-event refers to the following method in the Bluetooth standard protocol document: the operation code OPCode (Operation code) of the BIG control Control PDU can be set to 0xFF, and the control data CtrData is customized data, such as 0x123ABC.

[0043] The predefined BIG control PDU sub-event is used to notify the external Bluetooth audio receiving device to broadcast its own data packet. The device states include sleep state and broadcast state. The device's own data packet can be understood as a data packet used to identify itself, similar to the broadcast data packet described above. The sleep state instructs the device to sleep, during which no broadcast or scanning actions are performed. The broadcast state instructs the device to send audio data.

[0044] It can be known that when the device state is broadcast, the Bluetooth audio source device will transmit audio data to the corresponding channel. When the external Bluetooth low-power device receives audio data on the corresponding channel, it will stop sending its own data packets to the low-power main broadcast physical channel and use all bandwidth resources to receive audio data on the corresponding channel to ensure the quality of audio playback. After a certain period of time, as the external Bluetooth audio receiving device moves, the Bluetooth audio source device cannot determine whether the external Bluetooth audio receiving device is still within the Bluetooth coverage range. A predefined BIG control PDU sub-event can be set to trigger the external Bluetooth audio receiving device's own data packet broadcast operation.

[0045] Specifically, when the judgment result is that there is no external Bluetooth low-power device that meets the conditions of the receiving device, the processor can set the device state to the sleep state and control itself to enter sleep until the sleep duration reaches the wake-up condition, and then perform the next round of scanning. When the judgment result is that there is an external Bluetooth low-power device that meets the conditions of the receiving device, the processor can stop scanning and broadcast audio data to the channel so that the external Bluetooth low-power device receives the audio data and plays it. When the external Bluetooth low-power device receives the audio data, it will stop the broadcast operation of its own data packet and use all bandwidth resources to receive audio data. When the processor broadcasts audio data for a set time, it adds a predefined BIG control PDU sub-event to the low-power main broadcast physical channel so that the external Bluetooth audio receiving device continues to broadcast its own data packet on the low-power main broadcast physical channel. The processor can again judge its corresponding device state through the broadcast data packet of the external Bluetooth audio receiving device.

[0046] The technical solution of the embodiment of the present invention is applied to a Bluetooth audio source device. When the sleep duration meets the wake-up condition, the device scans the broadcast data packet of the external Bluetooth low-power device on the low-power main broadcast physical channel; based on the broadcast data packet, it is determined whether there is an external Bluetooth low-power device that meets the receiving device conditions within the Bluetooth coverage range, and a judgment result is obtained; based on the judgment result and the predefined broadcast synchronization group BIG control protocol data unit PDU sub-event, the device status is determined, and the device itself is controlled based on the device status; the predefined BIG control PDU sub-event is used to notify the external Bluetooth audio receiving device to broadcast its own data packet; the device status includes the sleep state and the broadcast state. The predefined BIG control PDU sub-event is used to trigger the external Bluetooth audio receiving device to broadcast its own data packet, and the broadcast data packet is used to determine whether there is an external Bluetooth low-power device that meets the conditions within the Bluetooth coverage range, thereby determining the device status and switching the state. This solves the problem of determining whether there is a receiving device under the one-way no-response mechanism, and further realizes the switching between the sleep state and the broadcast state of the Bluetooth audio source device. The power consumption of the Bluetooth audio source device is reduced.

[0047] As a first optional embodiment of this embodiment, based on the above embodiment, it also includes:

[0048] When scanning the advertising data packet of the external Bluetooth low energy device on the low power main advertising physical channel, the preset universal extended advertising data packet is broadcast outward on the low power synchronization physical channel according to the first set time-division multiplexing mode, and the preset universal extended advertising data packet is used for signal synchronization.

[0049] In this embodiment, the first time-division multiplexing mode can be understood as a method by which the Bluetooth source audio device divides time into different time periods to transmit multiple signals on the low-power primary advertising physical channel and the low-power isochronous physical channel. The preset general extended advertising data packet, ADV_EXT_IND, can be understood as a data packet used to store information required for signal synchronization. The low-power isochronous physical channel, LE isochronous physical channel, can be understood as a channel requiring timed and continuous data transmission, and includes channels 0-36.

[0050] Specifically, while scanning the broadcast data packets of the external Bluetooth low-power device on the low-power main broadcast physical channel, the preset universal extended broadcast data packets can be broadcast outward on the low-power synchronization physical channel in accordance with the first set time-sharing multiplexing method, so that when the external Bluetooth low-power device receives the preset universal extended broadcast data packet, it can synchronize itself with the Bluetooth audio source device through the data recorded in the preset universal extended broadcast data packet.

[0051] In a first optional embodiment of the first embodiment, scanning is performed simultaneously on the low-power primary broadcast physical channel and broadcasting is performed on the low-power synchronization physical channel according to the first set time-division multiplexing mode. This achieves the simultaneous transmission of signal synchronization data and scanning of broadcast data packets, thereby reducing data transmission delay.

[0052] Example 2

[0053] Figure 2 This is a flowchart of an audio device control method provided by the second embodiment of the present invention. This embodiment is a further refinement of the above embodiments. Figure 2 As shown, the method includes:

[0054] S201: When the sleep duration meets the wake-up condition, scan the advertising data packets of the external Bluetooth low energy device on the low power main advertising physical channel.

[0055] S202: Parse the broadcast data packet to determine the company identifier and manufacturer-specific data in the broadcast data packet.

[0056] In this embodiment, the company identifier, namely Company ID, can be understood as a unique identification code used to identify the company. Manufacturer specific data, namely Manufacturer Specific Data, can be understood as a data structure customized by the device manufacturer and used to transmit specific information related to the device.

[0057] Specifically, when a broadcast data packet is scanned, the processor may parse the broadcast data packet to determine the company identifier and manufacturer-specific data contained in the broadcast data packet.

[0058] S203: Match the company identifier and manufacturer-specific data with the preset device information table.

[0059] In this embodiment, the preset device information table can be understood as information of pre-set devices that can receive audio data.

[0060] Specifically, the processor may search the company identifier and the manufacturer-specific data in the preset device information table to determine whether there is preset information matching the company identifier and the manufacturer-specific data in the preset device information table.

[0061] S204: If the match is successful, the existence of the receiving device is used as the judgment result.

[0062] Specifically, if the matching is successful, the external Bluetooth low energy device is confirmed to be a receiving device, and the processor uses the existence of the receiving device as the judgment result.

[0063] S205. Otherwise, continue scanning until the preset scanning time is reached. If there is no successfully matched external Bluetooth low energy device or no broadcast data packet is scanned, it is determined that there is no receiving device.

[0064] In this embodiment, the preset scanning duration can be understood as a scanning duration set for determining whether a receiving device exists.

[0065] Specifically, if the match is not successful, the processor can continue to scan the broadcast data packet on the low-power main broadcast physical channel for matching until the preset scanning time is reached. If there is still no successfully matched external Bluetooth low-power device within the Bluetooth coverage range or no broadcast data packet is scanned, the absence of a receiving device will be used as the judgment result.

[0066] S206: When the result of the judgment is that there is no receiving device, the dormant state is taken as the device state, and the device enters the dormant state, and the duration of this dormant state is counted.

[0067] Specifically, when the judgment result is that there is no receiving device, there is no need to broadcast the audio device. The processor can use the sleep state as the device state, control itself to enter the sleep state, and time the sleep time to determine whether the time corresponding to the wake-up condition is reached.

[0068] S207: When the result of the determination is that a receiving device exists, the broadcast state is used as the device state.

[0069] Specifically, when the result of the determination is that there is a receiving device, audio data may be sent to the external Bluetooth low energy device, and the processor uses the broadcast state as the device state.

[0070] S208. In the broadcast state, stop scanning on the low-power main broadcast physical channel, broadcast low-power audio data on the low-power synchronization physical channel, and time the duration of this broadcast.

[0071] In this embodiment, the current broadcast duration can be understood as the duration used to record the broadcasted audio data.

[0072] Specifically, in the broadcast state, the processor can stop scanning on the low-power main broadcast physical channel and use all bandwidth for audio data broadcast to ensure sound quality. The processor can broadcast low-power audio data on the low-power synchronous physical channel and time the broadcast duration when the broadcast starts.

[0073] S209. When the broadcast duration meets the preset sniffing condition, a predefined BIG control PDU sub-event is added to the low-power synchronous physical channel, so that the external Bluetooth low-power device broadcasts its own broadcast data packet when it scans the predefined BIG control PDU sub-event on the low-power synchronous physical channel.

[0074] In this embodiment, the preset sniffing condition can be understood as a pre-set time condition for rescanning broadcast data packets, for example, 30 minutes.

[0075] Specifically, when the duration of this broadcast meets the preset sniffing condition, that is, when the duration of this broadcast has reached the duration corresponding to the preset sniffing condition, the processor can add a predefined BIG control PDU sub-event on the low-power synchronous physical channel, so that the external Bluetooth low-power device can trigger the operation of broadcasting its own broadcast data packet when scanning the predefined BIG control PDU sub-event on the low-power synchronous physical channel.

[0076] Further, based on the above embodiment, the steps of broadcasting the own broadcast data packet when a predefined BIG control PDU sub-event is scanned on the low-power synchronous physical channel can be refined as follows:

[0077] When a predefined BIG control PDU sub-event is scanned on the low-power synchronous physical channel, its own broadcast data packet is broadcast on the low-power main broadcast physical channel according to the second set time-division multiplexing mode.

[0078] In this embodiment, the second time-division multiplexing mode can be understood as a mode in which the external Bluetooth low-power device divides time into different time periods to realize multiple signal transmissions on the low-power main broadcast physical channel and the low-power synchronization physical channel, which may be the same as or different from the first time-division multiplexing mode.

[0079] Specifically, when the external Bluetooth low-power device scans a BIG control PDU sub-event on the low-power synchronous physical channel, it parses the BIG control PDU sub-event to determine whether the data therein (such as the OPCode and CtrData mentioned above) is a predefined BIG control PDU sub-event (the values ​​corresponding to the data OPCode and CtrData can be stored in advance). If so, the BIG control PDU sub-event corresponds to a triggering broadcast data packet operation. While receiving low-power audio data, the external Bluetooth low-power device broadcasts its own broadcast data packet on the low-power main broadcast physical channel through the second set time-sharing multiplexing method.

[0080] The technical solution of an embodiment of the present invention scans for advertising packets from external Bluetooth low energy devices on a low-power primary advertising physical channel when the sleep duration meets the wake-up condition. The company identifier and manufacturer-specific data in the advertising packets are used to determine whether the external Bluetooth low energy device is a receiving device that meets the preset receiving device conditions. If a match is successful, the presence of a receiving device is determined as a result. Otherwise, the scan continues until the preset scan duration is reached. If no matching external Bluetooth low energy device exists or no advertising packets are scanned, the absence of a receiving device is determined as a result. This enables the determination of the presence of a receiving device based on the advertising packets, providing a basis for subsequent determination of the device status. If the judgment condition is that no receiving device exists, the device enters a dormant state and controls itself to enter a dormant state, reducing the power consumption of the Bluetooth audio source device. If the judgment condition is that a receiving device exists, the device enters a broadcasting state, stops scanning for advertising packets, and uses all bandwidth to broadcast low-power audio data via the low-power synchronous physical channel, ensuring the quality of subsequent audio transmission. When the broadcast duration meets the preset sniffing condition, that is, after a period of time, a predefined BIG control PDU sub-event is added to the low-power synchronous physical channel to trigger the external Bluetooth low-power device to broadcast its own data packet, and continue to judge the device status based on the captured broadcast data packet, thereby realizing the re-judgment of the device status during the broadcast process. When there is no receiving device, the broadcast is stopped, thereby reducing the power consumption of the Bluetooth audio source device during the broadcast process.

[0081] Furthermore, after adding a predefined BIG control PDU sub-event on the low-power synchronous physical channel, it also includes:

[0082] Return to the scanning step for advertising packets on the low power primary advertising physical channel.

[0083] Specifically, after the broadcast duration meets the preset sniffing conditions and the predefined BIG control PDU sub-event is added to the low-power synchronous physical channel, scanning is started on the low-power main broadcast physical channel, and scanning is performed through the set time-sharing multiplexing method, returning to step S201. While transmitting low-power audio data, it continues to determine whether there are any external Bluetooth low-power devices in the Bluetooth coverage range, and then determines the device status again, and so on.

[0084] For example, in order to facilitate understanding of the control method of the Bluetooth audio source device in the present invention, a specific example is used for demonstration. Figure 3 This is an example flow chart of a Bluetooth audio source device in an audio device control method provided in the second embodiment of the present invention, such as Figure 3 As shown, the steps may be:

[0085] S301, stopping broadcasting of low-power audio data on the low-power synchronous physical channel;

[0086] S302, entering a dormant state;

[0087] S303, wake up every 10 seconds;

[0088] S304, scanning the advertising data packets of the external Bluetooth low energy device on the low power primary advertising physical channel;

[0089] S305, broadcasting a preset general extended advertising data packet (ADV_EXT_IND) on the low-power synchronous physical channel;

[0090] S306, parsing the broadcast data packet, matching the company identifier and manufacturer-specific data in the broadcast data packet with the preset device information table, and determining a judgment result;

[0091] S307: If the result of the judgment is that there is a device that meets the receiving device conditions, the device state is the broadcast state, the scanning on the low-power main broadcast physical channel is stopped, and the low-power audio data is broadcast on the low-power synchronization physical channel, and the duration of this broadcast is timed;

[0092] S308. The preset sniffing condition is that when the broadcast duration reaches 30 minutes, a predefined BIG control PDU sub-event is added on the low-power synchronous physical channel, so that the external Bluetooth low energy device broadcasts its own broadcast data packet when it scans the predefined BIG control PDU sub-event on the low-power synchronous physical channel;

[0093] S309, scanning the advertising data packets of the external Bluetooth low energy device on the low power primary advertising physical channel;

[0094] S310, broadcasting low-power audio data on a low-power synchronous physical channel;

[0095] S311, parsing the broadcast data packet, matching the company identifier and manufacturer-specific data in the broadcast data packet with the preset device information table, and determining a judgment result;

[0096] S312: When the judgment result is that there is no device that meets the receiving device condition, return to step S301.

[0097] For example, in order to facilitate understanding of the response mode of the external Bluetooth low energy device in the present invention, a specific example is used for demonstration. Figure 4 This is an example flow chart of an external Bluetooth low energy device in an audio device control method provided in Embodiment 2 of the present invention, such as Figure 4 As shown, the steps may be:

[0098] S401, initial;

[0099] S402, broadcasting its own data packet on the low-power primary broadcast physical channel, including the company identifier and manufacturer-specific data;

[0100] S403, monitoring a preset general extended broadcast data packet (ADV_EXT_IND) on a low-power synchronous physical channel;

[0101] S404: Capture a preset universal extended broadcast data packet, perform signal synchronization, and stop broadcasting its own data packet when receiving low-power audio data on the low-power synchronization physical channel;

[0102] S405, when a predefined BIG control PDU sub-event is scanned on the low-power synchronous physical channel, broadcast its own data packet on the low-power primary broadcast physical channel;

[0103] S406, broadcasting low-power audio data on the low-power synchronous physical channel;

[0104] S407 : Stop broadcasting its own data packet and keep receiving low-power audio data on the low-power synchronous physical channel.

[0105] Example 3

[0106] Figure 5 This is a structural diagram of an audio device control device provided by the third embodiment of the present invention. Figure 5 As shown, the device includes:

[0107] The data packet scanning module 51 is used to scan the broadcast data packets of the external Bluetooth low energy device on the low power main broadcast physical channel when the sleep time meets the wake-up condition;

[0108] A result determination module 52 is configured to determine whether there is an external Bluetooth low energy device that meets the receiving device conditions within the Bluetooth coverage range based on the broadcast data packet, and obtain a determination result;

[0109] The status control module 53 is used to determine the device status according to the judgment result and the predefined broadcast synchronization group BIG control protocol data unit PDU sub-event, and to control itself based on the device status; the predefined BIG control PDU sub-event is used to notify the external Bluetooth audio receiving device to broadcast its own data packet; the device status includes sleep state and broadcast state.

[0110] The technical solution of the embodiment of the present invention is applied to a Bluetooth audio source device. When the sleep duration meets the wake-up condition, the device scans the broadcast data packet of the external Bluetooth low-power device on the low-power main broadcast physical channel; based on the broadcast data packet, it is determined whether there is an external Bluetooth low-power device that meets the receiving device conditions within the Bluetooth coverage range, and a judgment result is obtained; based on the judgment result and the predefined broadcast synchronization group BIG control protocol data unit PDU sub-event, the device status is determined, and the device itself is controlled based on the device status; the predefined BIG control PDU sub-event is used to notify the external Bluetooth audio receiving device to broadcast its own data packet; the device status includes the sleep state and the broadcast state. The predefined BIG control PDU sub-event is used to trigger the external Bluetooth audio receiving device to broadcast its own data packet, and the broadcast data packet is used to determine whether there is an external Bluetooth low-power device that meets the conditions within the Bluetooth coverage range, thereby determining the device status and switching the state. This solves the problem of determining whether there is a receiving device under the one-way no-response mechanism, and further realizes the switching between the sleep state and the broadcast state of the Bluetooth audio source device. The power consumption of the Bluetooth audio source device is reduced.

[0111] Furthermore, the result determination module 52 is specifically configured to:

[0112] parsing the broadcast data packet to determine a company identifier and manufacturer-specific data in the broadcast data packet;

[0113] matching the company identifier and the manufacturer-specific data with a preset device information table;

[0114] If the match is successful, the existence of the receiving device is used as the judgment result;

[0115] Otherwise, the scanning continues until the preset scanning time is reached. When there is no successfully matched external Bluetooth low energy device or the broadcast data packet is not scanned, the non-existence of the receiving device is used as the judgment result.

[0116] Optionally, the device further includes:

[0117] The data packet broadcast module is used to broadcast a preset universal extended broadcast data packet on the low-power synchronization physical channel in accordance with a first set time-division multiplexing mode when scanning the broadcast data packet of the external Bluetooth low-power device on the low-power main broadcast physical channel. The preset universal extended broadcast data packet is used for signal synchronization.

[0118] Furthermore, the state control module 53 includes:

[0119] A sleep control unit, configured to, when the judgment result is that no receiving device exists, set the sleep state as the device state, enter the sleep state, and time the sleep duration;

[0120] a transmission control unit, configured to use the broadcast state as the device state when the judgment result is that a receiving device exists;

[0121] A data broadcast unit, configured to, in the broadcast state, stop scanning on the low-power main broadcast physical channel, broadcast low-power audio data on the low-power synchronization physical channel, and time the duration of this broadcast;

[0122] An event adding unit is used to add a predefined BIG control PDU sub-event on the low-power synchronous physical channel when the broadcast duration meets the preset sniffing condition, so that the external Bluetooth low-power device broadcasts its own broadcast data packet when it scans the predefined BIG control PDU sub-event on the low-power synchronous physical channel.

[0123] The event adding unit is specifically used for:

[0124] When the predefined BIG control PDU sub-event is scanned on the low-power synchronous physical channel by the external Bluetooth low-power device, its own broadcast data packet is broadcast on the low-power main broadcast physical channel according to the second set time-division multiplexing mode.

[0125] Optionally, the device further comprises:

[0126] The scanning module is used to return to the scanning step of the broadcast data packet on the low-power main broadcast physical channel after adding the predefined BIG control PDU sub-event on the low-power synchronous physical channel.

[0127] The audio device control apparatus provided in the embodiment of the present invention can execute the audio device control method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0128] Example 4

[0129] Figure 6 A schematic diagram of the structure of a Bluetooth audio source device 60 that can be used to implement an embodiment of the present invention is shown. The Bluetooth audio source device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The Bluetooth audio source device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.

[0130] like Figure 6 As shown, the Bluetooth audio source device 60 includes at least one processor 61 and a memory, such as a read-only memory (ROM) 62 and a random access memory (RAM) 63, communicatively connected to the at least one processor 61. The memory stores a computer program executable by the at least one processor, and the processor 61 can perform various appropriate actions and processes based on the computer program stored in the read-only memory (ROM) 62 or loaded from the storage unit 68 into the random access memory (RAM) 63. The RAM 63 can also store various programs and data required for the operation of the Bluetooth audio source device 60. The processor 61, ROM 62, and RAM 63 are interconnected via a bus 64. An input / output (I / O) interface 65 is also connected to the bus 64.

[0131] Multiple components in the Bluetooth audio source device 60 are connected to the I / O interface 65, including an input unit 66, such as a keyboard, a mouse, etc.; an output unit 67, such as various types of displays, speakers, etc.; a storage unit 68, such as a magnetic disk, an optical disk, etc.; and a communication unit 69, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 69 allows the Bluetooth audio source device 60 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0132] The processor 61 can be any general-purpose and / or specialized processing component with processing and computing capabilities. Some examples of the processor 61 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 61 executes the various methods and processes described above, such as the audio device control method.

[0133] In some embodiments, the audio device control method can be implemented as a computer program that is tangibly contained in a computer-readable storage medium, such as the storage unit 68. In some embodiments, part or all of the computer program can be loaded and / or installed on the Bluetooth audio source device 60 via the ROM 62 and / or the communication unit 69. When the computer program is loaded into the RAM 63 and executed by the processor 61, one or more steps of the audio device control method described above can be performed. Alternatively, in other embodiments, the processor 61 can be configured to perform the audio device control method in any other suitable manner (e.g., by means of firmware).

[0134] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system comprising at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0135] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the computer program is executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer program may be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0136] In the context of the present invention, computer-readable storage media can be tangible media that can contain or store a computer program for use with an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. Computer-readable storage media can include but are not limited to electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, computer-readable storage media can be machine-readable signal media. More specific examples of machine-readable storage media can include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0137] To provide interaction with a user, the systems and techniques described herein can be implemented on a Bluetooth audio source device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the Bluetooth audio source device. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0138] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0139] A computing system may include clients and servers. The clients and servers are typically remote from each other and typically interact via a communication network. This client-server relationship arises through computer programs running on the respective computers, creating a client-server relationship. The server may be a cloud server, also known as a cloud computing server or cloud host. This server is a hosting product within the cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosting and VPS services.

[0140] In one embodiment, the present invention further includes a computer program product. The computer program product includes a computer program. When the computer program is executed by a processor, the audio device control method of any embodiment of the present invention is implemented.

[0141] The computer program product may be implemented by writing computer program code for performing the operations of the present invention in one or more programming languages, or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0142] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in the present invention can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved. This is not limited herein.

[0143] The above specific embodiments do not limit the scope of protection of the present invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention are intended to be included within the scope of protection of the present invention.

Claims

1. A method for controlling an audio device, characterized in that: Applicable to Bluetooth audio source devices, including: When the sleep duration meets the wake-up condition, the system scans the advertising data packets of external Bluetooth low energy devices on the low power main advertising physical channel; Determine, based on the broadcast data packet, whether there is an external Bluetooth low energy device that meets the receiving device conditions within the Bluetooth coverage range, and obtain a judgment result; According to the judgment result and the predefined broadcast synchronization group BIG control protocol data unit PDU sub-event, the device status is determined, and self-control is performed based on the device status; the predefined BIG control PDU sub-event is used to notify the external Bluetooth audio receiving device to broadcast its own data packet; the device status includes sleep state and broadcast state.

2. The method according to claim 1, characterized in that The determining, based on the broadcast data packet, whether there is an external Bluetooth low energy device that meets the receiving device conditions within the Bluetooth coverage range, and obtaining a judgment result, includes: parsing the broadcast data packet to determine a company identifier and manufacturer-specific data in the broadcast data packet; matching the company identifier and the manufacturer-specific data with a preset device information table; If the match is successful, the existence of the receiving device is used as the judgment result; Otherwise, the scanning continues until the preset scanning time is reached. When there is no successfully matched external Bluetooth low energy device or the broadcast data packet is not scanned, the non-existence of the receiving device is used as the judgment result.

3. The method according to claim 1, characterized in that Also includes: When scanning the broadcast data packet of the external Bluetooth low energy device on the low power main broadcast physical channel, the preset universal extended broadcast data packet is broadcast outward on the low power synchronization physical channel in accordance with the first set time-division multiplexing mode, and the preset universal extended broadcast data packet is used for signal synchronization.

4. The method according to claim 1, wherein The determining of the device status according to the judgment result and the predefined broadcast synchronization group BIG control protocol data unit PDU sub-event, and performing self-control based on the device status, includes: When the judgment result is that there is no receiving device, the dormant state is taken as the device state, and the dormant state is entered, and the duration of this dormancy is counted; When the determination result is that a receiving device exists, the broadcast state is used as the device state; In the broadcast state, stop scanning on the low-power main broadcast physical channel, broadcast low-power audio data on the low-power synchronization physical channel, and time the duration of this broadcast; When the broadcast duration meets the preset sniffing condition, a predefined BIG control PDU sub-event is added to the low-power synchronous physical channel, so that the external Bluetooth low-power device broadcasts its own broadcast data packet when it scans the predefined BIG control PDU sub-event on the low-power synchronous physical channel.

5. The method according to claim 4, characterized in that After adding the predefined BIG control PDU sub-event on the low-power synchronous physical channel, the method further includes: Return to the step of scanning the broadcast data packet on the low-power primary broadcast physical channel.

6. The method according to claim 4, characterized in that The broadcasting of the self-broadcast data packet when the predefined BIG control PDU sub-event is scanned on the low-power synchronous physical channel includes: When the predefined BIG control PDU sub-event is scanned on the low-power synchronous physical channel, the broadcast data packet itself is broadcast on the low-power main broadcast physical channel according to the second set time-division multiplexing mode.

7. An audio equipment control device, characterized in that: Applicable to Bluetooth audio source devices, including: The data packet scanning module is used to scan the advertising data packets of external Bluetooth low energy devices on the low power main advertising physical channel when the sleep time meets the wake-up condition; A result determination module is used to determine whether there is an external Bluetooth low energy device that meets the receiving device conditions within the Bluetooth coverage range according to the broadcast data packet, and obtain a judgment result; The status control module is used to determine the device status according to the judgment result and the predefined broadcast synchronization group BIG control protocol data unit PDU sub-event, and control itself based on the device status; the predefined BIG control PDU sub-event is used to notify the external Bluetooth audio receiving device to broadcast its own data packet; the device status includes sleep state and broadcast state.

8. A Bluetooth audio source device, characterized in that: The Bluetooth audio source device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor. The computer program is executed by the at least one processor to enable the at least one processor to perform the audio device control method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the audio device control method according to any one of claims 1 to 6 when executed.

10. A computer program product, characterized in that The computer program product comprises a computer program, which, when executed by a processor, implements the audio device control method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Polling control method and device for keyless entry starting, equipment and storage medium

    CN116101222A

  • Asset tracking using active wireless tags that report via a local network of connected beacons

    US20190294833A1