Wireless audio data transmission method and device and related equipment
By negotiating channels between Bluetooth devices and detecting interference, canceling or switching channels to send data packets, the anti-interference problem of Bluetooth devices under channel interference is solved, and the playback stability and quality are improved.
Patent Information
- Application Number
- CN202510994357.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-18
- Publication Date
- 2025-10-03
AI Technical Summary
Bluetooth devices have poor anti-interference effect in the case of channel interference, and the existing adaptive frequency hopping mechanism is slow to respond, resulting in playback interruptions and abnormal sound.
By detecting the channel status in advance in multiple channels for negotiated communication between Bluetooth devices, if interference occurs, the data packet sending channel is canceled or switched to quickly avoid interference.
It improves the anti-interference ability of Bluetooth devices in interference environments, reduces playback delays and freezes, and ensures high-quality audio playback performance.
Smart Images

Figure CN120751432A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of wireless audio, and in particular to a wireless audio data transmission method, apparatus and related equipment. Background Art
[0002] Wireless audio unicast systems are widely used in devices and scenarios that provide data transmission and audio playback via Bluetooth, such as mobile phones, smart TVs, Bluetooth portable speakers, and Bluetooth True Wireless Stereo (TWS) headphones.
[0003] In 2022, the Bluetooth Special Interest Group (SIG) released Unicast, a wireless audio unicast standard based on the next-generation Bluetooth LE Audio technology, along with UMS (Unicast Media Source) and UMR (Unicast Media Receiver), and began promoting it in 2023. This standard technology includes Bluetooth core layer technologies such as CIG, Bluetooth host and application layer technologies such as BAP, CAP, and TMAP, and the next-generation Bluetooth audio codec standard LC3. By 2024, the industry had developed and released a series of Bluetooth chipsets and a small number of mass-produced products supporting the LE Audio standard based on the above protocol suite and technologies. However, more mature and optimized protocols, technologies, and products are still evolving.
[0004] At present, when a Bluetooth device hops to the working channel of other wireless transmission devices (such as WIFI devices), it is susceptible to interference and may experience problems such as playback freezes and abnormal playback sound. Although the Bluetooth protocol standard defines an adaptive frequency hopping (AFH) mechanism to avoid the above interference problems, the AFH mechanism will only be triggered when the interference seriously affects the reception effect, and avoidance can only be achieved at least 100 milliseconds after the interference occurs. Summary of the Invention
[0005] The object of the present invention is to provide a wireless audio data transmission method, apparatus and related equipment, which are used to solve the technical problem that the avoidance solution provided by the prior art for Bluetooth devices in the case of channel interference has poor anti-interference effect.
[0006] In a first aspect, an embodiment of the present invention provides a wireless audio data transmission method, which is applied to a first Bluetooth device, wherein the first Bluetooth device communicates with a second Bluetooth device in continuous equal time intervals, and the first Bluetooth device includes a first Bluetooth controller and a second Bluetooth controller. The method includes:
[0007] detecting a first channel based on the second Bluetooth controller, obtaining a detection result, where the detection result indicates that the first channel is in an idle state or an interference state, the first channel being one of multiple channels negotiated for communication between the first Bluetooth device and the second Bluetooth device and used for sending a target data packet;
[0008] When the detection result indicates that the first channel is in an idle state, based on the first Bluetooth controller, sending a target data packet to the second Bluetooth device through the first channel at a first moment;
[0009] When the detection result indicates that the first channel is in an interference state, the second Bluetooth controller sends an interaction message to the first Bluetooth controller, so that the first Bluetooth controller cancels the sending of the target data packet in response to the interaction message, or the first Bluetooth controller sends the target data packet to the second Bluetooth device through the second channel at a second moment in response to the interaction message, wherein the second channel is another channel among the multiple channels for sending target data packets, and the first moment is before the second moment.
[0010] In a second aspect, an embodiment of the present invention further provides a wireless audio data transmission method, which is applied to a second Bluetooth device, wherein the second Bluetooth device communicates with the first Bluetooth device in continuous equal time intervals, and the second Bluetooth device includes a third Bluetooth controller and a fourth Bluetooth controller, and the method includes:
[0011] detecting a first channel based on the fourth Bluetooth controller, obtaining a detection result, where the detection result indicates that the first channel is in an idle state or an interference state, the first channel being one of multiple channels for communication negotiated between the first Bluetooth device and the second Bluetooth device and used for sending a target data packet;
[0012] Based on the third Bluetooth controller, the target data packet sent by the first Bluetooth device is received through the first channel at a third moment; or, in the case of a timeout in waiting for receiving the target data packet through the first channel, based on the third Bluetooth controller or the fourth Bluetooth controller, the target data packet sent by the first Bluetooth device is received through the second channel at a fourth moment, wherein the second channel is another channel among the multiple channels for sending the target data packet, and the third moment is before the fourth moment.
[0013] In a third aspect, an embodiment of the present invention further provides a wireless audio data transmission device, which is applied to a first Bluetooth device, wherein the first Bluetooth device communicates with a second Bluetooth device in continuous equal time intervals, the first Bluetooth device includes a first Bluetooth controller and a second Bluetooth controller, and the device includes:
[0014] a first detection module, configured to detect a first channel based on the second Bluetooth controller and obtain a detection result, wherein the detection result indicates that the first channel is in an idle state or an interference state, the first channel being one of multiple channels negotiated for communication between the first Bluetooth device and the second Bluetooth device and used for sending a target data packet;
[0015] a first sending module, configured to send a target data packet to the second Bluetooth device through the first channel at a first moment based on the first Bluetooth controller when the detection result indicates that the first channel is in an idle state;
[0016] A second sending module is used to send an interaction message to the first Bluetooth controller based on the second Bluetooth controller when the detection result indicates that the first channel is in an interference state, so that the first Bluetooth controller cancels the sending of the target data packet in response to the interaction message, or enables the first Bluetooth controller to send the target data packet to the second Bluetooth device through the second channel at a second moment in response to the interaction message, wherein the second channel is another channel among the multiple channels for sending target data packets, and the first moment is before the second moment.
[0017] In a fourth aspect, an embodiment of the present invention further provides a wireless audio data transmission device, which is applied to a second Bluetooth device, wherein the second Bluetooth device communicates with the first Bluetooth device in continuous equal time intervals, and the second Bluetooth device includes a third Bluetooth controller and a fourth Bluetooth controller, and the device includes:
[0018] a second detection module, configured to detect a first channel based on the fourth Bluetooth controller to obtain a detection result, wherein the detection result indicates that the first channel is in an idle state or an interference state, the first channel being one of multiple channels for the first Bluetooth device and the second Bluetooth device to negotiate communication and used to send a target data packet;
[0019] A receiving module is configured to receive the target data packet sent by the first Bluetooth device through the first channel at a third moment based on the third Bluetooth controller; or, in the case of a timeout in waiting for receiving the target data packet through the first channel, receive the target data packet sent by the first Bluetooth device through the second channel at a fourth moment based on the third Bluetooth controller or the fourth Bluetooth controller, wherein the second channel is another channel among the multiple channels for sending the target data packet, and the third moment is before the fourth moment.
[0020] In a fifth aspect, an embodiment of the present invention further provides a wireless audio data transmission system, the wireless audio data transmission system comprising:
[0021] A first Bluetooth device and a second Bluetooth device, wherein the first Bluetooth device communicates with the second Bluetooth device in consecutive equal time intervals, the first Bluetooth device includes a first Bluetooth controller and a second Bluetooth controller, and the second Bluetooth device includes a third Bluetooth controller and a fourth Bluetooth controller;
[0022] The first Bluetooth device is configured to: detect a first channel based on the second Bluetooth controller to obtain a detection result, wherein the detection result is used to indicate that the first channel is in an idle state or an interference state, and the first channel is one of multiple channels negotiated for communication between the first Bluetooth device and the second Bluetooth device and is used to send a target data packet;
[0023] The first Bluetooth device is further configured to: send a target data packet to the second Bluetooth device via the first channel at a first moment based on the first Bluetooth controller when the detection result indicates that the first channel is in an idle state;
[0024] The first Bluetooth device is also used to: when the detection result indicates that the first channel is in an interference state, send an interaction message to the first Bluetooth controller based on the second Bluetooth controller, so that the first Bluetooth controller cancels the sending of the target data packet in response to the interaction message, or, send the target data packet to the second Bluetooth device through the second channel at a second moment in response to the interaction message, wherein the second channel is another channel among the multiple channels for sending target data packets, and the first moment is before the second moment.
[0025] In a sixth aspect, an embodiment of the present application further provides an electronic device comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein when the program or instruction is executed by the processor, the steps of the wireless audio data transmission method as described in the first aspect or the second aspect are implemented.
[0026] In a seventh aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the wireless audio data transmission method as described in the first aspect or the second aspect are implemented.
[0027] In an eighth aspect, an embodiment of the present application further provides a computer program product, comprising computer instructions, which, when executed by a processor, implement the steps of the wireless audio data transmission method as described in the first aspect or the second aspect.
[0028] In the present application, before sending a data packet through the first channel, it is detected in advance whether the first channel is in an idle state or an interference state, and when it is detected that the first channel is in an interference state, that is, when it is identified that the first channel conflicts with the working channel of other wireless transmission devices (such as WIFI devices), the sending operation of the target data packet to be sent is adaptively adjusted. By canceling the sending of the target data packet, or switching to the second channel to send the target data packet, the problem of channel interference is avoided in time. While ensuring the transmission reliability of the target data packet, the transmission delay of the target data packet is reduced as much as possible, and the problems of playback jamming, abnormal playback sound, etc. caused by channel interference are reduced, so as to achieve high-quality playback performance testing and playback effects, and enhance the anti-interference effect of Bluetooth devices during Bluetooth communication. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 This is a flow chart of a wireless audio data transmission method provided by an embodiment of the present application;
[0030] Figure 2 is a structural diagram of a restricted Bluetooth controller provided in an embodiment of the present application;
[0031] Figure 3 This is a timing diagram related to channel detection provided by an embodiment of the present application;
[0032] Figure 4 This is a flow chart of another wireless audio data transmission method provided by an embodiment of the present application.
[0033] Figure 5 This is a schematic structural diagram of a wireless audio data transmission device provided in an embodiment of the present application;
[0034] Figure 6 This is a structural diagram of another wireless audio data transmission device provided in an embodiment of the present application;
[0035] Figure 7 This is a schematic structural diagram of a wireless audio data transmission system provided in an embodiment of the present application;
[0036] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0037] The following will clearly and completely describe the technical solutions in the embodiments of the present disclosure in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present disclosure without making any creative efforts shall fall within the scope of protection of the present disclosure.
[0038] An embodiment of the present invention provides a wireless audio data transmission method, which is applied to a first Bluetooth device, wherein the first Bluetooth device communicates with a second Bluetooth device in multiple consecutive equal time intervals, and the first Bluetooth device includes a first Bluetooth controller and a second Bluetooth controller. Figure 1 As shown, the method includes:
[0039] Step 101: Detect the first channel based on the second Bluetooth controller to obtain a detection result.
[0040] The detection result is used to indicate that the first channel is in an idle state or an interference state, and the first channel is a channel used to send a target data packet among multiple channels for negotiated communication between the first Bluetooth device and the second Bluetooth device.
[0041] The first Bluetooth device and the second Bluetooth device perform isochronous communication within a plurality of consecutive isochronous intervals (ISO_Intervals) based on the LE Audio protocol, and each isochronous interval includes a plurality of sub-events (Sub-Events).
[0042] The detection result is used to indicate whether the first channel is in an idle state or an interference state. The idle state of the first channel can be understood as the first channel not being occupied by other devices (such as Bluetooth, WIFI, or other wireless devices in the same frequency band). In this case, data packets can be sent and received more reliably through the first channel. Correspondingly, the interference state of the first channel can be understood as the first channel being occupied by other devices. In this case, there is a high probability of wireless interference when sending and receiving data packets through the first channel, that is, a high probability of packet loss or data packet anomalies.
[0043] It should be noted that the detection operation on the first channel is performed earlier than the pre-set time for sending the data packet (also called the first time), that is, before sending the data packet through the first channel, it is detected in advance whether the first channel is occupied (or whether there is interference), so that when the first channel is occupied, the subsequent data packet sending operations can be adaptively adjusted to avoid the problem of channel interference in time. While ensuring the transmission reliability of the data packet, the transmission delay of the data packet is reduced as much as possible, and the problems of playback jamming, abnormal playback sound, etc. caused by channel interference are reduced, so as to achieve high-quality playback performance testing and playback effects.
[0044] It should be added that the detection action on the first channel and the packet sending action based on the first channel can be completed in the same sub-event or in different sub-events.
[0045] Among them, using the second Bluetooth controller to complete the detection operation of the first channel instead of using the first Bluetooth controller to complete the detection operation of the first channel can reduce the performance requirements of the RF front-end module of the Bluetooth device, thereby reducing the equipment cost of the Bluetooth device. It can also eliminate the process of the first Bluetooth controller switching from the channel detection operation to the data packet transmission operation, thereby saving the time of the operation switching process (that is, the time spent on transmitting interactive messages between the first Bluetooth controller and the second Bluetooth controller is less than the time spent on the first Bluetooth controller switching from the channel detection operation to the data packet transmission operation), thereby further reducing the transmission delay of the data packet.
[0046] Step 102: When the detection result indicates that the first channel is in an idle state, based on the first Bluetooth controller, send a target data packet to the second Bluetooth device through the first channel at a first moment.
[0047] The first moment can be understood as the time at which the first Bluetooth device sends a target data packet to the second Bluetooth device, pre-set within the corresponding sub-event. The target data packet can be understood as the data packet that the first Bluetooth device is preparing to send to the second Bluetooth device within the corresponding sub-event. The corresponding sub-event can be understood as the sub-event in which the first Bluetooth device transmits the target data packet for the first time, or the sub-event in which the first Bluetooth device retransmits the target data packet.
[0048] Exemplarily, the target data packet may carry audio data.
[0049] In the application, when the detection result indicates that the first channel is idle, the second Bluetooth controller may not interact with the first Bluetooth controller based on a pre-set interaction interface, or may feedback a message that the first channel is available to the first Bluetooth controller based on the interaction interface.
[0050] Exemplarily, the first Bluetooth controller and the second Bluetooth controller may interact with each other through a high-speed serial port, a high-speed SPI port, or the like.
[0051] Step 103: When the detection result indicates that the first channel is in an interference state, the second Bluetooth controller sends an interaction message to the first Bluetooth controller, so that the first Bluetooth controller cancels the sending of the target data packet in response to the interaction message, or the first Bluetooth controller sends the target data packet to the second Bluetooth device through the second channel at a second time in response to the interaction message.
[0052] The second channel is another channel among the multiple channels for sending the target data packet, and the first moment is before the second moment.
[0053] Based on the above settings, when it is identified that the first channel is occupied, the sending of the target data packet is canceled, or the target data packet is sent at a later time (i.e., the second time) by switching to other channels (i.e., the second channel) to ensure the reliable transmission of the target data packet as much as possible.
[0054] It should be understood that choosing to cancel the sending of the target data packet in the corresponding sub-event does not mean that the target data packet will no longer be transmitted, but rather that the target data packet will be sent again in the retransmission sub-event corresponding to the target data packet.
[0055] In one example, when the detection action of the first channel and the packet sending action based on the first channel are expected to be completed in the same sub-event, the following setting can be made: in the target sub-event (which can be understood as a sub-event in multiple sub-events included in a continuous equal time interval between the first Bluetooth device and the second Bluetooth device), the first channel is detected, and when it is identified that the first channel is occupied and the time difference between the first moment and the event end moment of the target sub-event is less than the set time difference threshold, the sending of the target data packet is canceled; and when it is identified that the first channel is occupied and the time difference between the first moment and the event end moment of the target sub-event is greater than or equal to the time difference threshold, it is selected to switch to other channels in the target sub-event to send the target data packet at a later time. In this example, the above-mentioned duration threshold can be adaptively set according to actual needs, and the present invention does not limit this.
[0056] It should be added that the execution of step 103 requires that the above-mentioned second Bluetooth device is a Bluetooth device including at least two Bluetooth controllers. When the second Bluetooth device only includes one Bluetooth controller, even if the detection result indicates that the first channel is in an interference state, the first Bluetooth controller will still send the target data packet to the second Bluetooth device through the first channel at the first moment to adapt to the use of standard Bluetooth devices (usually only including one Bluetooth controller).
[0057] In the application, when a communication connection is established between the first Bluetooth device and the second Bluetooth device, the device functions supported by both parties can be interacted (based on this, it can be determined whether the second Bluetooth device is a Bluetooth device including at least two Bluetooth controllers, or a standard Bluetooth device including only one Bluetooth controller), and when it is determined that the first Bluetooth device includes a first Bluetooth controller and a second Bluetooth controller, and the second Bluetooth device is a Bluetooth device including at least two Bluetooth controllers, negotiation is carried out on whether to enable an idle channel detection mechanism (that is, before sending / receiving data packets through the corresponding channel, detecting whether the corresponding channel is in an idle state or an interference state within the corresponding sub-event, such as the operation in step 101), whether to enable a fast avoidance mechanism for wireless interference in the same frequency band (that is, when detecting that the corresponding channel is in an interference state, whether to choose to switch to other channels within the corresponding sub-event (or a subsequent sub-event of the corresponding sub-event) to continue sending / receiving data packets), etc.
[0058] Among them, when the idle channel detection mechanism is not enabled, the first Bluetooth device will send the target data packet to the second Bluetooth device through the first channel at the first time based on the first Bluetooth controller. The second Bluetooth controller will not perform channel detection operations on the first channel. In this case, the rapid avoidance mechanism of wireless interference in the same frequency band will not be enabled.
[0059] When the idle channel detection mechanism is enabled and the same-band wireless interference fast avoidance mechanism is not enabled, when the detection result indicates that the first channel is in an interference state, the first Bluetooth device will cancel the transmission of the target data packet at the first moment;
[0060] When the idle channel detection mechanism is enabled and the same-band wireless interference rapid avoidance mechanism is also enabled, when the detection result indicates that the first channel is idle, the first Bluetooth device will send the target data packet to the second Bluetooth device through the second channel at the second time.
[0061] In general, based on the settings of the above steps, the present invention can detect the channel currently preparing to send a packet within a sub-event, and can promptly identify the channel conflict problem when the channel conflicts with the working channel of other wireless transmission devices (such as WIFI devices), so as to subsequently cancel the sending of the data packet, or switch to other channels to send the data packet. The above settings can effectively suppress the occurrence of channel interference problems, so that the Bluetooth device can promptly complete the avoidance of the working channel of other wireless transmission devices, thereby reducing the risk of interference of other wireless transmission devices in the Bluetooth communication process of the Bluetooth device, and enhancing the anti-interference effect of the Bluetooth device during the Bluetooth communication process.
[0062] In one embodiment, the time difference between the first moment and the second moment is greater than or equal to a time difference threshold, and the time difference threshold is the sum of a first duration and a second duration, the first duration is: the duration of the receive synchronization timeout negotiated by the first Bluetooth device and the second Bluetooth device, and the second duration is: the duration of the protection interval negotiated by the first Bluetooth device and the second Bluetooth device.
[0063] In this embodiment, based on the setting of the time difference threshold, it is ensured that there is a sufficient time interval between the first moment and the second moment, so as to reserve enough time for the channel switching operation, thereby ensuring the smooth execution of the channel switching operation.
[0064] In one embodiment, the detecting the first channel based on the second Bluetooth controller to obtain a detection result includes:
[0065] sampling signal energy of a received signal of the first channel to obtain sampling information;
[0066] The sampling information is analyzed to obtain the detection result.
[0067] When the first channel is used as a working channel by other wireless transmission devices, a received signal with strong signal energy can be sampled from the first channel. Therefore, in this embodiment, the signal energy of the received signal of the first channel is sampled and analyzed to obtain the detection result.
[0068] It should be noted that the end time of the sampling period of the received signal of the first channel is earlier than the first time.
[0069] In some embodiments, a signal strength threshold may be set. When the signal strength of a received signal sampled within the sampling time period is greater than or equal to the signal strength threshold, a detection result is generated indicating that the first channel is in an interference state; otherwise, a detection result is generated indicating that the first channel is in an idle state.
[0070] Alternatively, when the signal strengths of multiple consecutive received signals (such as 10 consecutive received signals) sampled within the above-mentioned sampling time period are greater than or equal to the signal strength threshold, a detection result is generated indicating that the first channel is in an interference state; otherwise, a detection result is generated indicating that the first channel is in an idle state.
[0071] In one embodiment, sampling the signal energy of the received signal of the first channel to obtain sampling information includes:
[0072] Based on the second Bluetooth controller, sampling the received signal on the first channel in multiple sampling periods to obtain multiple sampling data, the sampling information includes the multiple sampling data, the multiple sampling data and the multiple sampling periods have a one-to-one correspondence, and the sampling data is used to represent: a maximum received signal energy value detected in the corresponding sampling period, and / or a maximum received signal power value detected in the corresponding sampling period;
[0073] The analyzing the sampling information to obtain the detection result includes:
[0074] When a proportion of target sampled data among the plurality of sampled data is greater than or equal to a proportion threshold, generating a detection result indicating that the first channel is in an interference state, wherein the target sampled data is: sampled data including a received signal energy value greater than or equal to a first threshold, and / or including a received signal power strength value greater than or equal to a second threshold;
[0075] When the proportion of the target sampled data in the plurality of sampled data is less than the proportion threshold, a detection result indicating that the first channel is in an idle state is generated.
[0076] In this embodiment, the time period composed of multiple sampling periods can be understood as the aforementioned sampling time period. By obtaining the maximum received signal energy value and / or the maximum received signal power value detected in each sampling period; and analyzing whether the proportion of the number of target sampling data in the multiple sampling data is greater than or equal to the proportion threshold, that is, analyzing whether the proportion of the number of sampling periods in which received signals with strong signal energy are detected in the multiple sampling periods is greater than or equal to the proportion threshold, it can be determined whether the first channel is used as a working channel by other wireless transmission devices.
[0077] Exemplarily, the process of sampling the received signal of the first channel may be:
[0078] The first channel is configured as the channel to be detected, also known as the scanning channel, and the scanning bandwidth and receiver automatic gain control parameters are configured. The receiver is turned on, and the detector submodule is enabled. The scanning channel is an integer or even frequency value between 2402MHz and 2480MHz, and the scanning bandwidth is set to 1MHz to 4MHz. The second Bluetooth controller then performs a received signal energy value sampling operation, sampling the highest amplitude value, with a sampling period Ts, typically 2-10 microseconds.
[0079] In one embodiment, when the detection result indicates that the first channel is in an idle state, before sending the target data packet to the second Bluetooth device through the first channel based on the first Bluetooth controller, the method further includes:
[0080] In the case that the target data packet carries urgent data, based on the occupation of the first channel by the second Bluetooth controller, the time period in which the first channel is occupied by the second Bluetooth controller and the time period in which the first Bluetooth controller sends the target data packet through the first channel do not overlap with each other, wherein the urgent data includes: data with a transmission priority higher than a priority threshold.
[0081] In this embodiment, in the case where the target data packet carries urgent data, the originally idle first channel is occupied to trigger other wireless transmission devices to take corresponding channel avoidance measures (such as making the CCA function of the WiFi device in the same environment detect that the first channel is in an interference state and thus delay transmission, or making other Bluetooth devices in the same environment with the above-mentioned channel detection function detect that the first channel is in an interference state and delay transmission or jump to other channels for transmission), thereby reducing the probability of other wireless transmission devices using the first channel as a working channel within the corresponding packet sending time period (the starting time of the packet sending time period is the first time), and increasing the probability of the target data packet carrying urgent data being successfully transmitted within the corresponding packet sending time period.
[0082] Among them, data with a transmission priority higher than the priority threshold can also be understood as data with higher timeliness requirements, such as real-time voice whose transmission is about to time out, control signaling with high timeliness requirements (such as data used to notify each peripheral of a new channel mapping table and its effectiveness), etc.
[0083] That is to say, the higher transmission priority of the data can be pre-set (such as the control signaling with high timeliness requirements mentioned above), or it can be dynamically adjusted according to relevant strategies (such as the shorter the time difference between the current moment and the transmission timeout moment of real-time voice, the higher the data priority of real-time voice).
[0084] In the application, the second Bluetooth controller may continuously send a wireless signal on the first channel to occupy the first channel. To simplify baseband processing, the wireless signal may be a single-tone signal.
[0085] Furthermore, the occupying the first channel based on the second Bluetooth controller includes:
[0086] Based on the second Bluetooth controller, multiple channel reservation signals are sent through the first channel within the channel reservation time period, wherein the end time of the channel reservation time period is the first target time, and the transmitter start time when sending the target data packet to the second Bluetooth device through the first channel is the second target time, and the first target time is before the second target time, or the first target time and the second target time are the same time.
[0087] The channel reservation period can be understood as the period of time during which the wireless signal is continuously transmitted on the first channel. The channel reservation signal can also be understood as the wireless signal.
[0088] In this embodiment, based on the time limit of the first target time and the second target time, the first channel is ensured to be fully occupied, thereby preventing the occupation of the first channel from interfering with the sending operation of the target data packet.
[0089] At the same time, in order to avoid excessive interference of the above-mentioned channel occupancy strategy on the first channel, so that the wireless transmission equipment can use the channel resources of the first channel in a staggered manner, it is set that when the cumulative occupation time of the first channel (that is, the total time of sending and receiving wireless signals on the first channel) is greater than the supervision time (such as 10ms), it is prohibited to occupy the first channel again by sending and receiving wireless signals.
[0090] In one embodiment, the second Bluetooth device includes a third Bluetooth controller and a fourth Bluetooth controller, the first Bluetooth controller, the second Bluetooth controller and the third Bluetooth controller are all standard Bluetooth controllers, the fourth Bluetooth controller is a standard Bluetooth controller or a restricted Bluetooth controller, and the cost of the restricted Bluetooth controller is lower than that of the standard Bluetooth controller.
[0091] Exemplarily, the main components of a standard Bluetooth controller are a radio frequency front-end module, a modem module, a Bluetooth baseband module, a Bluetooth controller protocol software module, and a microcontroller.
[0092] A limited Bluetooth controller can be Figure 2 As shown, its main components are RF front-end module, customized modulation and demodulation module, simple baseband module and simple control software module.
[0093] Compared to the modem module in a standard Bluetooth controller, the customized modem module only requires an RSSI submodule, a preamble access code demodulation submodule, and a single-tone transmission submodule, thus eliminating most of the modem sub-functions. Furthermore, the customized modem module includes the preamble access code demodulation function for WiFi signals in the 2.4GHz band. This function is used to detect whether nearby WiFi devices are performing high-volume wireless communication transmissions. Because this function is simple to execute, it does not require a separate microcontroller; its control software module can run on the microprocessor of the first / third Bluetooth controller.
[0094] The signal energy sampling of the received signal on the first channel can be performed using the detector submodule in the RF front-end module of the second Bluetooth controller. The detector submodule implements the energy detection function on each wireless channel and measures the energy level on the channel to determine whether the channel is idle. The specific channel detection process is described above and will not be repeated here. The detector submodule is an analog hardware function, and its interface with the software function is a register. The configuration of this function and the reading of the energy level are both implemented through the register.
[0095] The customized modem module only needs to include the RSSI submodule, which samples the I and Q signals downconverted by the ADC in the RF front-end module. After synchronization with the access code, the sampled values are processed (by extracting or integrating the power based on the highest amplitude sampled within each sampling period) to obtain the RSSI value (which can be understood as the aforementioned sampled data). This RSSI value can be used to assess the signal strength of wireless communications on the channel. This submodule is a digital hardware function, and its interface with the software function is registers. Both configuration of this function and reading of energy levels are implemented through registers.
[0096] In one embodiment, the first channel is a channel in a first channel mapping table pre-negotiated by the first Bluetooth device and the second Bluetooth device, the second channel is a channel in a second channel mapping table pre-negotiated by the first Bluetooth device and the second Bluetooth device, and the first channel mapping table and the second channel mapping table are different channel mapping tables.
[0097] In this embodiment, when it is detected that a predetermined channel (i.e., the first channel) in a channel mapping table is occupied by other wireless transmission devices, a new channel (i.e., the second channel) is selected from another channel mapping table as a replacement channel, which can effectively reduce the probability that the new channel is also occupied by other wireless transmission devices and increase the probability of successfully transmitting the target data packet on the new channel.
[0098] For example, Figure 3 As shown, for a first Bluetooth controller (ie Figure 3The first controller in) and the second Bluetooth controller (ie Figure 3 For the first Bluetooth device (the second controller in the example), when the second Bluetooth controller detects that the current channel (i.e., the first channel) is idle, the second Bluetooth controller does not send interactive information to the first Bluetooth controller. The first Bluetooth controller starts the transmitter in advance Z us according to the original sending anchor point (i.e., the first moment). The Z us time is the transmitter startup and stabilization time. Then, in the ISO data packet (i.e., the target data packet, i.e., Figure 3 The Tx PDU in the transmission starts to be sent at the transmission anchor point, and this process is also the process of step 102.
[0099] Figure 3 In the example, X indicates the time interval between the start time of the second Bluetooth controller performing channel detection on the current channel and the originally scheduled sending anchor point, and Y indicates the sampling time period of the second Bluetooth controller performing channel detection on the current channel.
[0100] When the second Bluetooth controller detects that the current channel is in an interference state, it means that other wireless communications in the same frequency band (such as Bluetooth or WiFi, etc.) are communicating within this channel range in the current sub-event; the second Bluetooth controller sends interaction information to the first Bluetooth controller, so that the first Bluetooth controller can promptly avoid channels for other wireless communications in the same frequency band.
[0101] Channel avoidance can be accomplished in either of the following two ways.
[0102] One of the ways is:
[0103] The first Bluetooth controller terminates the prepared sending process (eg, cancels the sending of the target data packet in the current sub-event or a subsequent sub-event of the current sub-event), and seeks to send the data packet again at the next retransmission opportunity.
[0104] Since this moment (which can be understood as the moment when the first Bluetooth controller receives the interactive information from the second Bluetooth controller indicating that the current channel is occupied) is usually earlier than Z us, which is the time before the anchor point is sent, and the transmitter has not yet started, terminating this transmission will not affect the RF front-end module and will not produce any transmit power output. In addition, since the first Bluetooth device has exited the current channel, it will not interfere with other wireless transmission devices currently conducting wireless communications in the same frequency band, thereby increasing the success rate of wireless communications for other wireless transmission devices and allowing them to end their occupation of the current channel more quickly.
[0105] Another method (i.e. the aforementioned fast avoidance mechanism for wireless interference in the same frequency band) is as follows:
[0106] Since this moment is usually earlier than Z us before the anchor point is sent, the first basketball controller adjusts the current channel to a new channel, which is a corresponding channel specified in a second channel mapping table pre-negotiated by the first Bluetooth device and the second Bluetooth device.
[0107] When the first Bluetooth device learns through negotiation with the second Bluetooth device that the third Bluetooth controller and the fourth Bluetooth controller included in the second Bluetooth device are both standard Bluetooth controllers, the first Bluetooth controller waits for U+Vus and then starts the transmitter; Uus is the pre-negotiated receive synchronization timeout period (i.e., the aforementioned first duration), and V is the protection interval period (i.e., the aforementioned second duration); the anchor point time for sending the data packet on the new channel is delayed by U+V+Zus from the original sending anchor point time (here it is assumed that this time is Zus before the sending anchor point time).
[0108] When the first Bluetooth device learns through negotiation with the second Bluetooth device that the second Bluetooth device includes a third Bluetooth controller that is a standard Bluetooth controller and a fourth Bluetooth controller that is a restricted Bluetooth controller, the first Bluetooth controller waits for U+V-Zus and then starts the transmitter; the anchor point time sent on the new channel is delayed by U+Vus from the original anchor point time (here it is assumed that this time is Zus before the anchor point time).
[0109] An embodiment of the present invention further provides a wireless audio data transmission method, which is applied to a second Bluetooth device, wherein the first Bluetooth device communicates with the second Bluetooth device in a plurality of consecutive equal time intervals, and the first Bluetooth device includes a third Bluetooth controller and a fourth Bluetooth controller, such as Figure 4 As shown, the method includes:
[0110] Step 401: Detect the first channel based on the fourth Bluetooth controller to obtain a detection result.
[0111] The detection result is used to indicate that the first channel is in an idle state or an interference state, and the first channel is a channel used to send a target data packet among multiple channels negotiated for communication between the first Bluetooth device and the second Bluetooth device.
[0112] Step 402: Based on the third Bluetooth controller, receive the target data packet sent by the first Bluetooth device through the first channel at a third moment; or, in the event of a timeout in waiting for receiving the target data packet through the first channel, based on the third Bluetooth controller or the fourth Bluetooth controller, receive the target data packet sent by the first Bluetooth device through the second channel at a fourth moment.
[0113] The second channel is another channel among the multiple channels used to send the target data packet, and the third moment is before the fourth moment.
[0114] It should be added that, when the first Bluetooth device only includes one Bluetooth controller, the second Bluetooth device will only receive the target data packet sent by the first Bluetooth device through the first channel at the third moment based on the third Bluetooth controller within the corresponding sub-event. In this case, you can choose to cancel the channel detection of the first channel to reduce energy consumption.
[0115] In one embodiment, the time difference between the third moment and the fourth moment is greater than or equal to a time difference threshold, and the time difference threshold is the sum of a first duration and a second duration, the first duration being: the duration of the receiving synchronization timeout negotiated by the first Bluetooth device and the second Bluetooth device, and the second duration being: the duration of the protection interval negotiated by the first Bluetooth device and the second Bluetooth device.
[0116] In one embodiment, the detecting the first channel based on the fourth Bluetooth controller to obtain a detection result includes:
[0117] sampling the signal energy of the received signal of the first channel based on the fourth Bluetooth controller to obtain sampling information;
[0118] The sampling information is analyzed to obtain the detection result.
[0119] In one embodiment, sampling the signal energy of the received signal of the first channel based on the fourth Bluetooth controller to obtain sampling information includes:
[0120] Based on the fourth Bluetooth controller, sampling the received signal on the first channel in multiple sampling periods to obtain multiple sampling data, where the multiple sampling data correspond to the multiple sampling periods in a one-to-one manner, and the sampling data is used to represent: a maximum received signal energy value detected in the corresponding sampling period, and / or a maximum received signal power strength value detected in the corresponding sampling period;
[0121] When a proportion of target sampled data among the plurality of sampled data is greater than or equal to a proportion threshold, generating a detection result indicating that the first channel is in an interference state, wherein the target sampled data is: sampled data including a received signal energy value greater than or equal to a first threshold, and / or including a received signal power strength value greater than or equal to a second threshold;
[0122] When the proportion of the target sampled data in the plurality of sampled data is less than the proportion threshold, a detection result indicating that the first channel is in an idle state is generated.
[0123] In one embodiment, the first Bluetooth device includes a first Bluetooth controller and a second Bluetooth controller, the first Bluetooth controller, the second Bluetooth controller and the third Bluetooth controller are all standard Bluetooth controllers, the fourth Bluetooth controller is a standard Bluetooth controller or a restricted Bluetooth controller, and the cost of the restricted Bluetooth controller is lower than that of the standard Bluetooth controller.
[0124] In this embodiment, when the fourth Bluetooth controller is a restricted Bluetooth controller and the waiting for receiving the target data packet through the first channel times out, the target data packet sent by the first Bluetooth device is received through the second channel at a fourth moment based on the third Bluetooth controller.
[0125] Furthermore, the first channel is a channel in a first channel mapping table pre-negotiated by the first Bluetooth controller and the second Bluetooth controller, and the second channel is a channel in a second channel mapping table pre-negotiated by the first Bluetooth controller and the second Bluetooth controller, and the first channel mapping table and the second channel mapping table are different channel mapping tables.
[0126] When the fourth Bluetooth controller is a standard Bluetooth controller and the waiting for receiving the target data packet through the first channel times out, the third Bluetooth controller feeds back a reception timeout message to the fourth Bluetooth controller, so that the fourth Bluetooth controller receives the target data packet sent by the first Bluetooth device through the second channel at the fourth moment.
[0127] For example, the process of the second Bluetooth device receiving the target data packet in the corresponding sub-event is:
[0128] Based on W us (receiver startup and stabilization time) before the original receiving time anchor point (ie, the third moment), the third Bluetooth controller configures the receiving channel to the original standard channel (ie, the first channel) and starts the receiver.
[0129] When the fourth Bluetooth controller is a restricted Bluetooth controller and within the receiving synchronization timeout period U us, based on the fact that the third Bluetooth controller cannot synchronize to the currently connected Bluetooth data packet (that is, cannot receive the target data packet), the third Bluetooth controller immediately configures the receiving channel to the corresponding channel specified in the pre-negotiated second channel mapping table (that is, the second channel), and starts the receiver. It is expected that the target data packet delayed by the first Bluetooth controller of the first Bluetooth device on the corresponding channel fixed in the second channel mapping table can be received.
[0130] When the fourth Bluetooth controller is a standard Bluetooth controller and the third Bluetooth controller is unable to synchronize to the currently connected Bluetooth data packet (i.e., unable to receive the target data packet) within the reception synchronization timeout period U us, the third Bluetooth controller immediately interacts with the fourth Bluetooth controller to provide feedback to the fourth Bluetooth controller that the original channel reception timeout in the current sub-event has occurred, so that the second Bluetooth controller starts its receiver and stabilizes the PLL after U+V-Wus, so that the receiver based on the second Bluetooth controller completes the corresponding startup process and starts receiving the target data packet, which is the target data packet deferredly transmitted by the first Bluetooth controller of the first Bluetooth device on the corresponding channel fixed in the second channel mapping table;
[0131] It should be noted that when the fourth Bluetooth controller is a standard Bluetooth controller and within the receiving synchronization timeout period U us, when the third Bluetooth controller synchronizes to the currently connected Bluetooth data packet, the third Bluetooth controller immediately interacts with the fourth Bluetooth controller to feedback to the fourth Bluetooth controller that the original channel in the current sub-event is received successfully, so that the fourth Bluetooth controller terminates the receiver startup process and turns off the receiver.
[0132] The wireless audio data transmission method provided in the embodiment of the present disclosure corresponds to the various processes involving the second Bluetooth device in the aforementioned embodiment and can achieve the same technical effects. To avoid repetition, it will not be described here.
[0133] An embodiment of the present invention provides a wireless audio data transmission device, which is applied to a first Bluetooth device, wherein the first Bluetooth device communicates with a second Bluetooth device in continuous equal time intervals, and the first Bluetooth device includes a first Bluetooth controller and a second Bluetooth controller. Figure 5 As shown, the wireless audio data transmission device 500 includes:
[0134] a first detection module 501 configured to detect a first channel based on the second Bluetooth controller and obtain a detection result, wherein the detection result indicates that the first channel is in an idle state or an interference state, and the first channel is one of multiple channels negotiated for communication between the first Bluetooth device and the second Bluetooth device and is used to send a target data packet;
[0135] A first sending module 502 is configured to send a target data packet to the second Bluetooth device through the first channel at a first moment based on the first Bluetooth controller when the detection result indicates that the first channel is in an idle state;
[0136] The second sending module 503 is used to send an interaction message to the first Bluetooth controller based on the second Bluetooth controller when the detection result indicates that the first channel is in an interference state, so that the first Bluetooth controller cancels the sending of the target data packet in response to the interaction message, or enables the first Bluetooth controller to send the target data packet to the second Bluetooth device through the second channel at a second moment in response to the interaction message, wherein the second channel is another channel among the multiple channels for sending the target data packet, and the first moment is before the second moment.
[0137] In one embodiment, the time difference between the first moment and the second moment is greater than or equal to a time difference threshold, and the time difference threshold is the sum of a first duration and a second duration, the first duration is: the duration of the receive synchronization timeout negotiated by the first Bluetooth device and the second Bluetooth device, and the second duration is: the duration of the protection interval negotiated by the first Bluetooth device and the second Bluetooth device.
[0138] In one embodiment, the first detection module 501 includes:
[0139] a sampling unit, configured to sample signal energy of a received signal of the first channel to obtain sampling information;
[0140] An analysis unit is used to analyze the sampling information to obtain the detection result.
[0141] In one embodiment, the sampling unit is specifically configured to:
[0142] Based on the second Bluetooth controller, sampling the received signal on the first channel in multiple sampling periods to obtain multiple sampling data, the sampling information includes the multiple sampling data, the multiple sampling data and the multiple sampling periods have a one-to-one correspondence, and the sampling data is used to represent: a maximum received signal energy value detected in the corresponding sampling period, and / or a maximum received signal power value detected in the corresponding sampling period;
[0143] The analysis unit is specifically used for:
[0144] When a proportion of target sampled data among the plurality of sampled data is greater than or equal to a proportion threshold, generating a detection result indicating that the first channel is in an interference state, wherein the target sampled data is: sampled data including a received signal energy value greater than or equal to a first threshold, and / or including a received signal power strength value greater than or equal to a second threshold;
[0145] When the proportion of the target sampled data in the plurality of sampled data is less than the proportion threshold, a detection result indicating that the first channel is in an idle state is generated.
[0146] In one embodiment, the wireless audio data transmission device 500 further includes:
[0147] A channel occupation module is used to occupy the first channel based on the second Bluetooth controller when the target data packet carries urgent data, and the time period during which the first channel is occupied by the second Bluetooth controller and the time period during which the first Bluetooth controller sends the target data packet through the first channel do not overlap with each other, wherein the urgent data includes: data with a transmission priority higher than a priority threshold.
[0148] In one embodiment, the occupying the first channel based on the second Bluetooth controller includes:
[0149] Based on the second Bluetooth controller, multiple channel reservation signals are sent through the first channel within the channel reservation time period, wherein the end time of the channel reservation time period is the first target time, and the transmitter start time when sending the target data packet to the second Bluetooth device through the first channel is the second target time, and the first target time is before the second target time, or the first target time and the second target time are the same time.
[0150] In one embodiment, the second Bluetooth device includes a third Bluetooth controller and a fourth Bluetooth controller, the first Bluetooth controller, the second Bluetooth controller and the third Bluetooth controller are all standard Bluetooth controllers, the fourth Bluetooth controller is a standard Bluetooth controller or a restricted Bluetooth controller, and the cost of the restricted Bluetooth controller is lower than that of the standard Bluetooth controller.
[0151] In one embodiment, the first channel is a channel in a first channel mapping table pre-negotiated by the first Bluetooth controller and the second Bluetooth controller, the second channel is a channel in a second channel mapping table pre-negotiated by the first Bluetooth controller and the second Bluetooth controller, and the first channel mapping table and the second channel mapping table are different channel mapping tables.
[0152] The wireless audio data transmission device 500 provided in the embodiment of the present disclosure corresponds to the various processes involving the first Bluetooth device in the aforementioned embodiment and can achieve the same technical effects. To avoid repetition, it will not be described here.
[0153] An embodiment of the present invention provides a wireless audio data transmission device, which is applied to a second Bluetooth device, wherein the second Bluetooth device communicates with the first Bluetooth device in continuous equal time intervals, and the second Bluetooth device includes a third Bluetooth controller and a fourth Bluetooth controller, such as Figure 6 As shown, the wireless audio data transmission device 600 includes:
[0154] a second detection module 601 configured to detect a first channel based on the fourth Bluetooth controller to obtain a detection result, wherein the detection result indicates that the first channel is in an idle state or an interference state, and the first channel is one of multiple channels negotiated for communication between the first Bluetooth device and the second Bluetooth device and is used to send a target data packet;
[0155] The receiving module 602 is used to receive the target data packet sent by the first Bluetooth device through the first channel at a third moment based on the third Bluetooth controller; or, in the case of a timeout in waiting for receiving the target data packet through the first channel, receive the target data packet sent by the first Bluetooth device through the second channel at a fourth moment based on the third Bluetooth controller or the fourth Bluetooth controller, wherein the second channel is another channel among the multiple channels for sending the target data packet, and the third moment is before the fourth moment.
[0156] In one embodiment, the time difference between the third moment and the fourth moment is greater than or equal to a time difference threshold, and the time difference threshold is the sum of a first duration and a second duration, the first duration being: the duration of the receiving synchronization timeout negotiated by the first Bluetooth device and the second Bluetooth device, and the second duration being: the duration of the protection interval negotiated by the first Bluetooth device and the second Bluetooth device.
[0157] In one embodiment, the second detection module 601 includes:
[0158] a receiving sampling unit, configured to sample the signal energy of the received signal of the first channel based on the fourth Bluetooth controller to obtain sampling information;
[0159] The receiving and analyzing unit is configured to analyze the sampling information to obtain the detection result.
[0160] In one embodiment, the receiving sampling unit is specifically configured to:
[0161] Based on the fourth Bluetooth controller, sampling the received signal on the first channel in multiple sampling periods to obtain multiple sampling data, where the multiple sampling data correspond to the multiple sampling periods in a one-to-one manner, and the sampling data is used to represent: a maximum received signal energy value detected in the corresponding sampling period, and / or a maximum received signal power strength value detected in the corresponding sampling period;
[0162] The receiving and analyzing unit is specifically configured to:
[0163] When a proportion of target sampled data among the plurality of sampled data is greater than or equal to a proportion threshold, generating a detection result indicating that the first channel is in an interference state, wherein the target sampled data is: sampled data including a received signal energy value greater than or equal to a first threshold, and / or including a received signal power strength value greater than or equal to a second threshold;
[0164] When the proportion of the target sampled data in the plurality of sampled data is less than the proportion threshold, a detection result indicating that the first channel is in an idle state is generated.
[0165] In one embodiment, the first Bluetooth device includes a first Bluetooth controller and a second Bluetooth controller, the first Bluetooth controller, the second Bluetooth controller and the third Bluetooth controller are all standard Bluetooth controllers, the fourth Bluetooth controller is a standard Bluetooth controller or a restricted Bluetooth controller, and the cost of the restricted Bluetooth controller is lower than that of the standard Bluetooth controller.
[0166] In one embodiment, the first channel is a channel in a first channel mapping table pre-negotiated by the first Bluetooth controller and the second Bluetooth controller, the second channel is a channel in a second channel mapping table pre-negotiated by the first Bluetooth controller and the second Bluetooth controller, and the first channel mapping table and the second channel mapping table are different channel mapping tables.
[0167] The wireless audio data transmission device 600 provided in the embodiment of the present disclosure corresponds to the various processes involving the second Bluetooth device in the aforementioned embodiment and can achieve the same technical effects. To avoid repetition, it will not be described here.
[0168] The embodiment of the present invention provides a wireless audio data transmission system, such as Figure 7 As shown, the wireless audio data transmission system 700 includes:
[0169] A first Bluetooth device 701 and a second Bluetooth device 702, wherein the first Bluetooth device 701 communicates with the second Bluetooth device 702 in consecutive equal time intervals, the first Bluetooth device 701 includes a first Bluetooth controller and a second Bluetooth controller, and the second Bluetooth device 702 includes a third Bluetooth controller and a fourth Bluetooth controller;
[0170] The first Bluetooth device 701 is configured to: detect a first channel based on the second Bluetooth controller to obtain a detection result, where the detection result is used to indicate whether the first channel is in an idle state or an interference state, and the first channel is one of multiple channels negotiated for communication between the first Bluetooth device and the second Bluetooth device and is used to send a target data packet;
[0171] The first Bluetooth device 701 is further configured to: when the detection result indicates that the first channel is in an idle state, based on the first Bluetooth controller, send a target data packet to the second Bluetooth device through the first channel at a first moment;
[0172] The first Bluetooth device 701 is also used to: when the detection result indicates that the first channel is in an interference state, send an interaction message to the first Bluetooth controller based on the second Bluetooth controller, so that the first Bluetooth controller cancels the sending of the target data packet in response to the interaction message, or, send the target data packet to the second Bluetooth device through the second channel at a second moment in response to the interaction message, wherein the second channel is another channel among the multiple channels for sending the target data packet, and the first moment is before the second moment.
[0173] It should be noted that the wireless audio data transmission system and the wireless audio data transmission method provided in the above embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0174] According to an embodiment of the present disclosure, the present disclosure further provides an electronic device and a readable storage medium.
[0175] Figure 8 8 is a schematic block diagram of an example electronic device 800 that can be used to implement embodiments of the present disclosure. Figure 8As shown, the device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. Various programs and data required for the operation of the device 800 can also be stored in the RAM 803. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0176] Various components in device 800 are connected to I / O interface 805, including an input unit 806, such as a keyboard, mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a magnetic disk, optical disk, etc.; and a communication unit 809, such as a network card, modem, wireless communication transceiver, etc. The communication unit 809 allows device 800 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0177] The computing unit 801 can be various general-purpose and / or specialized processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units that run machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 801 performs the various methods and processes described above, such as the wireless audio data transmission method. For example, in some embodiments, the wireless audio data transmission method can be implemented as a computer software program that is tangibly embodied in a machine-readable medium, such as the storage unit 808. In some embodiments, part or all of the computer program can be loaded and / or installed on the device 800 via the ROM 802 and / or the communication unit 809. When the computer program is loaded into the RAM 803 and executed by the computing unit 801, one or more steps of the wireless audio data transmission method described above can be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to execute the wireless audio data transmission method in any other appropriate manner (for example, by means of firmware).
[0178] 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 (SOCs), complex 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 that includes 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.
[0179] The program code for implementing the method of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device so that when the program code is executed by the processor or controller, the functions / operations specified in the flow chart and / or block diagram are implemented. The program code can 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.
[0180] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0181] The present application also provides a computer program product including computer instructions, which, when executed by a processor, implement the above Figure 1 or Figure 4 The various processes of the method embodiment shown can achieve the same technical effect, and to avoid repetition, they will not be described here.
[0182] 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 this disclosure can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved. This is not limited herein.
[0183] The above specific embodiments do not constitute a limitation on the scope of protection of this disclosure. 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 this disclosure shall be included within the scope of protection of this disclosure.
Claims
1. A wireless audio data transmission method, characterized in that: Applied to a first Bluetooth device, the first Bluetooth device communicates with a second Bluetooth device in consecutive equal time intervals, the first Bluetooth device includes a first Bluetooth controller and a second Bluetooth controller, and the method includes: detecting a first channel based on the second Bluetooth controller, obtaining a detection result, where the detection result indicates that the first channel is in an idle state or an interference state, the first channel being one of multiple channels negotiated for communication between the first Bluetooth device and the second Bluetooth device and used for sending a target data packet; When the detection result indicates that the first channel is in an idle state, based on the first Bluetooth controller, sending a target data packet to the second Bluetooth device through the first channel at a first moment; When the detection result indicates that the first channel is in an interference state, the second Bluetooth controller sends an interaction message to the first Bluetooth controller, so that the first Bluetooth controller cancels the sending of the target data packet in response to the interaction message, or the first Bluetooth controller sends the target data packet to the second Bluetooth device through the second channel at a second moment in response to the interaction message, wherein the second channel is another channel among the multiple channels for sending target data packets, and the first moment is before the second moment.
2. The method according to claim 1, characterized in that The time difference between the first moment and the second moment is greater than or equal to a time difference threshold, and the time difference threshold is the sum of a first duration and a second duration, the first duration being: the duration of a receiving synchronization timeout negotiated by the first Bluetooth device and the second Bluetooth device, and the second duration being: the duration of a protection interval negotiated by the first Bluetooth device and the second Bluetooth device.
3. The method according to claim 1, characterized in that The detecting the first channel based on the second Bluetooth controller to obtain a detection result includes: sampling signal energy of a received signal of the first channel to obtain sampling information; The sampling information is analyzed to obtain the detection result.
4. The method according to claim 3, characterized in that The sampling of the signal energy of the received signal of the first channel to obtain sampling information includes: Based on the second Bluetooth controller, sampling the received signal on the first channel in multiple sampling periods to obtain multiple sampling data, the sampling information includes the multiple sampling data, the multiple sampling data and the multiple sampling periods have a one-to-one correspondence, and the sampling data is used to represent: a maximum received signal energy value detected in the corresponding sampling period, and / or a maximum received signal power value detected in the corresponding sampling period; The analyzing the sampling information to obtain the detection result includes: When a proportion of target sampled data among the plurality of sampled data is greater than or equal to a proportion threshold, generating a detection result indicating that the first channel is in an interference state, wherein the target sampled data is: sampled data including a received signal energy value greater than or equal to a first threshold, and / or including a received signal power strength value greater than or equal to a second threshold; When the proportion of the target sampled data in the plurality of sampled data is less than the proportion threshold, a detection result indicating that the first channel is in an idle state is generated.
5. The method according to claim 1, wherein When the detection result indicates that the first channel is in an idle state, before sending the target data packet to the second Bluetooth device through the first channel based on the first Bluetooth controller, the method further includes: In the case that the target data packet carries urgent data, based on the occupation of the first channel by the second Bluetooth controller, the time period in which the first channel is occupied by the second Bluetooth controller and the time period in which the first Bluetooth controller sends the target data packet through the first channel do not overlap with each other, wherein the urgent data includes: data with a transmission priority higher than a priority threshold.
6. The method according to claim 5, characterized in that The occupying the first channel based on the second Bluetooth controller includes: Based on the second Bluetooth controller, multiple channel reservation signals are sent through the first channel within the channel reservation time period, wherein the end time of the channel reservation time period is the first target time, and the transmitter start time when sending the target data packet to the second Bluetooth device through the first channel is the second target time, and the first target time is before the second target time, or the first target time and the second target time are the same time.
7. The method according to claim 1, characterized in that The second Bluetooth device includes a third Bluetooth controller and a fourth Bluetooth controller. The first Bluetooth controller, the second Bluetooth controller and the third Bluetooth controller are all standard Bluetooth controllers. The fourth Bluetooth controller is a standard Bluetooth controller or a restricted Bluetooth controller. The cost of the restricted Bluetooth controller is lower than that of the standard Bluetooth controller.
8. The method according to claim 1, characterized in that The first channel is a channel in a first channel mapping table pre-negotiated by the first Bluetooth controller and the second Bluetooth controller, and the second channel is a channel in a second channel mapping table pre-negotiated by the first Bluetooth controller and the second Bluetooth controller. The first channel mapping table and the second channel mapping table are different channel mapping tables.
9. A wireless audio data transmission method, characterized in that: Applied to a second Bluetooth device, the second Bluetooth device communicates with the first Bluetooth device in consecutive equal time intervals, the second Bluetooth device including a third Bluetooth controller and a fourth Bluetooth controller, the method comprising: detecting a first channel based on the fourth Bluetooth controller, obtaining a detection result, where the detection result indicates that the first channel is in an idle state or an interference state, the first channel being one of multiple channels for communication negotiated between the first Bluetooth device and the second Bluetooth device and used for sending a target data packet; Based on the third Bluetooth controller, the target data packet sent by the first Bluetooth device is received through the first channel at a third moment; or, in the case of a timeout in waiting for receiving the target data packet through the first channel, based on the third Bluetooth controller or the fourth Bluetooth controller, the target data packet sent by the first Bluetooth device is received through the second channel at a fourth moment, wherein the second channel is another channel among the multiple channels for sending target data packets, and the third moment is before the fourth moment.
10. The method according to claim 9, characterized in that The time difference between the third moment and the fourth moment is greater than or equal to a time difference threshold, and the time difference threshold is the sum of a first duration and a second duration, the first duration being: the duration of a receiving synchronization timeout negotiated by the first Bluetooth device and the second Bluetooth device, and the second duration being: the duration of a protection interval negotiated by the first Bluetooth device and the second Bluetooth device.
11. The method according to claim 9, characterized in that The detecting the first channel based on the fourth Bluetooth controller to obtain a detection result includes: sampling the signal energy of the received signal of the first channel based on the fourth Bluetooth controller to obtain sampling information; The sampling information is analyzed to obtain the detection result.
12. The method according to claim 11, characterized in that The sampling of the signal energy of the received signal of the first channel based on the fourth Bluetooth controller to obtain sampling information includes: Based on the fourth Bluetooth controller, sampling the received signal on the first channel in multiple sampling periods to obtain multiple sampling data, where the multiple sampling data correspond to the multiple sampling periods in a one-to-one manner, and the sampling data is used to represent: a maximum received signal energy value detected in the corresponding sampling period, and / or a maximum received signal power strength value detected in the corresponding sampling period; The analyzing the sampling information to obtain the detection result includes: When a proportion of target sampled data among the plurality of sampled data is greater than or equal to a proportion threshold, generating a detection result indicating that the first channel is in an interference state, wherein the target sampled data is: sampled data including a received signal energy value greater than or equal to a first threshold, and / or including a received signal power strength value greater than or equal to a second threshold; When the proportion of the target sampled data in the plurality of sampled data is less than the proportion threshold, a detection result indicating that the first channel is in an idle state is generated.
13. The method according to claim 9, wherein the first Bluetooth device includes a first Bluetooth controller and a second Bluetooth controller, the first Bluetooth controller, the second Bluetooth controller and the third Bluetooth controller are all standard Bluetooth controllers, the fourth Bluetooth controller is a standard Bluetooth controller or a restricted Bluetooth controller, and the cost of the restricted Bluetooth controller is lower than that of the standard Bluetooth controller.
14. The method according to claim 9, wherein the first channel is a channel in a first channel mapping table pre-negotiated by the first Bluetooth controller and the second Bluetooth controller, the second channel is a channel in a second channel mapping table pre-negotiated by the first Bluetooth controller and the second Bluetooth controller, and the first channel mapping table and the second channel mapping table are different channel mapping tables.
15. A wireless audio data transmission device, characterized in that: Applied to a first Bluetooth device, the first Bluetooth device communicates with a second Bluetooth device in continuous equal time intervals, the first Bluetooth device includes a first Bluetooth controller and a second Bluetooth controller, and the apparatus includes: a first detection module, configured to detect a first channel based on the second Bluetooth controller and obtain a detection result, wherein the detection result indicates that the first channel is in an idle state or an interference state, the first channel being one of multiple channels negotiated for communication between the first Bluetooth device and the second Bluetooth device and used for sending a target data packet; a first sending module, configured to send a target data packet to the second Bluetooth device through the first channel at a first moment based on the first Bluetooth controller when the detection result indicates that the first channel is in an idle state; A second sending module is used to send an interaction message to the first Bluetooth controller based on the second Bluetooth controller when the detection result indicates that the first channel is in an interference state, so that the first Bluetooth controller cancels the sending of the target data packet in response to the interaction message, or enables the first Bluetooth controller to send the target data packet to the second Bluetooth device through the second channel at a second moment in response to the interaction message, wherein the second channel is another channel among the multiple channels for sending target data packets, and the first moment is before the second moment.
16. A wireless audio data transmission device, characterized in that: Applied to a second Bluetooth device, the second Bluetooth device communicates with the first Bluetooth device in continuous equal time intervals, the second Bluetooth device includes a third Bluetooth controller and a fourth Bluetooth controller, and the apparatus includes: a second detection module, configured to detect a first channel based on the fourth Bluetooth controller to obtain a detection result, wherein the detection result is used to indicate that the first channel is in an idle state or an interference state, the first channel being one of multiple channels for communication negotiated between the first Bluetooth device and the second Bluetooth device and used for sending a target data packet; A receiving module is configured to receive, based on the third Bluetooth controller, a target data packet sent by the first Bluetooth device through the first channel at a third moment; or, based on the third Bluetooth controller or the fourth Bluetooth controller, to receive, when a timeout occurs while waiting to receive the target data packet through the first channel, the target data packet sent by the first Bluetooth device through the second channel at a fourth moment, wherein the second channel is another channel among the multiple channels for sending the target data packet, and the third moment is before the fourth moment.
17. A wireless audio data transmission system, characterized in that: The wireless audio data transmission system comprises: A first Bluetooth device and a second Bluetooth device, wherein the first Bluetooth device communicates with the second Bluetooth device in consecutive equal time intervals, the first Bluetooth device includes a first Bluetooth controller and a second Bluetooth controller, and the second Bluetooth device includes a third Bluetooth controller and a fourth Bluetooth controller; The first Bluetooth device is configured to: detect a first channel based on the second Bluetooth controller to obtain a detection result, wherein the detection result is used to indicate that the first channel is in an idle state or an interference state, and the first channel is one of multiple channels negotiated for communication between the first Bluetooth device and the second Bluetooth device and is used to send a target data packet; The first Bluetooth device is further configured to: send a target data packet to the second Bluetooth device via the first channel at a first moment based on the first Bluetooth controller when the detection result indicates that the first channel is in an idle state; The first Bluetooth device is also used to: when the detection result indicates that the first channel is in an interference state, send an interaction message to the first Bluetooth controller based on the second Bluetooth controller, so that the first Bluetooth controller cancels the sending of the target data packet in response to the interaction message, or, send the target data packet to the second Bluetooth device through the second channel at a second moment in response to the interaction message, wherein the second channel is another channel among the multiple channels for sending target data packets, and the first moment is before the second moment.
Citation Information
Patent Citations
Electromagnetic interference control method and related device
CN109475005A
Channel conflict avoidance method in Bluetooth mesh network
CN112312584A
Wireless audio transmission method
JP2012134613A
Self-adaptive bluetooth performance adjustment communication terminal and method
US20180199214A1