WO2024021736A1 - 蓝牙多媒体包的传输方法、装置、设备和系统 - Google Patents

蓝牙多媒体包的传输方法、装置、设备和系统 Download PDF

Info

Publication number
WO2024021736A1
WO2024021736A1 PCT/CN2023/092083 CN2023092083W WO2024021736A1 WO 2024021736 A1 WO2024021736 A1 WO 2024021736A1 CN 2023092083 W CN2023092083 W CN 2023092083W WO 2024021736 A1 WO2024021736 A1 WO 2024021736A1
Authority
WO
WIPO (PCT)
Prior art keywords
bluetooth
bluetooth device
devices
bandwidth
transmission
Prior art date
Application number
PCT/CN2023/092083
Other languages
English (en)
French (fr)
Inventor
颜廷管
余庆华
王泷
Original Assignee
哲库科技(上海)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 哲库科技(上海)有限公司 filed Critical 哲库科技(上海)有限公司
Publication of WO2024021736A1 publication Critical patent/WO2024021736A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/40Near-field transmission systems, e.g. inductive or capacitive transmission systems characterised by components specially adapted for near-field transmission
    • H04B5/48Transceivers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Definitions

  • Embodiments of the present application relate to the field of Bluetooth, and in particular to a transmission method, device, equipment and system for Bluetooth multimedia packets.
  • Bluetooth devices have exploded in growth and popularity.
  • TWS Bluetooth headset As an example, it has become very popular and common for users to use TWS Bluetooth headsets in their lives and work. , such as listening to music, making phone calls, playing games, etc.
  • a chain transmission path is used between a mobile phone and a TWS Bluetooth headset to share Bluetooth audio data, and the TWS Bluetooth headset decodes and plays the Bluetooth audio data.
  • the related technology does not consider the inconsistent transmission performance of Bluetooth devices in the chain transmission path.
  • This application provides a Bluetooth multimedia packet transmission method, device, equipment and system, which fully takes into account the inconsistent transmission performance of Bluetooth devices in the chain transmission path.
  • the technical solutions are as follows:
  • a method for transmitting Bluetooth multimedia packets is provided.
  • the method is executed by a master Bluetooth device, and the method includes:
  • the first Bluetooth device in the first chain transmission path sends the Bluetooth multimedia packet to the second Bluetooth device.
  • a Bluetooth multimedia packet transmission method is provided, the method is executed by a Bluetooth device, and the method includes:
  • the first chain transmission path is determined by the main Bluetooth device based on the transmission bandwidth between at least two Bluetooth devices.
  • a transmission control device for Bluetooth multimedia packets includes:
  • a path determination module configured to determine a first chain transmission path based on the transmission bandwidth between at least two Bluetooth devices
  • a Bluetooth control module configured to control the at least two Bluetooth devices to transmit Bluetooth multimedia packets according to the first chain transmission path
  • the first Bluetooth device in the first chain transmission path sends the Bluetooth multimedia packet to the second Bluetooth device.
  • a Bluetooth multimedia packet transmission device includes:
  • a Bluetooth sending module used to control the main Bluetooth device and send a Bluetooth multimedia packet to the second Bluetooth device as the first Bluetooth device in the first chain transmission path;
  • the first chain transmission path is determined by the main Bluetooth device based on the transmission bandwidth between at least two Bluetooth devices.
  • a Bluetooth multimedia packet transmission system including: a main Bluetooth device and at least two Bluetooth devices;
  • the main Bluetooth device is configured to determine a first chain transmission path based on the transmission bandwidth between the at least two Bluetooth devices; and control the at least two Bluetooth devices to transmit Bluetooth multimedia packets according to the first chain transmission path. ; Wherein, the first Bluetooth device in the first chain transmission path sends the Bluetooth multimedia packet to the second Bluetooth device;
  • Any Bluetooth device except the last Bluetooth device among the at least two Bluetooth devices is used to transmit data from the first Bluetooth device in the first chain transmission path to the second Bluetooth device based on the control of the main Bluetooth device.
  • the Bluetooth device sends the Bluetooth multimedia packet.
  • a Bluetooth chip is provided, and the main Bluetooth device installed with the Bluetooth chip is used to execute the above-mentioned Bluetooth multimedia packet transmission method; or, the Bluetooth device installed with the Bluetooth chip is used to execute the above-mentioned Bluetooth multimedia packet. transmission method.
  • a computer-readable storage medium stores a computer program, and the computer program is used to be executed by the main Bluetooth device to implement the above-mentioned Bluetooth multimedia packet transmission method; or, the The computer program is used to be executed by a Bluetooth device to implement the above Bluetooth multimedia packet transmission method.
  • a computer program product includes computer instructions, the computer instructions are stored in a computer-readable storage medium, and the master Bluetooth device obtains the computer instructions from the computer-readable storage medium. Instructions, causing the main Bluetooth device to load and execute to implement the above Bluetooth multimedia packet transmission method; or, the Bluetooth device obtains the computer instructions from the computer-readable storage medium, causing the Bluetooth device to load and execute to implement The above-mentioned transmission method of Bluetooth multimedia packets.
  • Figure 1 shows a schematic diagram of a Bluetooth multimedia packet transmission method provided by an exemplary embodiment
  • Figure 2 shows a schematic diagram of a Bluetooth multimedia packet transmission method provided by an exemplary embodiment
  • Figure 3 shows a schematic diagram of a Bluetooth multimedia packet transmission method provided by an exemplary embodiment
  • Figure 4 shows a schematic diagram of a Bluetooth multimedia packet transmission method provided by an exemplary embodiment
  • Figure 5 shows a structural block diagram of a Bluetooth multimedia packet transmission system provided by an exemplary embodiment
  • Figure 6 shows a flow chart of a Bluetooth multimedia packet transmission method provided by an exemplary embodiment
  • Figure 7 shows a flow chart of a Bluetooth multimedia packet transmission method provided by an exemplary embodiment
  • Figure 8 shows a schematic diagram of a Bluetooth multimedia packet transmission system provided by an exemplary embodiment
  • Figure 9 shows a schematic diagram of a Bluetooth multimedia packet transmission system provided by an exemplary embodiment
  • Figure 10 shows a scenario diagram of a Bluetooth multimedia packet transmission method provided by an exemplary embodiment
  • Figure 11 shows a structural block diagram of a transmission control device for Bluetooth multimedia packets provided by an exemplary embodiment
  • Figure 12 shows a structural block diagram of a Bluetooth multimedia packet transmission device provided by an exemplary embodiment
  • Figure 13 shows a structural block diagram of a main Bluetooth device provided by an exemplary embodiment
  • Figure 14 shows a structural block diagram of a Bluetooth device provided by an exemplary embodiment.
  • first, second, etc. may be used in this application to describe various information, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other.
  • first parameter may also be called a second parameter, and similarly, the second parameter may also be called a first parameter.
  • word “if” as used herein may be interpreted as "when” or “when” or “in response to determining.”
  • a technical solution can be implemented in which a master Bluetooth device can share and play the same Bluetooth multimedia package to multiple (slave) Bluetooth devices.
  • a mobile phone can share the same song to multiple Bluetooth headsets for playback via Bluetooth connection.
  • FIG. 1 shows an exemplary solution in which a mobile phone 10 transmits the same Bluetooth audio packet to four Bluetooth headsets.
  • the Bluetooth transmission bandwidth is W.
  • the mobile phone 10 uses the bandwidth W1 to send a Bluetooth audio packet to the first Bluetooth headset 21; uses the bandwidth W2 to send a Bluetooth audio packet to the second Bluetooth headset 22; uses the bandwidth W3 to send a Bluetooth audio packet to the third Bluetooth headset 23.
  • FIG. 2 shows a schematic diagram of Bluetooth audio packet transmission and playback in the above solution.
  • the mobile phone 10 decodes the audio source into pulse code modulation (PCM) data, then performs Bluetooth audio encoding, and finally transmits it wirelessly through Bluetooth by the Bluetooth sending module , send the Bluetooth audio encoding to the Bluetooth headset.
  • the Bluetooth headset 21 receives the Bluetooth audio code through the Bluetooth receiving module and decodes it into PCM data.
  • the PCM data undergoes digital-to-analog conversion through a digital-to-analog converter (DAC) and power amplification by a power amplifier (Power Amplifier, PA) to generate Analog data is finally played back by the playback unit.
  • DAC digital-to-analog converter
  • PA Power Amplifier
  • High-quality songs such as lossless music and high-resolution audio (Hi-Res) have higher requirements for Bluetooth bandwidth, and the above exemplary solution cannot meet the transmission needs.
  • the PCM rate reaches 10Mbps.
  • the bandwidth requirement for Bluetooth is 7Mbps. 1/4 of the Bluetooth bandwidth is used to transmit high-quality audio, which is difficult to achieve.
  • the bandwidth occupied by each Bluetooth headset becomes narrower, which limits the upper limit of the number of Bluetooth headsets that can be shared by the same mobile phone 10 .
  • FIG. 3 shows an exemplary solution in which a mobile phone 10 transmits the same Bluetooth audio packet to four pairs of Bluetooth headsets.
  • the mobile phone 10 uses the bandwidth W/2 to send the left channel Bluetooth audio packet to the left channel earphone in the first pair of Bluetooth earphones 21, and uses the bandwidth W/2 to send the right channel to the right channel earphone in the first pair of Bluetooth earphones 21.
  • Bluetooth audio package At the same time, the first pair of Bluetooth headphones 21 also plays the left channel blue Bluetooth audio package and right channel Bluetooth audio package.
  • the left channel earphone in the first pair of Bluetooth earphones 21 uses the bandwidth W/2 to send the left channel Bluetooth audio packet to the left channel earphone in the second pair of Bluetooth earphones 22 , and the right channel earphone in the first pair of Bluetooth earphones 21
  • the right channel Bluetooth audio packet is sent to the right channel earphone in the second pair of Bluetooth earphones 22 using the bandwidth W/2.
  • the second pair of Bluetooth headphones 22 also plays the left channel Bluetooth audio packet and the right channel Bluetooth audio packet.
  • the left channel earphone in the second pair of Bluetooth earphones 22 uses the bandwidth W/2 to send the left channel Bluetooth audio packet to the left channel earphone in the third pair of Bluetooth earphones 23 , and the right channel earphone in the second pair of Bluetooth earphones 22
  • the bandwidth W/2 is used to send the right channel Bluetooth audio packet to the right channel earphone in the third pair of Bluetooth earphones 23 .
  • the third pair of Bluetooth headphones 23 also plays the left channel Bluetooth audio package and the right channel Bluetooth audio package.
  • the left channel earphone in the third pair of Bluetooth earphones 23 uses the bandwidth W/2 to send the left channel Bluetooth audio packet to the left channel earphone in the fourth pair of Bluetooth earphones 24 , and the right channel earphone in the third pair of Bluetooth earphones 23
  • the right channel Bluetooth audio packet is sent to the right channel earphone in the fourth pair of Bluetooth earphones 24 using the bandwidth W/2.
  • the fourth pair of Bluetooth headphones 24 also plays the left channel Bluetooth audio package and the right channel Bluetooth audio package.
  • FIG 4 shows a schematic diagram of the transmission and playback of Bluetooth audio packets in the above solution.
  • the mobile phone 10 performs Bluetooth audio encoding on the PCM data provided by the audio source according to the left and right channel data, respectively, to obtain the left channel Bluetooth audio packet and the right channel Bluetooth audio packet.
  • the Bluetooth sending component 11 in the mobile phone 10 sends the left channel Bluetooth audio packet and the right channel Bluetooth audio packet to the Bluetooth device.
  • the left channel Bluetooth headset 31 of the Bluetooth device includes: left channel Bluetooth receiving component 32, left channel PCM (decoding component) 33, left channel DAC34 and left channel PA35, left channel playback component 36, left channel Bluetooth Send part 37.
  • the left channel Bluetooth receiving component 32 transmits the left channel Bluetooth audio packet to the left channel PCM 33, and the left channel PCM 33 decodes the left channel Bluetooth audio packet into left channel PCM data.
  • the left channel DAC34 converts the left channel PCM data into a left channel analog signal; the left channel PA35 amplifies the left channel analog signal and outputs it to the left channel playback component 36 for playback.
  • the left channel Bluetooth sending component 37 also sends the left channel Bluetooth audio packet to the next left channel Bluetooth headset.
  • the right channel Bluetooth headset 41 of the Bluetooth device includes: right channel Bluetooth receiving component 42, right channel PCM (decoding component) 43, right channel DAC 44 and right channel PA 45, right channel playback component 46, right channel Bluetooth Send component 47.
  • the right channel Bluetooth receiving component 42 transmits the right channel Bluetooth audio packet to the right channel PCM 43, and the right channel PCM 43 decodes the right channel Bluetooth audio packet into right channel PCM data.
  • the right channel DAC44 converts the right channel PCM data into a right channel analog signal;
  • the right channel PA45 amplifies the right channel analog signal and outputs it to the right channel playback component 46 for playback.
  • the right channel Bluetooth sending component 47 also sends the right channel Bluetooth audio packet to the next right channel Bluetooth headset.
  • the performance of each Bluetooth headset in the above-mentioned related solutions is equivalent, and the inconsistent transmission performance of the Bluetooth headset is not taken into account.
  • the embodiments of the present application provide a solution that fully takes into account the inconsistent transmission performance of Bluetooth devices.
  • FIG. 5 shows a structural block diagram of a Bluetooth multimedia packet transmission system provided by an exemplary embodiment of the present application.
  • the transmission system includes: a master Bluetooth device and at least two (slave) Bluetooth devices.
  • the master Bluetooth device is represented as the master Bluetooth device 10, which is the source device that provides Bluetooth multimedia packages.
  • Device types of the main Bluetooth device 10 include mobile phones, tablets, televisions, desktops, game consoles, virtual reality (Virtual Reality, VR) devices, augmented reality (Augmented Reality, AR) devices, etc.
  • At least two (slave) Bluetooth devices are represented in sequence as Bluetooth device 21, Bluetooth device 22...Bluetooth device 2n.
  • the at least two Bluetooth devices mentioned above share the Bluetooth multimedia packets from the main Bluetooth device 10 using a chain transmission path, and each Bluetooth device in the chain transmission path is connected in sequence.
  • the master Bluetooth device determines the first chain transmission path based on the transmission bandwidth between at least two Bluetooth devices; controls the at least two Bluetooth devices to transmit the Bluetooth multimedia packet according to the first chain transmission path; wherein, in the first chain transmission path The first Bluetooth device sends a Bluetooth multimedia packet to the second Bluetooth device.
  • the first chain transmission path includes multiple Bluetooth devices
  • the first Bluetooth device is the first Bluetooth device among any two adjacent Bluetooth devices in the first chain transmission path
  • the second Bluetooth device is the first Bluetooth device.
  • the later Bluetooth device among any two adjacent Bluetooth devices in a chain transmission path.
  • the Bluetooth device can be used as the first Bluetooth device or as the second Bluetooth device.
  • the transmission bandwidth between Bluetooth device 21 and Bluetooth device 22 is transmission bandwidth 1
  • the transmission bandwidth between Bluetooth device 22 and Bluetooth device 23 is transmission bandwidth 2
  • Bluetooth device 2n-1 and Bluetooth device The transmission bandwidth between 2n is the transmission bandwidth n.
  • the main Bluetooth device 10 can determine the first chain transmission path based on the transmission bandwidth 1, the transmission bandwidth 2 and the transmission bandwidth n. Assume that the main Bluetooth device 10 sends a Bluetooth multimedia packet to the Bluetooth device 21, and the Bluetooth device 21 sends a Bluetooth device to the Bluetooth device 22. Multimedia packet, Bluetooth device 22 sends a Bluetooth multimedia packet to Bluetooth device 23, and so on, Bluetooth device 2n-1 sends a Bluetooth multimedia packet to Bluetooth device 2n, then each Bluetooth device in the first chain transmission path is: Bluetooth device 21. Bluetooth device 22 to Bluetooth device 2n.
  • the Bluetooth device 21 is adjacent to the Bluetooth device 22, and the Bluetooth device 22 is connected to the Bluetooth device 23.
  • Bluetooth device 2n-1 is adjacent to Bluetooth device 2n.
  • Bluetooth device 21 and Bluetooth device 22 Bluetooth device 21 is the first Bluetooth device
  • Bluetooth device 22 is the second Bluetooth device.
  • Bluetooth device 22 and Bluetooth device 23 Bluetooth device 22 is the first Bluetooth device
  • Bluetooth device 23 is the second Bluetooth device, and by analogy, for the Bluetooth device 2n-1 and the Bluetooth device 2n, the Bluetooth device 2n-1 is the first Bluetooth device, and the Bluetooth device 2n is the second Bluetooth device.
  • the main Bluetooth device 10 sends a Bluetooth multimedia packet to the Bluetooth device 21. Then, in the first chain transmission path, the Bluetooth device 21 sends a Bluetooth multimedia packet to the Bluetooth device 22, and the Bluetooth device 22 sends a Bluetooth multimedia packet to the Bluetooth device 23. packet, and so on, the Bluetooth device 2n-1 sends a Bluetooth multimedia packet to the Bluetooth device 2n.
  • Any Bluetooth device other than the last Bluetooth device among at least two Bluetooth devices is used for control based on the main Bluetooth device and serves as the first Bluetooth device in the first chain transmission path to send a Bluetooth multimedia packet to the second Bluetooth device.
  • any Bluetooth device except the last Bluetooth device 2n among the at least two Bluetooth devices is used for control based on the main Bluetooth device 10 as the first Bluetooth device in the first chain transmission path to the second Bluetooth device.
  • a Bluetooth device sends a Bluetooth multimedia packet.
  • the Bluetooth device 21 as the first Bluetooth device in the first chain transmission path, sends a Bluetooth multimedia packet to the second Bluetooth device, that is, the Bluetooth device 22.
  • the Bluetooth device 22 is based on the main Bluetooth device. 10 as the first Bluetooth device in the first chain transmission path, sends a Bluetooth multimedia packet to the second Bluetooth device, Bluetooth device 23, and so on, the Bluetooth device 2n-1 is based on the control of the main Bluetooth device 10, as The first Bluetooth device in the first chain transmission path sends a Bluetooth multimedia packet to the second Bluetooth device, that is, the Bluetooth device 2n.
  • the master Bluetooth device determines a second chain transmission path based on the changed transmission bandwidth, and the second chain transmission path is different from the first chain transmission path; Control at least two Bluetooth devices to transmit Bluetooth multimedia packets according to the second chain transmission path; wherein the first Bluetooth device in the second chain transmission path sends the Bluetooth multimedia packet to the second Bluetooth device.
  • the above condition refers to the condition that the first chain transmission path needs to be adjusted.
  • the condition can be set to an increase or decrease in the transmission bandwidth that is greater than or equal to a preset amount, or set to an increase or decrease in the transmission bandwidth.
  • the increase or decrease amplitude is greater than or equal to the preset amplitude, etc.
  • Any Bluetooth device other than the last Bluetooth device among at least two Bluetooth devices is used for control based on the main Bluetooth device, and serves as the first Bluetooth device in the second chain transmission path to send a Bluetooth multimedia packet to the second Bluetooth device. .
  • the above-mentioned at least two Bluetooth devices may be Bluetooth devices of the same type, Bluetooth devices of different types, or Bluetooth devices of different types.
  • the transmission performance of the at least two Bluetooth devices mentioned above may be the same, or different, or not exactly the same. Transmission performance can refer to transmission bandwidth, transmission rate, power consumption, delay, etc.
  • the above-mentioned chain transmission path can be understood as: chain path, chain sharing path and other synonyms.
  • the above Bluetooth multimedia package can be understood as: Bluetooth frame, Bluetooth multimedia frame, Bluetooth audio frame, Bluetooth video frame, Bluetooth VR frame, Bluetooth AR frame, Bluetooth game control frame, Bluetooth audio package, Bluetooth video package, Bluetooth VR package, Bluetooth VR package, Bluetooth AR package, Bluetooth game control package, etc.
  • FIG. 6 shows a flowchart of a Bluetooth multimedia packet transmission method provided by an exemplary embodiment of the present application. The method is explained with the method being executed by the main Bluetooth device shown in FIG. 5 . The method includes:
  • Step 620 Determine a first chain transmission path based on the transmission bandwidth between at least two Bluetooth devices.
  • Transmission bandwidth refers to the bandwidth occupied or used when transmitting Bluetooth multimedia packets between Bluetooth devices.
  • the transmission bandwidth may include a transmission bandwidth between the main Bluetooth device and each of the at least two Bluetooth devices, and a transmission bandwidth between any two of the at least two Bluetooth devices.
  • the main Bluetooth device and at least two Bluetooth devices transmit Bluetooth multimedia packets through a chain transmission path.
  • the chain transmission path determined by the master Bluetooth device based on the transmission bandwidth between at least two Bluetooth devices is called a first chain transmission path.
  • the Bluetooth device can receive the Bluetooth multimedia packet sent by the main Bluetooth device on the chain transmission path, or the Bluetooth device can receive the Bluetooth multimedia packet sent by the previous Bluetooth device located before the Bluetooth device on the chain transmission path. .
  • Bluetooth device 1 when at least two Bluetooth devices are two Bluetooth devices, such as Bluetooth device 1 and Bluetooth device 2, there are the following two situations for the transmission of Bluetooth multimedia packets:
  • the main Bluetooth device can first send the Bluetooth multimedia packet to Bluetooth device 1, and then Bluetooth device 1 sends the Bluetooth multimedia packet to Bluetooth device 2; or, the main Bluetooth device can first send the Bluetooth multimedia packet to Bluetooth device 2, and then Bluetooth device 2 Send the Bluetooth multimedia packet to Bluetooth device 1.
  • the transmission bandwidth between the above-mentioned at least two Bluetooth devices may include the transmission bandwidth between the main Bluetooth device and each Bluetooth device, and the transmission bandwidth between any two Bluetooth devices in the at least two Bluetooth devices, specifically including: the main Bluetooth device The transmission bandwidth 1 between the device and Bluetooth device 1, the transmission bandwidth 2 between the main Bluetooth device and Bluetooth device 2, and the transmission bandwidth 12 between Bluetooth device 1 and Bluetooth device 2. Transmission bandwidth 1, transmission bandwidth 2 and transmission bandwidth 12 may be used to indicate the positions of the main Bluetooth device, Bluetooth device 1 and Bluetooth device 2 in the first chain transmission path. Thus, the first chain transmission path is determined.
  • Bluetooth device 1 when at least two Bluetooth devices are three Bluetooth devices, such as Bluetooth device 1, Bluetooth device 2, and Bluetooth device 3, there are the following six situations for the transmission of Bluetooth multimedia packets:
  • the main Bluetooth device can first send the Bluetooth multimedia packet to Bluetooth device 1, Bluetooth device 1 then sends the Bluetooth multimedia packet to Bluetooth device 2, and then Bluetooth device 2 sends the Bluetooth multimedia packet to Bluetooth device 3; or, the main Bluetooth device can first Send the Bluetooth multimedia packet to Bluetooth device 1, Bluetooth device 1 then sends the Bluetooth multimedia packet to Bluetooth device 3, Bluetooth device 3 then sends the Bluetooth multimedia packet to Bluetooth device 2; or, the main Bluetooth device can send the Bluetooth multimedia packet first To Bluetooth device 2, Bluetooth device 2 then sends the Bluetooth multimedia packet to Bluetooth device 1, and Bluetooth device 1 then sends the Bluetooth multimedia packet to Bluetooth device 3; or, the main Bluetooth device can first send the Bluetooth multimedia packet to Bluetooth device 2, Bluetooth device 2 then sends the Bluetooth multimedia packet to Bluetooth device 3, and Bluetooth device 3 then sends the Bluetooth multimedia packet to Bluetooth device 1; or, the master Bluetooth device can first send the Bluetooth multimedia packet to Bluetooth device 3, and then Bluetooth device 3 sends the Bluetooth multimedia packet to Bluetooth device 1.
  • the Bluetooth multimedia packet is sent to Bluetooth device 1, and Bluetooth device 1 then sends the Bluetooth multimedia packet to Bluetooth device 2; or, the main Bluetooth device can first send the Bluetooth multimedia packet to Bluetooth device 3, and then Bluetooth device 3 sends the Bluetooth multimedia packet to Bluetooth device 2, Bluetooth device 2 then sends the Bluetooth multimedia packet to Bluetooth device 1.
  • the transmission bandwidth between the above-mentioned at least two Bluetooth devices may include the transmission bandwidth between the main Bluetooth device and each Bluetooth device, and the transmission bandwidth between any two Bluetooth devices in the at least two Bluetooth devices, specifically including: the main Bluetooth device The transmission bandwidth between the device and Bluetooth device 1, the transmission bandwidth between the main Bluetooth device and Bluetooth device 2, the transmission bandwidth between the main Bluetooth device and Bluetooth device 3, the transmission bandwidth between Bluetooth device 1 and Bluetooth device 2 Transmission bandwidth 12, transmission bandwidth 13 between Bluetooth device 1 and Bluetooth device 3, transmission bandwidth 23 between Bluetooth device 2 and Bluetooth device 3.
  • Transmission bandwidth 1, transmission bandwidth 2 and transmission bandwidth 3 can be used to indicate which of the next Bluetooth device in the first chain transmission path of the main Bluetooth device is Bluetooth device 1, Bluetooth device 2 or Bluetooth device 3.
  • the transmission bandwidth 12. Transmission bandwidth 13 and transmission bandwidth 23 are used to indicate the positions of Bluetooth device 1, Bluetooth device 2 and Bluetooth device 3 in the first chain transmission path. Thus, the first chain transmission path is determined.
  • Step 640 Control at least two Bluetooth devices to transmit Bluetooth multimedia packets according to the first chain transmission path; wherein the first Bluetooth device in the first chain transmission path sends the Bluetooth multimedia packet to the second Bluetooth device.
  • the master Bluetooth device can control at least two Bluetooth devices to transmit the Bluetooth multimedia packet according to the first chain transmission path.
  • the first Bluetooth device in the first chain transmission path sends the Bluetooth multimedia packet to the second Bluetooth device.
  • the first chain transmission path includes multiple Bluetooth devices
  • the first Bluetooth device is the first Bluetooth device among any two adjacent Bluetooth devices in the first chain transmission path
  • the second Bluetooth device is the first Bluetooth device.
  • the later Bluetooth device among any two adjacent Bluetooth devices in a chain transmission path.
  • the Bluetooth device can be used as the first Bluetooth device or as the second Bluetooth device.
  • the Bluetooth device can receive the Bluetooth multimedia packet sent by the master Bluetooth device, or the Bluetooth device can receive the Bluetooth device located before the Bluetooth device in the first chain transmission path. Bluetooth multimedia packets sent by other Bluetooth devices.
  • unicast communication is performed between the first Bluetooth device and the second Bluetooth device based on Bluetooth technology.
  • the above-mentioned Bluetooth multimedia packets also support a retransmission mechanism during transmission to ensure transmission quality.
  • the master Bluetooth device may not perform the step of controlling the Bluetooth device to continue transmitting the Bluetooth multimedia packet.
  • the method provided by the embodiments of the present application can realize the transmission of the same Bluetooth multimedia package between multiple Bluetooth devices through a chain transmission path, thereby realizing the sharing of Bluetooth multimedia packages.
  • the transmission bandwidth utilization can be maximized as much as possible. It ensures that the total bandwidth used by multiple Bluetooth devices is maximized, the transmission quality of Bluetooth multimedia packets in the chain transmission path is ensured, and the total usage time of multiple Bluetooth devices is further ensured to be the longest.
  • the first bandwidth in the first chain transmission path is greater than or equal to the second bandwidth
  • the first bandwidth is the transmission bandwidth between the first Bluetooth device and the previous Bluetooth device.
  • the previous Bluetooth device is the main Bluetooth device or other Bluetooth device located before the first Bluetooth device in the first chain transmission path; the second bandwidth is the transmission bandwidth between the first Bluetooth device and the second Bluetooth device.
  • the method also includes:
  • the transmission bandwidth is the transmission bandwidth between each Bluetooth device and other Bluetooth devices.
  • the transmission bandwidth between each Bluetooth device and other Bluetooth devices is determined by each Bluetooth device based on at least one of the following methods:
  • obtaining the transmission bandwidth between the main Bluetooth device and at least two Bluetooth devices includes at least one of the following steps:
  • the transmission bandwidth between the main Bluetooth device and at least two Bluetooth devices is determined.
  • the method also includes:
  • the first Bluetooth device in the second chain transmission path sends the Bluetooth multimedia packet to the second Bluetooth device.
  • the first bandwidth in the second chain transmission path is greater than or equal to the second bandwidth
  • the first bandwidth is the transmission bandwidth between the first Bluetooth device and the previous Bluetooth device.
  • the previous Bluetooth device is the main Bluetooth device or other Bluetooth device located before the first Bluetooth device in the second chain transmission path; the second bandwidth is the transmission bandwidth between the first Bluetooth device and the second Bluetooth device.
  • each of the at least two Bluetooth devices includes at least two Bluetooth components
  • the transmission bandwidth between at least two Bluetooth devices refers to the sum of the sub-transmission bandwidths of each Bluetooth component in at least two Bluetooth components
  • the transmission bandwidth between at least two Bluetooth devices refers to the smallest sub-transmission bandwidth among the sub-transmission bandwidths of each Bluetooth component in the at least two Bluetooth components.
  • the method also includes:
  • the first bandwidth in the first chain transmission path is greater than or equal to the second bandwidth; the first bandwidth is the transmission bandwidth between the first Bluetooth device and the previous Bluetooth device, and the previous Bluetooth device It is the main Bluetooth device or other Bluetooth device located before the first Bluetooth device in the first chain transmission path; the second bandwidth is the transmission bandwidth between the first Bluetooth device and the second Bluetooth device.
  • the first chain transmission path is determined based on the transmission bandwidths between at least two Bluetooth devices in descending order. Further, according to the position of the Bluetooth device in the first chain transmission path, when the Bluetooth device serves as the first Bluetooth device, the transmission bandwidth between the Bluetooth device and the previous Bluetooth device can be used as the first bandwidth. When the Bluetooth device serves as the first Bluetooth device, When the Bluetooth device serves as the first Bluetooth device, When the second Bluetooth device is used, the transmission bandwidth between the Bluetooth device and the previous Bluetooth device (that is, the first Bluetooth device) can also be used as the second bandwidth, and the details need to be determined according to the actual situation.
  • Bluetooth device 1 when at least two Bluetooth devices are 2 Bluetooth devices, such as Bluetooth device 1 and Bluetooth device 2, it is assumed that the main Bluetooth device first sends a Bluetooth multimedia packet to Bluetooth device 1, and then Bluetooth device 1 sends a Bluetooth multimedia packet to Bluetooth device 2, that is, the order of each Bluetooth device in the first chain transmission path is: Bluetooth device 1, Bluetooth device 2. Then Bluetooth device 1 is the first Bluetooth device, Bluetooth device 2 is the second Bluetooth device, then the transmission bandwidth 1 between the main Bluetooth device and Bluetooth device 1 is the first bandwidth, and the transmission bandwidth between Bluetooth device 1 and Bluetooth device 2 12 is the second bandwidth, and the first bandwidth is greater than or equal to the first bandwidth.
  • Bluetooth device 1 when at least two Bluetooth devices are three Bluetooth devices, such as Bluetooth device 1, Bluetooth device 2 and Bluetooth device 3, it is assumed that the main Bluetooth device first sends the Bluetooth multimedia packet to Bluetooth device 1, and then Bluetooth device 1 sends the Bluetooth multimedia packet to Bluetooth device 1.
  • the multimedia packet is sent to Bluetooth device 2, and Bluetooth device 2 then sends the Bluetooth multimedia packet to Bluetooth device 3. That is, the order of each Bluetooth device in the first chain transmission path is: Bluetooth device 1, Bluetooth device 2, and Bluetooth device 3.
  • Bluetooth device 1 is the first Bluetooth device
  • Bluetooth device 2 is the second Bluetooth device
  • Bluetooth device 2 is the first Bluetooth device
  • Bluetooth device 3 Second Bluetooth device.
  • the transmission bandwidth 1 between the main Bluetooth device and Bluetooth device 1 is greater than or equal to the transmission bandwidth 12 between Bluetooth device 1 and Bluetooth device 2, and is greater than or equal to the transmission bandwidth 23 between Bluetooth device 2 and Bluetooth device 3.
  • the transmission bandwidth 1 and the transmission bandwidth 12 is the first bandwidth
  • the transmission bandwidth 12 is the second bandwidth
  • the transmission bandwidth 12 is the first bandwidth
  • the transmission bandwidth 13 is the second bandwidth.
  • the first bandwidth in the first chain transmission path is made greater than or equal to the second bandwidth.
  • the first chain transmission can be determined according to the bandwidth capability of the Bluetooth device. path to ensure the transmission quality of Bluetooth multimedia packets in the chain transmission path.
  • the master Bluetooth device needs to obtain relevant data of all transmission bandwidths of the involved Bluetooth devices before it can determine the first chain transmission path based on the transmission bandwidth between at least two Bluetooth devices.
  • the method further includes: obtaining the transmission bandwidth between any two Bluetooth devices among the at least two Bluetooth devices, and obtaining the transmission bandwidth between the main Bluetooth device and the at least two Bluetooth devices.
  • the transmission bandwidth may include a transmission bandwidth between the main Bluetooth device and each of the at least two Bluetooth devices, so as to and the transmission bandwidth between any two Bluetooth devices among at least two Bluetooth devices. That is, the transmission bandwidth between any two Bluetooth devices among at least two Bluetooth devices can be obtained, and the transmission bandwidth between the main Bluetooth device and at least two Bluetooth devices can be obtained.
  • the first chain transmission path is determined.
  • obtaining the transmission bandwidth between any two Bluetooth devices among the at least two Bluetooth devices includes: receiving the transmission bandwidth reported by each Bluetooth device among the at least two Bluetooth devices, where the transmission bandwidth is Transmission bandwidth to and from other Bluetooth devices.
  • the transmission bandwidth obtained by the master Bluetooth device may be reported by each of the at least two Bluetooth devices.
  • the reporting timing reported by each Bluetooth device can be periodic reporting, for example, periodic reporting according to a predetermined time period. It can also be an event-triggered report. For example, the report is triggered when a new Bluetooth device joins or a Bluetooth device exits during the Bluetooth communication process. Among them, the Bluetooth device exit can be caused by the user actively exiting by operating the Bluetooth device, or the Bluetooth device exiting due to insufficient power, etc.
  • the transmission bandwidth reported by each Bluetooth device of at least two Bluetooth devices can be received. The transmission bandwidth is the transmission bandwidth between each Bluetooth device and other Bluetooth devices.
  • the time when the Bluetooth device reports the transmission bandwidth to the main Bluetooth device may be when the Bluetooth device and the main Bluetooth device establish a Bluetooth communication connection this time and perform Any time after at least one Bluetooth data transmission; or, it can also be the time when the Bluetooth device and the main Bluetooth device have established a Bluetooth communication connection this time and no Bluetooth data transmission is performed.
  • the above-mentioned failure to perform Bluetooth data transmission may specifically include at least one of the following situations: all other Bluetooth devices among the at least two Bluetooth devices and the main Bluetooth device do not perform Bluetooth data transmission; or the Bluetooth device does not perform Bluetooth data transmission. But at least one other Bluetooth device among at least two Bluetooth devices has performed at least one Bluetooth data transmission with the main Bluetooth device.
  • the above-mentioned Bluetooth data may include at least one of a Bluetooth multimedia packet and a Bluetooth message
  • the Bluetooth message may be at least one of a Bluetooth broadcast message and a Bluetooth data message.
  • the speed of obtaining multiple transmission bandwidths can be improved, and the efficiency of determining the first chain transmission path can be improved.
  • the transmission bandwidth between each Bluetooth device and other Bluetooth devices is determined by each Bluetooth device based on at least one of the following methods:
  • the initial negotiation process refers to the process of handshake negotiation through the Bluetooth transmission protocol when any two Bluetooth devices among at least two Bluetooth devices establish a Bluetooth communication connection this time.
  • the initial negotiation process may carry bandwidth capability information of the two Bluetooth devices performing handshake negotiations.
  • the bandwidth capability information may be the maximum transmission bandwidth supported by the Bluetooth device, or the sub-transmission bandwidth of each Bluetooth component of the Bluetooth device.
  • Each Bluetooth device can determine the transmission bandwidth between each Bluetooth device and other Bluetooth devices based on the bandwidth capability information of other Bluetooth devices during the initial negotiation process.
  • the Bluetooth transmission protocol may be Bluetooth control phone protocol (Hands-free Profile, HFP), Bluetooth audio transmission protocol (Advanced Audio Distribution Profile, A2DP), Audio/Video Remote Control Profile (AVRCP) ) and other protocols.
  • HFP Bluetooth control phone protocol
  • A2DP Advanced Audio Distribution Profile
  • AVRCP Audio/Video Remote Control Profile
  • the Bluetooth transmission protocol may also be a private communication protocol, that is, a communication protocol followed for Bluetooth communication only between the target Bluetooth devices among the at least two Bluetooth devices, but not among all the Bluetooth devices among the at least two Bluetooth devices. Communication protocols that are followed by all devices. For example, target Bluetooth devices from the same manufacturer follow the same private communication protocol.
  • the Bluetooth message may be at least one of a Bluetooth broadcast message and a Bluetooth data message.
  • the Bluetooth data message can be understood by two Bluetooth devices that have established a Bluetooth communication connection, and the Bluetooth broadcast message can be broadcast to multiple Bluetooth devices or only to a specific Bluetooth device.
  • the signal strength of Bluetooth packets between two Bluetooth devices is positively related to the transmission bandwidth between the two Bluetooth devices.
  • the stronger the signal strength of the Bluetooth message the greater the transmission bandwidth between the two corresponding Bluetooth devices. Therefore, each Bluetooth device can determine the transmission bandwidth between each Bluetooth device and other Bluetooth devices based on the signal strength of Bluetooth messages from other Bluetooth devices.
  • the signal strength of each Bluetooth message can be directly compared, and the size of the transmission bandwidth can be characterized by the size of the signal strength, or the signal strength threshold of the Bluetooth message can also be set according to actual technical needs.
  • the signal strength threshold When the Bluetooth message If the signal strength is greater than or equal to the signal strength threshold, the signal strength of the Bluetooth message can be considered strong. When the signal strength of the Bluetooth message is less than the signal strength threshold, the signal strength of the Bluetooth message can be considered weak. According to the relative signal strength Strength represents the size of the transmission bandwidth.
  • the packet sending success rate or packet loss rate during the transmission process is used to characterize whether the Bluetooth multimedia packet is successfully sent from the first Bluetooth device to the second Bluetooth device. It should be noted that packet sending and packet loss here may refer to sending Bluetooth multimedia packets, or may also refer to sending other specific Bluetooth data packets, which are not limited here.
  • the packet sending success rate between two Bluetooth devices during the transmission process is positively related to the transmission bandwidth between the two Bluetooth devices, and the packet loss rate between the two Bluetooth devices during the transmission process is directly related to the packet loss rate between the two Bluetooth devices.
  • the transmission bandwidth is negatively related. The greater the success rate of packet transmission between two Bluetooth devices, or the smaller the packet loss rate, the greater the transmission bandwidth between the two Bluetooth devices. Therefore, each first Bluetooth device can determine the transmission bandwidth between the first Bluetooth device and the second Bluetooth device based on the packet sending success rate or packet loss rate during the transmission process.
  • the packet sending success rate or packet loss rate during the transmission process can be directly compared to characterize the size of the transmission bandwidth, or the ratio of the packet sending success rate or packet loss rate during the transmission process to the transmission bandwidth can also be preset.
  • the correspondence between the values determines the value of the corresponding transmission bandwidth based on the packet sending success rate or packet loss rate.
  • each Bluetooth device can obtain the transmission bandwidth between each Bluetooth device and other Bluetooth devices through multiple methods, which improves the efficiency of determining the transmission bandwidth and the feasibility of the determination method.
  • the master Bluetooth device obtains the transmission bandwidth between the master Bluetooth device and at least two Bluetooth devices, including at least one of the following steps:
  • the transmission bandwidth between the main Bluetooth device and at least two Bluetooth devices is determined.
  • the initial negotiation process refers to the process of handshake negotiation through the Bluetooth transmission protocol when any Bluetooth device among at least two Bluetooth devices establishes a Bluetooth communication connection with the main Bluetooth device this time.
  • the initial negotiation process may carry bandwidth capability information of the main Bluetooth device performing handshake negotiation and any Bluetooth device among at least two Bluetooth devices.
  • the bandwidth capability information may be the maximum transmission bandwidth supported by the Bluetooth device, or it may be each of the Bluetooth devices.
  • the master Bluetooth device may determine the transmission bandwidth between the master Bluetooth device and each of the at least two Bluetooth devices based on the bandwidth capability information of the at least two Bluetooth devices during the initial negotiation process.
  • the Bluetooth transmission protocol may be Bluetooth control phone protocol (Hands-free Profile, HFP), Bluetooth audio transmission protocol (Advanced Audio Distribution Profile, A2DP), Audio/Video Remote Control Profile (AVRCP) ) and other protocols.
  • HFP Bluetooth control phone protocol
  • A2DP Advanced Audio Distribution Profile
  • AVRCP Audio/Video Remote Control Profile
  • the Bluetooth transmission protocol may also be a private communication protocol, that is, a communication protocol followed for Bluetooth communication only between the main Bluetooth device and the target Bluetooth device among the at least two Bluetooth devices, rather than between the main Bluetooth device and the at least two Bluetooth devices.
  • a communication protocol that is followed by all Bluetooth devices in the Bluetooth device For example, the main Bluetooth device and the target Bluetooth device of the same manufacturer follow the same private communication protocol.
  • the Bluetooth message may be at least one of a Bluetooth broadcast message and a Bluetooth data message.
  • the Bluetooth data message can be understood by the main Bluetooth device and the Bluetooth device that have established a Bluetooth communication connection, and the Bluetooth broadcast message can be broadcast to multiple Bluetooth devices or only to a specific Bluetooth device.
  • the signal strength of the Bluetooth packets between the main Bluetooth device and the Bluetooth device is positively related to the transmission bandwidth between the main Bluetooth device and the Bluetooth device.
  • the stronger the signal strength of the Bluetooth message the greater the transmission bandwidth between the corresponding main Bluetooth device and the Bluetooth device. Therefore, the master Bluetooth device can determine the transmission bandwidth between the master Bluetooth device and each of the at least two Bluetooth devices based on the signal strength of the Bluetooth messages from the at least two Bluetooth devices.
  • the signal strength of each Bluetooth message can be directly compared, and the size of the transmission bandwidth can be characterized by the size of the signal strength, or the signal strength threshold of the Bluetooth message can also be set according to actual technical needs.
  • the signal strength threshold When the Bluetooth message If the signal strength is greater than or equal to the signal strength threshold, the signal strength of the Bluetooth message can be considered strong. When the signal strength of the Bluetooth message is less than the signal strength threshold, the signal strength of the Bluetooth message can be considered weak. According to the relative signal strength Strength represents the size of the transmission bandwidth.
  • the packet sending success rate or packet loss rate during the transmission process is used to characterize whether the Bluetooth multimedia packet is successfully sent to the Bluetooth device by the master Bluetooth device. It should be noted that packet sending and packet loss here may refer to sending Bluetooth multimedia packets, or may also refer to sending other specific Bluetooth data packets, which are not limited here.
  • the packet sending success rate between the main Bluetooth device and the Bluetooth device during the transmission process is positively related to the transmission bandwidth between the main Bluetooth device and the Bluetooth device.
  • the packet loss rate between the main Bluetooth device and the Bluetooth device during the transmission process is negatively related to the transmission bandwidth between the main Bluetooth device and the Bluetooth device. The greater the packet transmission success rate between the main Bluetooth device and the Bluetooth device, or the smaller the packet loss rate, the greater the transmission bandwidth between the main Bluetooth device and the Bluetooth device.
  • the packet sending success rate or packet loss rate during the transmission process can be directly compared to characterize the size of the transmission bandwidth, or the ratio of the packet sending success rate or packet loss rate during the transmission process to the transmission bandwidth can also be preset.
  • the correspondence between the values determines the value of the corresponding transmission bandwidth based on the packet sending success rate or packet loss rate.
  • the transmission bandwidth between the main Bluetooth device and at least two Bluetooth devices can be obtained through various methods, which can increase the speed of obtaining the transmission bandwidth, thereby improving the efficiency of subsequent determination of the chain transmission path.
  • the number and type of each Bluetooth device that communicates with the main Bluetooth device is variable. For example, during the Bluetooth communication process between the main Bluetooth device and the Bluetooth device, a new Bluetooth device joins, or a Bluetooth device exits, etc. Therefore, the chain transmission path is also variable.
  • the method can also include:
  • the transmission bandwidth between at least two Bluetooth devices changes.
  • the change may be a change in the quantity and/or value of the transmission bandwidth.
  • the change may be a change and/or period that occurs at any time during the Bluetooth communication process.
  • the number and value of the transmission bandwidth may change at any time.
  • the master Bluetooth device detects the transmission bandwidth between at least two Bluetooth devices according to a predetermined time period to ensure the transmission quality of the chain transmission path. No new Bluetooth devices are added before and after the detection of the transmission bandwidth, or When a Bluetooth device exits, the value of the transmission bandwidth may change periodically.
  • the degree of change in the transmission bandwidth between at least two Bluetooth devices can be determined by at least one of the bandwidth capability information of the at least two Bluetooth devices, the signal strength of the Bluetooth message, and the packet sending success rate or packet loss rate during the transmission process. A certainty.
  • the conditions required for the degree of change of the transmission bandwidth between at least two Bluetooth devices match the above-mentioned method for determining the degree of change of the transmission bandwidth.
  • the degree of change can be characterized by an increase or decrease, or by an increase or decrease in amplitude, etc.
  • the degree of change reaches the condition, which is the condition that needs to be met for the first chain transmission path to be adjusted.
  • the increase or decrease in the transmission bandwidth between at least two Bluetooth devices is greater than or equal to a preset amount, or it is determined that the transmission bandwidth between at least two Bluetooth devices is If the increase or decrease amplitude of the bandwidth is greater than or equal to the preset amplitude, it is determined that the degree of change in the transmission bandwidth between at least two Bluetooth devices reaches the condition, that is, the first chain transmission path needs to be path adjusted.
  • the increase or decrease in the transmission bandwidth between the at least two Bluetooth devices is greater than or equal to a preset amount, or it is determined that the at least two Bluetooth devices have If the increase or decrease in the transmission bandwidth between the two Bluetooth devices is greater than or equal to the preset amplitude, it is determined that the degree of change in the transmission bandwidth between at least two Bluetooth devices reaches the condition, that is, the first chain transmission path needs to be path adjusted.
  • the first chain transmission path needs to be path adjusted.
  • the chain transmission path determined based on the changed transmission bandwidth is called the second chain transmission path. It can be understood that the second chain transmission path is different from the first chain transmission path.
  • the main Bluetooth device first sends the Bluetooth multimedia packet to Bluetooth device 1, and then Bluetooth device 1 sends the Bluetooth multimedia packet Sent to Bluetooth device 2, Bluetooth device 2 then sends the Bluetooth multimedia packet to Bluetooth device 3.
  • the transmission system at this time includes the main Bluetooth device, Bluetooth device 1 and Bluetooth device 3, and it can be determined that the degree of change in the transmission bandwidth between at least two Bluetooth devices reaches the condition.
  • the transmission bandwidth includes the transmission bandwidth 1 between the main Bluetooth device and Bluetooth device 1, the transmission bandwidth 3 between the main Bluetooth device and Bluetooth device 3, and the transmission bandwidth 13 between Bluetooth device 1 and Bluetooth device 3.
  • the main Bluetooth device can determine the second chain transmission path based on the above-mentioned transmission bandwidth 1, transmission bandwidth 3 and transmission bandwidth 13.
  • the master Bluetooth device may control at least two Bluetooth devices to transmit Bluetooth multimedia packets according to the second chain transmission path.
  • the first Bluetooth device in the second chain transmission path sends the Bluetooth multimedia packet to the second Bluetooth device.
  • main Bluetooth device controls at least two Bluetooth devices to transmit Bluetooth multimedia packets according to the second chain transmission path
  • main Bluetooth device controls at least two Bluetooth devices to transmit Bluetooth multimedia packets according to the first chain transmission path.
  • the first bandwidth in the second chain transmission path is greater than or equal to the second bandwidth; the first bandwidth is the first Bluetooth device and the previous Bluetooth device
  • the transmission bandwidth between the previous Bluetooth device is the main Bluetooth device or other Bluetooth devices located before the first Bluetooth device in the second chain transmission path; the second bandwidth is the transmission bandwidth between the first Bluetooth device and the second Bluetooth device. Transmission bandwidth.
  • the second chain transmission path is determined based on the transmission bandwidths between at least two Bluetooth devices in descending order. Further, according to the position of the Bluetooth device in the first chain transmission path, when the Bluetooth device serves as the first Bluetooth device, the transmission bandwidth between the Bluetooth device and the previous Bluetooth device can be used as the first bandwidth. When the Bluetooth device serves as the first Bluetooth device, When the second Bluetooth device is used, the transmission bandwidth between the Bluetooth device and the previous Bluetooth device (that is, the first Bluetooth device) can also be used as the second bandwidth, and the details need to be determined according to the actual situation.
  • Bluetooth device 1 and Bluetooth device 3 it is assumed that the main Bluetooth device first The Bluetooth multimedia packet is sent to Bluetooth device 1, and Bluetooth device 1 then sends the Bluetooth multimedia packet to Bluetooth device 3. That is, the order of the Bluetooth devices in the second chain transmission path is: Bluetooth device 1, Bluetooth device 3. Then the transmission bandwidth 1 between the main Bluetooth device and Bluetooth device 1 is greater than or equal to the transmission bandwidth 13 between Bluetooth device 1 and Bluetooth device 3 . Regarding transmission bandwidth 1 and transmission bandwidth 13, transmission bandwidth 1 is the first bandwidth, and transmission bandwidth 13 is the second bandwidth.
  • Bluetooth device 4 when at least two Bluetooth devices also include Bluetooth device 4, assume that the main Bluetooth device first sends a Bluetooth multimedia packet to Bluetooth device 1, and then Bluetooth device 1 sends a Bluetooth multimedia packet to Bluetooth device 3. Device 3 then sends the Bluetooth multimedia packet to Bluetooth device 4, that is, the order of the Bluetooth devices in the second chain transmission path is: Bluetooth device 1, Bluetooth device 3, and Bluetooth device 4. Then the transmission bandwidth 1 between the main Bluetooth device and Bluetooth device 1 is greater than or equal to the transmission bandwidth 13 between Bluetooth device 1 and Bluetooth device 3, and is greater than or equal to the transmission bandwidth 14 between Bluetooth device 3 and Bluetooth device 4. Regarding transmission bandwidth 1 and transmission bandwidth 13, transmission bandwidth 1 is the first bandwidth, and transmission bandwidth 13 is the second bandwidth. Regarding the transmission bandwidth 13 and the transmission bandwidth 14, the transmission bandwidth 13 is the first bandwidth, and the transmission bandwidth 14 is the second bandwidth.
  • the second chain transmission path is determined in the same way as the first chain transmission path, which can ensure the accuracy and consistency of data transmission of Bluetooth multimedia packets in the same transmission system, taking into full consideration If the transmission performance of different Bluetooth devices is inconsistent, try to ensure the transmission quality as much as possible.
  • each of the at least two Bluetooth devices includes at least two Bluetooth components.
  • the Bluetooth device is a TWS Bluetooth headset
  • the Bluetooth device includes two Bluetooth components: a left-channel Bluetooth headset and a right-channel Bluetooth headset.
  • the Bluetooth device is a Bluetooth game controller
  • the Bluetooth device may include two or more Bluetooth game controller components.
  • the transmission bandwidth between the at least two Bluetooth devices refers to the sum of the sub-transmission bandwidths of each Bluetooth component in the at least two Bluetooth components.
  • the transmission bandwidth between the main Bluetooth device and the Bluetooth headset refers to the sum of the sub-transmission bandwidth of the left-channel Bluetooth headset and the sub-transmission bandwidth of the right-channel Bluetooth headset.
  • the transmission bandwidth between at least two Bluetooth devices refers to the transmission bandwidth of each of the at least two Bluetooth components.
  • the sub-transmission bandwidth between the main Bluetooth device and the left-channel Bluetooth headset of the Bluetooth headset is greater than the sub-transmission bandwidth between the right-channel Bluetooth headset, that is, the transmission performance of the right-channel Bluetooth headset is weak, then the main Bluetooth headset is determined
  • the transmission bandwidth between the device and the Bluetooth device is the sub-transmission bandwidth between the right channel Bluetooth headset.
  • the transmission bandwidth can be determined more accurately, thereby improving the accuracy of the determined chain transmission path.
  • each of the at least two Bluetooth devices includes at least two Bluetooth components
  • the implementation of the embodiments of the present application may be:
  • the master Bluetooth device determines the first chain transmission path based on the transmission bandwidth between at least two Bluetooth devices; controls the first Bluetooth component in the at least two Bluetooth devices to transmit the first Bluetooth multimedia packet according to the first chain transmission path, and controls at least The second Bluetooth component in the two Bluetooth devices transmits the second Bluetooth multimedia packet according to the first chain transmission path.
  • the first Bluetooth component of the first Bluetooth device in the first chain transmission path sends the first Bluetooth multimedia packet to the first Bluetooth component of the second Bluetooth device
  • the first Bluetooth component of the first Bluetooth device in the first chain transmission path sends the second Bluetooth multimedia packet to the second Bluetooth component of the second Bluetooth device.
  • the first Bluetooth multimedia packet and the second Bluetooth multimedia packet adopt unicast communication during transmission.
  • the above-mentioned first Bluetooth multimedia packet and second Bluetooth multimedia packet also support a retransmission mechanism during transmission to ensure transmission quality.
  • the left channel Bluetooth headset is controlled to transmit the left channel Bluetooth multimedia packet according to the first chain transmission path, and the right channel Bluetooth is controlled.
  • the headset transmits the right channel Bluetooth multimedia packet according to the first chain transmission path.
  • the Bluetooth multimedia packets are transmitted according to the left and right channels respectively, which can achieve targeted transmission and can also make the transmission process of the Bluetooth multimedia packets more independent.
  • an error occurs in the transmission of the Bluetooth multimedia packets of one of the channels, it will not be affected.
  • the transmission of Bluetooth multimedia packets in another channel can improve user experience to a certain extent.
  • the method further includes: playing the Bluetooth multimedia package.
  • the main Bluetooth device can not play any Bluetooth multimedia packet, but only perform the transmission of Bluetooth multimedia packets; or, play a part of the Bluetooth multimedia packets, such as the Bluetooth multimedia packets identified as needing to be played by itself; or, play all the Bluetooth multimedia packets.
  • the Bluetooth multimedia package played by the main Bluetooth device can be determined according to the specific implementation, which will not be described again here.
  • the main Bluetooth device can also play Bluetooth multimedia packets according to actual conditions, which can effectively improve user experience.
  • FIG. 7 shows a flow chart of a Bluetooth multimedia packet transmission method provided by an exemplary embodiment of the present application. The method is explained by assuming that the method is executed by the (slave) Bluetooth device shown in FIG. 5 .
  • the method includes:
  • Step 720 Based on the control of the main Bluetooth device, the first Bluetooth device in the first chain transmission path sends the Bluetooth multimedia packet to the second Bluetooth device; wherein the first chain transmission path is the main Bluetooth device based on at least two Bluetooth devices. The transmission bandwidth between devices is determined.
  • the master Bluetooth device determines the first chain transmission path based on the transmission bandwidth between at least two Bluetooth devices, it can control the transmission of the Bluetooth multimedia packet of the Bluetooth device. Specifically, based on the control of the master Bluetooth device, the Bluetooth device sends the Bluetooth multimedia packet to the second Bluetooth device as the first Bluetooth device in the first chain transmission path.
  • a control link is established between the master Bluetooth device and each of the at least two Bluetooth devices, and the control link is used to transmit control information related to the transmission process of the Bluetooth multimedia packet.
  • the control information includes: the address of each Bluetooth device in the first chain transmission path, the serial number of the Bluetooth multimedia packet, the feedback information of the Bluetooth multimedia packet, the initial transmission/retransmission information of the Bluetooth multimedia packet, etc. Therefore, the master Bluetooth device can control the Bluetooth device based on the control link.
  • the method provided by this embodiment can realize the transmission of the same Bluetooth multimedia package between multiple Bluetooth devices based on the control of the main Bluetooth device, thereby realizing the sharing of Bluetooth multimedia packages.
  • the determination method of the chain transmission path in the embodiment of the present application also fully takes into account the inconsistent transmission performance of different Bluetooth devices, and can ensure the transmission quality of the Bluetooth multimedia packets in the chain transmission path. You can also try to maximize the total bandwidth used by multiple Bluetooth devices.
  • the method also includes:
  • the method also includes at least one of the following steps:
  • the transmission bandwidth between the first Bluetooth device and the second Bluetooth device is determined.
  • the method also includes:
  • the main Bluetooth device can obtain the transmission bandwidth between the main Bluetooth device and at least two Bluetooth devices.
  • the method also includes: reporting the relationship between the first Bluetooth device and other Bluetooth devices to the main Bluetooth device. transmission bandwidth.
  • the Bluetooth device as the first Bluetooth device in the first chain transmission path, reports to the main Bluetooth device the transmission bandwidth between the first Bluetooth device and each other Bluetooth device, so that the main Bluetooth device obtains at least The transmission bandwidth between any two Bluetooth devices.
  • the Bluetooth device actively reports the transmission bandwidth to the main Bluetooth device, which can improve the efficiency of the main Bluetooth device in obtaining the transmission bandwidth and reduce the possibility of errors.
  • the Bluetooth device serves as the first Bluetooth device, and the method performed further includes at least one of the following steps:
  • the transmission bandwidth between the first Bluetooth device and the second Bluetooth device is determined.
  • the initial negotiation process refers to the process of handshake negotiation through the Bluetooth transmission protocol when the Bluetooth device and other Bluetooth devices establish a Bluetooth communication connection this time.
  • the initial negotiation process may carry bandwidth capability information of the Bluetooth device and other Bluetooth devices performing handshake negotiations.
  • the bandwidth capability information may be the maximum transmission bandwidth supported by the Bluetooth device, or the sub-transmission bandwidth of each Bluetooth component of the Bluetooth device.
  • the Bluetooth device may determine the transmission bandwidth between the first Bluetooth device and other Bluetooth devices based on the bandwidth capability information of other Bluetooth devices during the initial negotiation process.
  • the signal strength of Bluetooth packets from other Bluetooth devices is positively related to the transmission bandwidth between the Bluetooth device and the other Bluetooth devices.
  • the stronger the signal strength of the Bluetooth message the greater the transmission bandwidth between the Bluetooth device and other Bluetooth devices. Therefore, the Bluetooth device can determine the transmission bandwidth between the first Bluetooth device and other Bluetooth devices based on the signal strength of the Bluetooth messages from other Bluetooth devices.
  • the packet sending success rate between the Bluetooth device (the first Bluetooth device) and the next Bluetooth device (the second Bluetooth device) of the Bluetooth device during the transmission process is positively related to the transmission bandwidth between the two Bluetooth devices.
  • the packet loss rate between two Bluetooth devices during the transmission process is negatively related to the transmission bandwidth between the two Bluetooth devices.
  • the Bluetooth device can determine the transmission bandwidth with other Bluetooth devices in a variety of ways, which improves the efficiency and feasibility of determining the transmission bandwidth, and is conducive to improving the efficiency of subsequent chain transmission path determination.
  • the method further includes: playing the Bluetooth multimedia package.
  • all or part of the at least two Bluetooth devices are used to play Bluetooth multimedia packages.
  • the Bluetooth multimedia packet played by each Bluetooth device can be determined according to the specific implementation, which will not be described again here.
  • the Bluetooth device can also play Bluetooth multimedia packets according to actual conditions, which can effectively improve user experience.
  • FIG 8 shows a schematic diagram of a Bluetooth multimedia packet transmission system provided by an exemplary embodiment of the present application.
  • the main Bluetooth device is the mobile phone 10
  • the Bluetooth device includes four pairs of TWS Bluetooth headsets, namely Bluetooth headset 21, Bluetooth headset 22, Bluetooth headset 23 and Bluetooth headset 24.
  • Each pair of TWS Bluetooth headsets includes a left channel Bluetooth headset. Headphones and right sound bluetooth headphones.
  • the transmission bandwidth between the mobile phone 10 and the Bluetooth headset 21 is the sub-transmission bandwidth between the mobile phone 10 and the left-channel Bluetooth headset of the Bluetooth headset 21, and the sub-transmission bandwidth between the mobile phone and the right-channel Bluetooth headset of the Bluetooth headset 21. Sum.
  • the determination method of the transmission bandwidth between the mobile phone 10 and the Bluetooth headset 22, the mobile phone 10 and the Bluetooth headset 23, and the mobile phone 10 and the Bluetooth headset 24 is consistent with the above determination method, and will not be described again here.
  • the transmission bandwidth between the Bluetooth headset 21 and the Bluetooth headset 22 is the sub-transmission bandwidth between the left channel Bluetooth headset of the Bluetooth headset 21 and the Bluetooth headset 22, and the sub-transmission bandwidth between the Bluetooth headset 21 and the right channel Bluetooth headset of the Bluetooth headset 22.
  • the determination method of the transmission bandwidth between the Bluetooth headset 21 and the Bluetooth headset 23, the Bluetooth headset 21 and the Bluetooth headset 24, the Bluetooth headset 22 and the Bluetooth headset 23, the Bluetooth headset 22 and the Bluetooth headset 24, and the Bluetooth headset 23 and the Bluetooth headset 24 is the same as the above. The determination methods are the same and will not be repeated here.
  • the following embodiments take the execution of mobile phone 10 as an example.
  • the transmission method of Bluetooth multimedia packets includes:
  • a first chain transmission path is determined based on the transmission bandwidth between at least two Bluetooth devices; the first Bluetooth device in the first chain transmission path sends a Bluetooth multimedia packet to the second Bluetooth device.
  • the first bandwidth in the first chain transmission path is greater than or equal to the second bandwidth; the first bandwidth is the transmission bandwidth between the first Bluetooth device and the previous Bluetooth device in the first chain transmission path.
  • the main Bluetooth device or other Bluetooth devices located before the first Bluetooth device; the second bandwidth is the transmission bandwidth between the first Bluetooth device and the second Bluetooth device.
  • the transmission bandwidth obtained by the mobile phone 10 is the transmission bandwidth between the mobile phone 10 and each pair of Bluetooth headsets, and the transmission bandwidth between any two pairs of Bluetooth headsets.
  • mobile phone 10 and Bluetooth headset 21 mobile phone 10 and Bluetooth headset 22, mobile phone 10 and Bluetooth headset 23, mobile phone 10 and Bluetooth headset 24, Bluetooth headset 21 and Bluetooth headset 22, Bluetooth headset 21 and Bluetooth headset 23, Bluetooth headset 21
  • Bluetooth headset 21 The transmission bandwidth between the Bluetooth headset 24, the Bluetooth headset 22 and the Bluetooth headset 23, the Bluetooth headset 22 and the Bluetooth headset 24, and the Bluetooth headset 23 and the Bluetooth headset 24.
  • the transmission bandwidth between the mobile phone 10 and the Bluetooth headset 21, the transmission bandwidth between the Bluetooth headset 21 and the Bluetooth headset 22, the transmission bandwidth between the Bluetooth headset 22 and the Bluetooth headset 23, the transmission bandwidth between the Bluetooth headset 23 and the Bluetooth headset 24 decreases in sequence. Therefore, it is determined that the Bluetooth devices in the first chain transmission path are: Bluetooth headset 21, Bluetooth headset 22, Bluetooth headset 23, and Bluetooth headset 24.
  • the mobile phone 10 controls the Bluetooth headset 21, the Bluetooth headset 22, the Bluetooth headset 23, and the Bluetooth headset 24 to transmit the Bluetooth multimedia packet according to the first chain transmission path.
  • the Bluetooth headset 22 disconnects the Bluetooth communication with the mobile phone 10. At this time, the mobile phone 10 determines that the change in transmission bandwidth between the Bluetooth headsets meets the conditions, and needs to determine the second chain transmission path based on the changed transmission bandwidth. .
  • the second chain transmission path is determined based on the changed transmission bandwidth, and the second chain transmission path is different from the first chain transmission path.
  • the first Bluetooth device in the second chain transmission path sends a Bluetooth multimedia packet to the second Bluetooth device.
  • the first bandwidth in the second chain transmission path is greater than or equal to the second bandwidth; the first bandwidth is the transmission bandwidth between the first Bluetooth device and the previous Bluetooth device, and the previous Bluetooth device is in the first chain transmission path.
  • the main Bluetooth device or other Bluetooth devices located before the first Bluetooth device; the second bandwidth is the transmission bandwidth between the first Bluetooth device and the second Bluetooth device.
  • the changed transmission bandwidth obtained by the mobile phone 10 is the transmission bandwidth between the mobile phone 10 and each pair of Bluetooth headsets, and the transmission bandwidth between any two pairs of Bluetooth headsets. Specifically include: mobile phone 10 and Bluetooth headset 21, mobile phone 10 and Bluetooth headset 23, mobile phone 10 and Bluetooth headset 24, Bluetooth headset 21 and Bluetooth headset 23, Bluetooth headset 21 and Bluetooth headset 24, Bluetooth headset 23 and Bluetooth headset 24. Transmission bandwidth.
  • the transmission bandwidth between the mobile phone 10 and the Bluetooth headset 21, the transmission bandwidth between the Bluetooth headset 21 and the Bluetooth headset 24, and the transmission bandwidth between the Bluetooth headset 24 and the Bluetooth headset 23 decrease in sequence. Therefore, the second chain transmission path is determined.
  • the Bluetooth devices in are: Bluetooth headset 21, Bluetooth headset 24, and Bluetooth headset 23.
  • the mobile phone 10 controls the Bluetooth headset 21, the Bluetooth headset 24, and the Bluetooth headset 23 to transmit the Bluetooth multimedia packet according to the second chain transmission path.
  • the product implementation of the main Bluetooth device and the Bluetooth device in the embodiment of this application may be implemented in a variety of ways.
  • the above-mentioned main Bluetooth device is implemented as a television with a Bluetooth chip
  • the Bluetooth device is implemented as a TWS Bluetooth headset.
  • Figure 10 shows a scenario diagram of a Bluetooth multimedia packet transmission method provided by an exemplary embodiment of the present application.
  • each Bluetooth device in the first chain transmission path is the TWS Bluetooth headset of mom 52, dad 53, and brother 54. That is, the TV sends a Bluetooth multimedia packet to the TWS Bluetooth headset of mom 52, and the TWS Bluetooth headset of mom 52 Send a Bluetooth multimedia packet to Dad's 53 TWS Bluetooth headset.
  • Dad's 53 TWS Bluetooth headset sends a Bluetooth multimedia packet to Brother 54's TWS Bluetooth headset.
  • Brother 54's TWS Bluetooth headset no longer performs the steps of sending Bluetooth multimedia packets.
  • FIG 11 shows a structural block diagram of a Bluetooth multimedia packet transmission control device provided by an exemplary embodiment of the present application.
  • the control device includes:
  • Path determination module 10 configured to determine a first chain transmission path based on the transmission bandwidth between at least two Bluetooth devices
  • Bluetooth control module 20 used to control the at least two Bluetooth devices to transmit Bluetooth multimedia packets according to the first chain transmission path;
  • the first Bluetooth device in the first chain transmission path sends the Bluetooth multimedia packet to the second Bluetooth device.
  • the first bandwidth in the first chain transmission path is greater than or equal to the second bandwidth; the first bandwidth is the transmission bandwidth between the first Bluetooth device and the previous Bluetooth device, The previous Bluetooth device is the main Bluetooth device or other Bluetooth devices located before the first Bluetooth device in the first chain transmission path; the second bandwidth is the connection between the first Bluetooth device and all Bluetooth devices. The transmission bandwidth between the second Bluetooth devices.
  • control device further includes an acquisition module.
  • the obtaining module is used to obtain the transmission bandwidth between any two Bluetooth devices among the at least two Bluetooth devices, and obtain the transmission bandwidth between the main Bluetooth device and the at least two Bluetooth devices. transmission bandwidth between.
  • the acquisition module is further configured to receive the transmission bandwidth reported by each Bluetooth device in the at least two Bluetooth devices, where the transmission bandwidth is the transmission bandwidth between each Bluetooth device and other Bluetooth devices. Transmission bandwidth.
  • the transmission bandwidth between each Bluetooth device and the other Bluetooth devices is determined by each Bluetooth device based on at least one of the following methods:
  • the acquisition module is configured to determine the transmission bandwidth between the main Bluetooth device and the at least two Bluetooth devices based on the bandwidth capability information of the at least two Bluetooth devices during the initial negotiation process.
  • the acquisition module is configured to determine the transmission bandwidth between the main Bluetooth device and the at least two Bluetooth devices based on the signal strength of the Bluetooth messages from the at least two Bluetooth devices.
  • the acquisition module is configured to determine the transmission bandwidth between the main Bluetooth device and the at least two Bluetooth devices based on the packet sending success rate or packet loss rate during the transmission process.
  • the path determination module is further configured to determine the second chain transmission path based on the changed transmission bandwidth when the degree of change in the transmission bandwidth between the at least two Bluetooth devices reaches a condition, so The second chain transmission path is different from the first chain transmission path;
  • the Bluetooth control module is also used to control the at least two Bluetooth devices to transmit Bluetooth multimedia packets according to the second chain transmission path;
  • the first Bluetooth device in the second chain transmission path sends the Bluetooth multimedia packet to the second Bluetooth device.
  • each of the at least two Bluetooth devices includes at least two Bluetooth components
  • the transmission bandwidth between the at least two Bluetooth devices refers to the sum of the sub-transmission bandwidths of each Bluetooth component in the at least two Bluetooth components
  • the transmission bandwidth between the at least two Bluetooth devices refers to the smallest sub-transmission bandwidth among the sub-transmission bandwidths of each Bluetooth component in the at least two Bluetooth components.
  • the first bandwidth in the second chain transmission path is greater than or equal to the second bandwidth; the first bandwidth is the transmission bandwidth between the first Bluetooth device and the previous Bluetooth device, The previous Bluetooth device is the main Bluetooth device or other Bluetooth devices located before the first Bluetooth device in the second chain transmission path; the second bandwidth is the connection between the first Bluetooth device and all Bluetooth devices. The transmission bandwidth between the second Bluetooth devices.
  • control device further includes a playback module.
  • the playback module is used to play the Bluetooth multimedia package.
  • Figure 12 shows a structural block diagram of a Bluetooth multimedia packet transmission device provided by an exemplary embodiment of the present application.
  • the device includes:
  • the Bluetooth sending module 30 is used to send Bluetooth multimedia packets to the second Bluetooth device as the first Bluetooth device in the first chain transmission path based on the control of the main Bluetooth device;
  • the first chain transmission path is determined by the main Bluetooth device based on the transmission bandwidth between at least two Bluetooth devices.
  • the device further includes a reporting module.
  • the reporting module is configured to report the transmission bandwidth between the first Bluetooth device and other Bluetooth devices to the main Bluetooth device.
  • the reporting module is configured to determine the transmission bandwidth between the first Bluetooth device and the other Bluetooth device based on the bandwidth capability information of the other Bluetooth device during the initial negotiation process.
  • the reporting module is configured to determine the transmission bandwidth between the first Bluetooth device and the other Bluetooth devices based on the signal strength of the Bluetooth messages from the other Bluetooth devices.
  • the reporting module is configured to determine the transmission bandwidth between the first Bluetooth device and the second Bluetooth device based on the packet sending success rate or packet loss rate during the transmission process.
  • the device further includes a playback module.
  • the playback module is used to play the Bluetooth multimedia package.
  • a transmission system for Bluetooth multimedia packets includes: a main Bluetooth device and at least two Bluetooth devices;
  • the main Bluetooth device is configured to determine a first chain transmission path based on the transmission bandwidth between the at least two Bluetooth devices; and control the at least two Bluetooth devices to transmit Bluetooth multimedia packets according to the first chain transmission path. ; Wherein, the first Bluetooth device in the first chain transmission path sends the Bluetooth multimedia packet to the second Bluetooth device;
  • Any Bluetooth device except the last Bluetooth device among the at least two Bluetooth devices is used to transmit data from the first Bluetooth device in the first chain transmission path to the second Bluetooth device based on the control of the main Bluetooth device.
  • the Bluetooth device sends the Bluetooth multimedia packet.
  • the main Bluetooth device is further configured to determine the second chain transmission path based on the changed transmission bandwidth when the degree of change in the transmission bandwidth between the at least two Bluetooth devices reaches a condition, so The second chain transmission path is different from the first chain transmission path; controlling the at least two Bluetooth devices to transmit Bluetooth multimedia packets according to the second chain transmission path; wherein the second chain transmission path The first Bluetooth device in the device sends the Bluetooth multimedia packet to the second Bluetooth device;
  • Any Bluetooth device other than the last Bluetooth device among the at least two Bluetooth devices is also used to transmit data to the third Bluetooth device as the first Bluetooth device in the second chain transmission path based on the control of the main Bluetooth device.
  • Two Bluetooth devices send the Bluetooth multimedia packet.
  • FIG 13 shows a structural block diagram of the main Bluetooth device 1300 provided by an exemplary embodiment of the present application.
  • the main Bluetooth device 1300 can be a portable mobile terminal that supports Bluetooth functionality, such as a smartphone, a tablet, an MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Compression Standard Audio Layer 4) player, a laptop or a desktop computer .
  • the master Bluetooth device 1300 may also be called a user Bluetooth device, a portable terminal, a laptop terminal, a desktop terminal, and other names.
  • the main Bluetooth device 1300 includes: a Bluetooth chip 1301 and a memory 1302.
  • the Bluetooth chip 1301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc.
  • the Bluetooth chip 1301 can adopt at least one hardware form among DSP (Digital Signal Processing, digital signal processing), FPGA (Field-Programmable Gate Array, field programmable gate array), and PLA (Programmable Logic Array, programmable logic array).
  • DSP Digital Signal Processing, digital signal processing
  • FPGA Field-Programmable Gate Array, field programmable gate array
  • PLA Programmable Logic Array, programmable logic array
  • the Bluetooth chip 1301 can also include a main processor and a co-processor.
  • the main processor is a processor used to process data in the wake-up state, also called CPU (Central Processing Unit, central processing unit); the co-processor is A low-power processor used to process data in standby mode.
  • the Bluetooth chip 1301 can be integrated with a GPU (Graphics Processing Unit, image processor), and the GPU is responsible for rendering and drawing the content that needs to be displayed on the display screen.
  • the Bluetooth chip 1301 may also include an AI (Artificial Intelligence, artificial intelligence) processor, which is used to process computing operations related to machine learning.
  • AI Artificial Intelligence, artificial intelligence
  • Memory 1302 may include one or more computer-readable storage media, which may be non-transitory. Memory 1302 may also include high-speed random access memory, and non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1302 is used to store at least one instruction, and the at least one instruction is used to be executed by the Bluetooth chip 1301 to implement the Bluetooth multimedia provided by the method embodiments in this application. Packet transmission method.
  • the master Bluetooth device 1300 optionally also includes: a peripheral device interface 1303 and at least one peripheral device.
  • the Bluetooth chip 1301, the memory 1302 and the peripheral device interface 1303 can be connected through a bus or a signal line.
  • Each peripheral device can be connected to the peripheral device interface 1303 through a bus, a signal line, or a circuit board.
  • the peripheral device includes: at least one of a radio frequency circuit 1304, a display screen 1305, a camera component 1306, an audio circuit 1307, a positioning component 1308 and a power supply 1309.
  • the peripheral device interface 1303 may be used to connect at least one I/O (Input/Output) related peripheral device to the Bluetooth chip 1301 and the memory 1302 .
  • the Bluetooth chip 1301, the memory 1302 and the peripheral device interface 1303 are integrated on the same chip or circuit board; in some other embodiments, any one of the Bluetooth chip 1301, the memory 1302 and the peripheral device interface 1303 or Both of them can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
  • the radio frequency circuit 1304 is used to receive and transmit RF (Radio Frequency, radio frequency) signals, also called electromagnetic signals. Radio frequency circuit 1304 communicates with communication networks and other communication devices through electromagnetic signals. The radio frequency circuit 1304 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 1304 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. Radio frequency circuitry 1304 can communicate with other terminals through at least one wireless communication protocol.
  • RF Radio Frequency, radio frequency
  • the wireless communication protocol includes but is not limited to: World Wide Web, metropolitan area network, intranet, mobile communication networks of all generations (2G, 3G, 4G and 5G), wireless LAN and/or WiFi (Wireless Fidelity, Wireless Fidelity) network.
  • the radio frequency circuit 1304 may also include NFC (Near Field Communication) related circuits, which is not limited in this application.
  • the display screen 1305 is used to display UI (User Interface, user interface).
  • the UI can include graphics, text, icons, videos, and any combination thereof.
  • display screen 1305 also has the ability to collect touch signals on or above the surface of display screen 1305 .
  • the touch signal can be input to the Bluetooth chip 1301 as a control signal for processing.
  • the display screen 1305 can also be used to provide virtual buttons and/or virtual keyboards, also called soft buttons and/or soft keyboards.
  • display screen 1305 may be One, arranged on the front panel of the main Bluetooth device 1300; in other embodiments, the display screen 1305 may be at least two, respectively arranged on different surfaces of the main Bluetooth device 1300 or in a folding design; in other embodiments, The display screen 1305 may be a flexible display screen disposed on a curved or folded surface of the main Bluetooth device 1300 . Even, the display screen 1305 can also be set in a non-rectangular irregular shape, that is, a special-shaped screen.
  • the display screen 1305 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
  • the camera component 1306 is used to capture images or videos.
  • the camera assembly 1306 includes a front camera and a rear camera.
  • the front camera is set on the front panel of the terminal, and the rear camera is set on the back of the terminal.
  • there are at least two rear cameras one of which is a main camera, a depth-of-field camera, a wide-angle camera, and a telephoto camera, so as to realize the integration of the main camera and the depth-of-field camera to realize the background blur function.
  • camera assembly 1306 may also include a flash.
  • the flash can be a single color temperature flash or a dual color temperature flash. Dual color temperature flash refers to a combination of warm light flash and cold light flash, which can be used for light compensation under different color temperatures.
  • Audio circuitry 1307 may include a microphone and speakers.
  • the microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals that are input to the Bluetooth chip 1301 for processing, or input to the radio frequency circuit 1304 to implement voice communication.
  • the microphone can also be an array microphone or an omnidirectional collection microphone.
  • the speaker is used to convert electrical signals from the Bluetooth chip 1301 or the radio frequency circuit 1304 into sound waves.
  • the loudspeaker can be a traditional membrane loudspeaker or a piezoelectric ceramic loudspeaker.
  • audio circuitry 1307 may also include a headphone jack.
  • the positioning component 1308 is used to locate the current geographical location of the main Bluetooth device 1300 to implement navigation or LBS (Location Based Service).
  • the positioning component 1308 may be a positioning component based on the United States' GPS (Global Positioning System), China's Beidou system, or Russia's Galileo system.
  • the power supply 1309 is used to provide power to various components in the main Bluetooth device 1300 .
  • Power source 1309 may be AC, DC, disposable batteries, or rechargeable batteries.
  • the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. Wired rechargeable batteries are batteries that are charged through wired lines, and wireless rechargeable batteries are batteries that are charged through wireless coils.
  • the rechargeable battery can also be used to support fast charging technology.
  • the master Bluetooth device 1300 also includes one or more sensors 1310.
  • the one or more sensors 1310 include, but are not limited to: an acceleration sensor 1311, a gyroscope sensor 1312, a pressure sensor 1313, a fingerprint sensor 1314, an optical sensor 1315, and a proximity sensor 1316.
  • the acceleration sensor 1311 can detect the acceleration on the three coordinate axes of the coordinate system established by the master Bluetooth device 1300 .
  • the acceleration sensor 1311 can be used to detect the components of gravity acceleration on three coordinate axes.
  • the Bluetooth chip 1301 can control the display screen 1305 to display the user interface in a horizontal view or a vertical view based on the gravity acceleration signal collected by the acceleration sensor 1311.
  • the acceleration sensor 1311 can also be used to collect game or user motion data.
  • the gyro sensor 1312 can detect the body direction and rotation angle of the main Bluetooth device 1300, and the gyro sensor 1312 can cooperate with the acceleration sensor 1311 to collect the user's 3D movements on the main Bluetooth device 1300. Based on the data collected by the gyro sensor 1312, the Bluetooth chip 1301 can implement the following functions: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
  • the pressure sensor 1313 may be disposed on the side frame of the main Bluetooth device 1300 and/or on the lower layer of the display screen 1305 .
  • the pressure sensor 1313 When the pressure sensor 1313 is installed on the side frame of the main Bluetooth device 1300, it can detect the user's holding signal of the main Bluetooth device 1300, and the Bluetooth chip 1301 performs left and right hand identification or quick operation based on the holding signal collected by the pressure sensor 1313.
  • the Bluetooth chip 1301 controls the operability controls on the UI interface according to the user's pressure operation on the display screen 1305.
  • the operability control includes at least one of a button control, a scroll bar control, an icon control, and a menu control.
  • the fingerprint sensor 1314 is used to collect the user's fingerprint.
  • the Bluetooth chip 1301 identifies the user's identity based on the fingerprint collected by the fingerprint sensor 1314, or the fingerprint sensor 1314 identifies the user's identity based on the collected fingerprint.
  • the Bluetooth chip 1301 authorizes the user to perform relevant sensitive operations.
  • the sensitive operations include unlocking the screen, viewing encrypted information, downloading software, making payments, and changing settings.
  • the fingerprint sensor 1314 may be disposed on the front, back or side of the main Bluetooth device 1300 . When the main Bluetooth device 1300 is provided with a physical button or a manufacturer's logo, the fingerprint sensor 1314 can be integrated with the physical button or the manufacturer's logo.
  • the optical sensor 1315 is used to collect ambient light intensity.
  • the Bluetooth chip 1301 can control the display brightness of the display screen 1305 according to the ambient light intensity collected by the optical sensor 1315. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1305 is increased; when the ambient light intensity is low, the display brightness of the display screen 1305 is decreased.
  • the Bluetooth chip 1301 can also dynamically adjust the shooting parameters of the camera assembly 1306 based on the ambient light intensity collected by the optical sensor 1315.
  • the proximity sensor 1316 also called a distance sensor, is usually provided on the front panel of the main Bluetooth device 1300.
  • Proximity sensor 1316 is used to collect Set the distance between the user and the front of the main Bluetooth device 1300.
  • the Bluetooth chip 1301 controls the display screen 1305 to switch from the bright screen state to the closed screen state; when the proximity sensor 1316 When it is detected that the distance between the user and the front of the main Bluetooth device 1300 gradually increases, the Bluetooth chip 1301 controls the display screen 1305 to switch from the screen off state to the screen on state.
  • FIG. 13 does not constitute a limitation on the main Bluetooth device 1300, and may include more or less components than shown, or combine certain components, or adopt different component arrangements. .
  • FIG 14 shows a structural block diagram of a Bluetooth device 1400 provided by an exemplary embodiment of the present application.
  • the Bluetooth device 1400 includes:
  • Bluetooth component 1410 is used to send Bluetooth multimedia packets to the second Bluetooth device as the first Bluetooth device in the first chain transmission path based on the control of the main Bluetooth device; wherein the first chain transmission path is the main Bluetooth device.
  • Bluetooth devices are determined based on the transmission bandwidth between at least two Bluetooth devices.
  • the Bluetooth component 1410 may be a Bluetooth chip that supports both sending and receiving.
  • the Bluetooth device 1400 further includes: a multimedia component for playing the Bluetooth multimedia package.
  • the multimedia components include: decoding component 1420, digital-to-analog converter 1430, power amplifier 1440 and playback component 1450.
  • the decoding component 1420 is used to decode the Bluetooth multimedia packet into pulse code modulation (PCM) data;
  • the digital-to-analog converter 1430 is used to convert the PCM data into an analog signal;
  • the power amplifier 1440 is used to amplify the analog signal and output Go to the playback component 1450 to play.
  • FIG. 14 does not constitute a limitation on the Bluetooth device 1400, and may include more or less components than shown, or combine certain components, or adopt different component arrangements.
  • Embodiments of the present application also provide a Bluetooth chip.
  • the main Bluetooth device installed with the Bluetooth chip is used to execute the above Bluetooth multimedia packet transmission method; or the Bluetooth device installed with the Bluetooth chip is used to execute the above Bluetooth multimedia package. Packet transmission method.
  • the present application also provides a computer-readable storage medium, which stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the The code set or instruction set is loaded and executed by the main Bluetooth device to implement the above-mentioned Bluetooth multimedia packet transmission method; or the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the Bluetooth device to implement Implement the above Bluetooth multimedia packet transmission method.
  • the present application provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium.
  • the master Bluetooth device and/or the Bluetooth device reads the computer instructions from the computer-readable storage medium, so that the master Bluetooth device and/or the Bluetooth device executes the Bluetooth multimedia packet transmission method provided by the above method embodiment.
  • Computer-readable media includes computer-readable storage media and communication media including any medium that facilitates transfer of a computer program from one place to another.
  • Storage media can be any available media that can be accessed by a general purpose or special purpose computer.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本申请公开了一种蓝牙多媒体包的传输方法、装置、设备和系统,涉及蓝牙领域。该方法包括:基于至少两个蓝牙设备之间的传输带宽确定第一链式传输路径(620);控制至少两个蓝牙设备按照第一链式传输路径传输蓝牙多媒体包(640);其中,第一链式传输路径中的第一蓝牙设备向第二蓝牙设备发送蓝牙多媒体包。上述方案实现了多个蓝牙设备之间传输同一份蓝牙多媒体包,通过基于至少两个蓝牙设备之间的传输带宽确定第一链式传输路径,还充分考虑到不同蓝牙设备的传输性能不一致的情况,可以使得传输带宽利用率最大化,尽量保证多个蓝牙设备所使用的总带宽最大化,还可以进一步保证多个蓝牙设备的使用总时长最长。

Description

蓝牙多媒体包的传输方法、装置、设备和系统
本申请要求于2022年7月26日提交的申请号为202210887310.4、发明名称为“蓝牙多媒体包的传输方法、装置、设备和系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及蓝牙领域,特别涉及一种蓝牙多媒体包的传输方法、装置、设备和系统。
背景技术
随着蓝牙领域的发展,蓝牙设备已经爆发式增长和普及,以蓝牙设备是真无线立体声(True Wireless Studio,TWS)蓝牙耳机为例,用户在生活和工作中使用TWS蓝牙耳机已非常普及和常见,比如听音乐、打电话、玩游戏等。
以听音乐为例,用户使用手机与TWS蓝牙耳机连接,实现与家人或者恋人一起分享音乐。相关技术中,手机与TWS蓝牙耳机之间采用链式传输路径分享蓝牙音频数据,TWS蓝牙耳机对蓝牙音频数据进行解码播放。
然而,相关技术并未考虑链式传输路径中蓝牙设备传输性能不一致的情况。
发明内容
本申请提供了一种蓝牙多媒体包的传输方法、装置、设备和系统,充分考虑到链式传输路径中蓝牙设备传输性能不一致的情况。所述技术方案如下:
一方面,提供了一种蓝牙多媒体包的传输方法,所述方法由主蓝牙设备执行,所述方法包括:
基于至少两个蓝牙设备之间的传输带宽确定第一链式传输路径;
控制所述至少两个蓝牙设备按照所述第一链式传输路径传输蓝牙多媒体包;
其中,所述第一链式传输路径中的第一蓝牙设备向第二蓝牙设备发送所述蓝牙多媒体包。
另一方面,提供了一种蓝牙多媒体包的传输方法,所述方法由蓝牙设备执行,所述方法包括:
基于主蓝牙设备的控制,作为第一链式传输路径中的第一蓝牙设备向第二蓝牙设备发送蓝牙多媒体包;
其中,所述第一链式传输路径是所述主蓝牙设备基于至少两个蓝牙设备之间的传输带宽确定的。
另一方面,提供了一种蓝牙多媒体包的传输控制装置,所述控制装置包括:
路径确定模块,用于基于至少两个蓝牙设备之间的传输带宽确定第一链式传输路径;
蓝牙控制模块,用于控制所述至少两个蓝牙设备按照所述第一链式传输路径传输蓝牙多媒体包;
其中,所述第一链式传输路径中的第一蓝牙设备向第二蓝牙设备发送所述蓝牙多媒体包。
另一方面,提供了一种蓝牙多媒体包的传输装置,所述装置包括:
蓝牙发送模块,用于基于主蓝牙设备的控制,作为第一链式传输路径中的第一蓝牙设备向第二蓝牙设备发送蓝牙多媒体包;
其中,所述第一链式传输路径是所述主蓝牙设备基于至少两个蓝牙设备之间的传输带宽确定的。
另一方面,提供了一种蓝牙多媒体包的传输系统,所述传输系统包括:主蓝牙设备和至少两个蓝牙设备;
所述主蓝牙设备,用于基于所述至少两个蓝牙设备之间的传输带宽确定第一链式传输路径;控制所述至少两个蓝牙设备按照所述第一链式传输路径传输蓝牙多媒体包;其中,所述第一链式传输路径中的第一蓝牙设备向第二蓝牙设备发送所述蓝牙多媒体包;
所述至少两个蓝牙设备中除最后一个蓝牙设备之外的任一蓝牙设备,用于基于所述主蓝牙设备的控制,作为所述第一链式传输路径中的第一蓝牙设备向第二蓝牙设备发送所述蓝牙多媒体包。
另一方面,提供了一种蓝牙芯片,安装有所述蓝牙芯片的主蓝牙设备用于执行上述蓝牙多媒体包的传输方法;或,安装有所述蓝牙芯片的蓝牙设备用于执行上述蓝牙多媒体包的传输方法。
另一方面,提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序用于被主蓝牙设备执行以实现上述蓝牙多媒体包的传输方法;或,所述计算机程序用于被蓝牙设备执行以实现上述蓝牙多媒体包的传输方法。
另一方面,提供了一种计算机程序产品,所述计算机程序产品包括计算机指令,所述计算机指令存储在计算机可读存储介质中,主蓝牙设备从所述计算机可读存储介质中获取所述计算机指令,使得所述主蓝牙设备加载并执行以实现上述蓝牙多媒体包的传输方法;或,蓝牙设备从所述计算机可读存储介质中获取所述计算机指令,使得所述蓝牙设备加载并执行以实现上述蓝牙多媒体包的传输方法。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介 绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1示出了一个示例性实施例提供的蓝牙多媒体包的传输方法的示意图;
图2示出了一个示例性实施例提供的蓝牙多媒体包的传输方法的示意图;
图3示出了一个示例性实施例提供的蓝牙多媒体包的传输方法的示意图;
图4示出了一个示例性实施例提供的蓝牙多媒体包的传输方法的示意图;
图5示出了一个示例性实施例提供的蓝牙多媒体包的传输系统的结构框图;
图6示出了一个示例性实施例提供的蓝牙多媒体包的传输方法的流程图;
图7示出了一个示例性实施例提供的蓝牙多媒体包的传输方法的流程图;
图8示出了一个示例性实施例提供的蓝牙多媒体包的传输系统的示意图;
图9示出了一个示例性实施例提供的蓝牙多媒体包的传输系统的示意图;
图10示出了一个示例性实施例提供的蓝牙多媒体包的传输方法的场景图;
图11示出了一个示例性实施例提供的蓝牙多媒体包的传输控制装置的结构框图;
图12示出了一个示例性实施例提供的蓝牙多媒体包的传输装置的结构框图;
图13示出了一个示例性实施例提供的主蓝牙设备的结构框图;
图14示出了一个示例性实施例提供的蓝牙设备的结构框图。
具体实施方式
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。
在本申请使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。在本申请和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。
应当理解,尽管在本申请可能采用术语第一、第二等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本申请范围的情况下,第一参数也可以被称为第二参数,类似地,第二参数也可以被称为第一参数。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。
相关方案中,可以实现一个主蓝牙设备向多个(从)蓝牙设备分享播放同一份蓝牙多媒体包的技术方案。比如,一个手机通过蓝牙连接同时向多个蓝牙耳机分享同一首歌曲进行播放。
在一个示例中,图1示出了一个手机10向4个蓝牙耳机传输同一份蓝牙音频包的示例性方案。假设蓝牙发送带宽为W,手机10采用带宽W1向第一个蓝牙耳机21发送蓝牙音频包;采用带宽W2向第二个蓝牙耳机22发送蓝牙音频包;采用带宽W3向第三个蓝牙耳机23发送蓝牙音频包;采用带宽W4向第四个蓝牙耳机24发送蓝牙音频包。
图2示出了上述方案中蓝牙音频包传输与播放的示意图,手机10将音源解码为脉冲编码调制(Pulse Code Modulation,PCM)数据,再进行蓝牙音频编码,最后由蓝牙发送模块通过蓝牙无线传输,将蓝牙音频编码发送给蓝牙耳机。蓝牙耳机21通过蓝牙接收模块接收蓝牙音频编码,解码为PCM数据,PCM数据经过数模转换器(Digital to Analog Converter,DAC)进行数模转换和功率放大器(Power Amplifier,PA)进行功率放大,生成模拟数据,最后由播放单元完成播放。
在上述传输过程中,W=W1+W2+W3+W4;假设4个蓝牙耳机是同类型的蓝牙耳机或者4个蓝牙耳机的传输性能相当,即W1=W2=W3=W4=W/4。对于每个蓝牙耳机来讲,只能享受到W/4的带宽。而无损(Lossless)音乐和高解析音频(High Resolution Audio,Hi-Res)之类的高品质歌曲对蓝牙带宽的要求较高,上述示例性方案无法满足传输需求。
以192khz,24bit采样率的双声道歌曲为例,PCM速率达到10Mbps,假设蓝牙编码压缩速率为70%,那么对蓝牙的带宽要求是7Mbps。蓝牙带宽的1/4用于传输高品质的音频难以实现。而且在上述示例方案中,当需要分享的蓝牙耳机数量越多,则每个蓝牙耳机所占用的带宽越窄,限制了同一个手机10所能分享的蓝牙耳机的数量上限。
在另一个示例中,图3示出了一个手机10向4对蓝牙耳机传输同一份蓝牙音频包的示例性方案。
手机10采用带宽W/2向第一对蓝牙耳机21中的左声道耳机发送左声道蓝牙音频包,采用带宽W/2向第一对蓝牙耳机21中的右声道耳机发送右声道蓝牙音频包。同时第一对蓝牙耳机21还播放该左声道蓝 牙音频包和右声道蓝牙音频包。
第一对蓝牙耳机21中的左声道耳机采用带宽W/2向第二对蓝牙耳机22中的左声道耳机发送左声道蓝牙音频包,第一对蓝牙耳机21中的右声道耳机采用带宽W/2向第二对蓝牙耳机22中的右声道耳机发送右声道蓝牙音频包。同时第二对蓝牙耳机22还播放该左声道蓝牙音频包和右声道蓝牙音频包。
第二对蓝牙耳机22中的左声道耳机采用带宽W/2向第三对蓝牙耳机23中的左声道耳机发送左声道蓝牙音频包,第二对蓝牙耳机22中的右声道耳机采用带宽W/2向第三对蓝牙耳机23中的右声道耳机发送右声道蓝牙音频包。同时第三对蓝牙耳机23还播放该左声道蓝牙音频包和右声道蓝牙音频包。
第三对蓝牙耳机23中的左声道耳机采用带宽W/2向第四对蓝牙耳机24中的左声道耳机发送左声道蓝牙音频包,第三对蓝牙耳机23中的右声道耳机采用带宽W/2向第四对蓝牙耳机24中的右声道耳机发送右声道蓝牙音频包。同时第四对蓝牙耳机24还播放该左声道蓝牙音频包和右声道蓝牙音频包。
图4示出了上述方案中蓝牙音频包传输与播放的示意图,手机10将音源提供的PCM数据按照左右声道数据分别进行蓝牙音频编码,得到左声道蓝牙音频包和右声道蓝牙音频包。手机10中的蓝牙发送部件11将左声道蓝牙音频包和右声道蓝牙音频包发送至蓝牙设备。
蓝牙设备的左声道蓝牙耳机31包括:左声道蓝牙接收部件32、左声道PCM(解码组件)33、左声道DAC34和左声道PA35、左声道播放部件36、左声道蓝牙发送部件37。左声道蓝牙接收部件32在接收到左声道蓝牙音频包后,将左声道蓝牙音频包传输给左声道PCM33,左声道PCM33将左声道蓝牙音频包解码成左声道PCM数据;左声道DAC34将左声道PCM数据转化为左声道模拟信号;左声道PA35将左声道模拟信号放大后,输出至左声道播放部件36进行播放。另一方面,左声道蓝牙发送部件37还将左声道蓝牙音频包发送至下一左声道蓝牙耳机。
蓝牙设备的右声道蓝牙耳机41包括:右声道蓝牙接收部件42、右声道PCM(解码组件)43、右声道DAC44和右声道PA45、右声道播放部件46、右声道蓝牙发送部件47。右声道蓝牙接收部件42在接收到右声道蓝牙音频包后,将右声道蓝牙音频包传输给右声道PCM43,右声道PCM43将右声道蓝牙音频包解码成右声道PCM数据;右声道DAC44将右声道PCM数据转化为右声道模拟信号;右声道PA45将右声道模拟信号放大后,输出至右声道播放部件46进行播放。另一方面,右声道蓝牙发送部件47还将右声道蓝牙音频包发送至下一右声道蓝牙耳机。
在上述示例性方案中,手机的使用带宽:W=发送带宽W/2+发送带宽W/2;蓝牙耳机的使用带宽:W=接收带宽W/2+发送带宽W/2,达到了蓝牙带宽能力最大化使用,实现了高品质音频不必因蓝牙带宽的损失带来音频质量下降的多耳机分享方案。
然而,上述相关方案中的各个蓝牙耳机的性能相当,而并未考虑到蓝牙耳机的传输性能不一致的情况。比如,对于同一个蓝牙芯片,不同的产品设计可能会导致的性能不一致,或者,蓝牙芯片升级带来的产品性能不一致的情况。因此,本申请实施例提供了一种充分考虑到蓝牙设备的传输性能不一致的解决方案。
图5示出了本申请的一个示例性实施例提供的蓝牙多媒体包的传输系统的结构框图。该传输系统包括:主蓝牙设备和至少两个(从)蓝牙设备。
主蓝牙设备表示为主蓝牙设备10,主蓝牙设备10是提供蓝牙多媒体包的源设备。主蓝牙设备10的设备类型包括手机、平板电脑、电视、台式机、游戏主机、虚拟现实(Virtual Reality,VR)设备、增强现实(Augmented Reality,AR)设备等。至少两个(从)蓝牙设备依次表示为蓝牙设备21、蓝牙设备22……蓝牙设备2n。上述至少两个蓝牙设备采用链式传输路径分享来自主蓝牙设备10的蓝牙多媒体包,链式传输路径中的各个蓝牙设备依次连接。
主蓝牙设备基于至少两个蓝牙设备之间的传输带宽确定第一链式传输路径;控制至少两个蓝牙设备按照第一链式传输路径传输蓝牙多媒体包;其中,第一链式传输路径中的第一蓝牙设备向第二蓝牙设备发送蓝牙多媒体包。
示例性的,在第一链式传输路径中包括多个蓝牙设备,第一蓝牙设备是第一链式传输路径中任意两个相邻蓝牙设备中在前的蓝牙设备,第二蓝牙设备是第一链式传输路径中任意两个相邻蓝牙设备中在后的蓝牙设备。对于除第一个蓝牙设备和最后一个蓝牙设备之外的蓝牙设备,该蓝牙设备可以作为第一蓝牙设备,也可以作为第二蓝牙设备。
示例性的,蓝牙设备21与蓝牙设备22之间的传输带宽为传输带宽1,蓝牙设备22与蓝牙设备23之间的传输带宽为传输带宽2,以此类推,蓝牙设备2n-1与蓝牙设备2n之间的传输带宽为传输带宽n。则主蓝牙设备10可以基于传输带宽1、传输带宽2至传输带宽n确定出第一链式传输路径,假设主蓝牙设备10向蓝牙设备21发送蓝牙多媒体包,蓝牙设备21向蓝牙设备22发送蓝牙多媒体包,蓝牙设备22向蓝牙设备23发送蓝牙多媒体包,以此类推,蓝牙设备2n-1向蓝牙设备2n发送蓝牙多媒体包,则第一链式传输路径中的各蓝牙设备依次为:蓝牙设备21、蓝牙设备22至蓝牙设备2n。
示例性的,在第一链式传输路径中,蓝牙设备21与蓝牙设备22相邻,蓝牙设备22与蓝牙设备23相 邻,以此类推,蓝牙设备2n-1与蓝牙设备2n相邻。对于蓝牙设备21与蓝牙设备22,则蓝牙设备21是第一蓝牙设备,蓝牙设备22是第二蓝牙设备,对于蓝牙设备22和蓝牙设备23,则蓝牙设备22是第一蓝牙设备,蓝牙设备23是第二蓝牙设备,以此类推,对于蓝牙设备2n-1与蓝牙设备2n,则蓝牙设备2n-1是第一蓝牙设备,蓝牙设备2n是第二蓝牙设备。
由此可知,主蓝牙设备10向蓝牙设备21发送蓝牙多媒体包,然后,在第一链式传输路径中,蓝牙设备21向蓝牙设备22发送蓝牙多媒体包,蓝牙设备22向蓝牙设备23发送蓝牙多媒体包,以此类推,蓝牙设备2n-1向蓝牙设备2n发送蓝牙多媒体包。
至少两个蓝牙设备中除最后一个蓝牙设备之外的任一蓝牙设备,用于基于主蓝牙设备的控制,作为第一链式传输路径中的第一蓝牙设备向第二蓝牙设备发送蓝牙多媒体包。
示例性的,至少两个蓝牙设备中除最后一个蓝牙设备2n之外的任一蓝牙设备,用于基于主蓝牙设备10的控制,作为第一链式传输路径中的第一蓝牙设备向第二蓝牙设备发送蓝牙多媒体包。
示例性的,蓝牙设备21基于主蓝牙设备10的控制,作为第一链式传输路径中的第一蓝牙设备,向第二蓝牙设备即蓝牙设备22发送蓝牙多媒体包,蓝牙设备22基于主蓝牙设备10的控制,作为第一链式传输路径中的第一蓝牙设备,向第二蓝牙设备即蓝牙设备23发送蓝牙多媒体包,以此类推,蓝牙设备2n-1基于主蓝牙设备10的控制,作为第一链式传输路径中的第一蓝牙设备,向第二蓝牙设备即蓝牙设备2n发送蓝牙多媒体包。
主蓝牙设备在至少两个蓝牙设备之间的传输带宽的变化程度达到条件时,基于变化后的传输带宽确定第二链式传输路径,第二链式传输路径与第一链式传输路径不同;控制至少两个蓝牙设备按照第二链式传输路径传输蓝牙多媒体包;其中,第二链式传输路径中的第一蓝牙设备向第二蓝牙设备发送蓝牙多媒体包。
示例性的,上述条件是指第一链式传输路径需要进行路径调整的条件,比如,该条件可以设置为传输带宽的增大量或减小量大于或等于预设量,或设置为传输带宽的增大幅度或减小幅度大于或等于预设幅度等。主蓝牙设备10在至少两个蓝牙设备之间的传输带宽的变化程度达到条件时,即第一链式传输路径需要进行路径调整。则可以基于变化后的传输带宽确定第二链式传输路径,第二链式传输路径的确定原理与第一链式传输路径的确定原理一致。
至少两个蓝牙设备中除最后一个蓝牙设备之外的任一蓝牙设备,用于基于主蓝牙设备的控制,作为第二链式传输路径中的第一蓝牙设备向第二蓝牙设备发送蓝牙多媒体包。
上述至少两个蓝牙设备可以是相同类型的蓝牙设备,或不同类型的蓝牙设备,或不完全相同类型的蓝牙设备。上述至少两个蓝牙设备的传输性能可以是相同的,或不同的,或不完全相同的。传输性能可以是指传输带宽、传输速率、功耗大小、延时大小等等。
在不同的实施例中,上述链式传输路径可理解为:链式路径、链式分享路径等其它同义词。上述蓝牙多媒体包可理解为:蓝牙帧、蓝牙多媒体帧、蓝牙音频帧、蓝牙视频帧、蓝牙VR帧、蓝牙AR帧、蓝牙游戏控制帧、蓝牙音频包、蓝牙视频包、蓝牙VR包、蓝牙VR包、蓝牙AR包、蓝牙游戏控制包等等。
图6示出的是本申请一个示例性实施例提供的蓝牙多媒体包的传输方法的流程图,以该方法由图5所示的主蓝牙设备执行进行说明。该方法包括:
步骤620,基于至少两个蓝牙设备之间的传输带宽确定第一链式传输路径。
传输带宽是指蓝牙设备之间进行蓝牙多媒体包传输时所占用或所使用的带宽。传输带宽可以包括主蓝牙设备与至少两个蓝牙设备中的每个蓝牙设备之间的传输带宽,以及至少两个蓝牙设备中的任意两个蓝牙设备之间的传输带宽。
主蓝牙设备与至少两个蓝牙设备通过链式传输路径进行蓝牙多媒体包的传输。将主蓝牙设备基于至少两个蓝牙设备之间的传输带宽确定的链式传输路径称为第一链式传输路径。
示例性的,蓝牙设备可以接收链式传输路径上的主蓝牙设备发送的蓝牙多媒体包,或者,蓝牙设备可以接收链式传输路径上的位于该蓝牙设备之前的上一蓝牙设备发送的蓝牙多媒体包。
示例性的,当至少两个蓝牙设备为2个蓝牙设备,比如蓝牙设备1与蓝牙设备2,则蓝牙多媒体包的传输存在以下2种情况:
主蓝牙设备可以先将蓝牙多媒体包发送给蓝牙设备1,蓝牙设备1再将蓝牙多媒体包发送给蓝牙设备2;或者,主蓝牙设备可以先将蓝牙多媒体包发送给蓝牙设备2,蓝牙设备2再将蓝牙多媒体包发送给蓝牙设备1。
则上述至少两个蓝牙设备之间的传输带宽可以包括主蓝牙设备与每个蓝牙设备的传输带宽,以及至少两个蓝牙设备中的任意两个蓝牙设备之间的传输带宽,具体包括:主蓝牙设备与蓝牙设备1之间的传输带宽1、主蓝牙设备与蓝牙设备2之间的传输带宽2、蓝牙设备1与蓝牙设备2之间的传输带宽12。传输带宽1、传输带宽2与传输带宽12可以用于指示主蓝牙设备、蓝牙设备1与蓝牙设备2在第一链式传输路径中的位置。从而,确定出第一链式传输路径。
示例性的,当至少两个蓝牙设备为3个蓝牙设备,比如蓝牙设备1、蓝牙设备2与蓝牙设备3,则蓝牙多媒体包的传输存在以下6种情况:
主蓝牙设备可以先将蓝牙多媒体包发送给蓝牙设备1,蓝牙设备1再将蓝牙多媒体包发送给蓝牙设备2,蓝牙设备2再将蓝牙多媒体包发送给蓝牙设备3;或者,主蓝牙设备可以先将蓝牙多媒体包发送给蓝牙设备1,蓝牙设备1再将蓝牙多媒体包发送给蓝牙设备3,蓝牙设备3再将蓝牙多媒体包发送给蓝牙设备2;或者,主蓝牙设备可以先将蓝牙多媒体包发送给蓝牙设备2,蓝牙设备2再将蓝牙多媒体包发送给蓝牙设备1,蓝牙设备1再将蓝牙多媒体包发送给蓝牙设备3;或者,主蓝牙设备可以先将蓝牙多媒体包发送给蓝牙设备2,蓝牙设备2再将蓝牙多媒体包发送给蓝牙设备3,蓝牙设备3再将蓝牙多媒体包发送给蓝牙设备1;或者,主蓝牙设备可以先将蓝牙多媒体包发送给蓝牙设备3,蓝牙设备3再将蓝牙多媒体包发送给蓝牙设备1,蓝牙设备1再将蓝牙多媒体包发送给蓝牙设备2;或者,主蓝牙设备可以先将蓝牙多媒体包发送给蓝牙设备3,蓝牙设备3再将蓝牙多媒体包发送给蓝牙设备2,蓝牙设备2再将蓝牙多媒体包发送给蓝牙设备1。
则上述至少两个蓝牙设备之间的传输带宽可以包括主蓝牙设备与每个蓝牙设备的传输带宽,以及至少两个蓝牙设备中的任意两个蓝牙设备之间的传输带宽,具体包括:主蓝牙设备与蓝牙设备1之间的传输带宽1、主蓝牙设备与蓝牙设备2之间的传输带宽2、主蓝牙设备与蓝牙设备3之间的传输带宽3、蓝牙设备1与蓝牙设备2之间的传输带宽12、蓝牙设备1与蓝牙设备3之间的传输带宽13、蓝牙设备2与蓝牙设备3之间的传输带宽23。传输带宽1、传输带宽2与传输带宽3可以用于指示主蓝牙设备在第一链式传输路径中的下一蓝牙设备为蓝牙设备1、蓝牙设备2或蓝牙设备3中的哪一个,传输带宽12、传输带宽13与传输带宽23用于指示蓝牙设备1、蓝牙设备2与蓝牙设备3在第一链式传输路径中的位置。从而,确定出第一链式传输路径。
步骤640,控制至少两个蓝牙设备按照第一链式传输路径传输蓝牙多媒体包;其中,第一链式传输路径中的第一蓝牙设备向第二蓝牙设备发送蓝牙多媒体包。
在确定第一链式传输路径后,主蓝牙设备可以控制至少两个蓝牙设备按照第一链式传输路径传输蓝牙多媒体包。其中,第一链式传输路径中的第一蓝牙设备向第二蓝牙设备发送蓝牙多媒体包。
示例性的,在第一链式传输路径中包括多个蓝牙设备,第一蓝牙设备是第一链式传输路径中任意两个相邻蓝牙设备中在前的蓝牙设备,第二蓝牙设备是第一链式传输路径中任意两个相邻蓝牙设备中在后的蓝牙设备。对于除第一个蓝牙设备和最后一个蓝牙设备之外的蓝牙设备,该蓝牙设备可以作为第一蓝牙设备,也可以作为第二蓝牙设备。
示例性的,对于至少两个蓝牙设备中的某个蓝牙设备,该蓝牙设备可以接收主蓝牙设备发送的蓝牙多媒体包,或,该蓝牙设备可以接收第一链式传输路径中位于该蓝牙设备之前的其他蓝牙设备发送的蓝牙多媒体包。
示例性的,在本申请实施例的链式传输路径中,第一蓝牙设备与第二蓝牙设备之间基于蓝牙技术进行单播通信。上述蓝牙多媒体包在传输时还支持重传机制,以确保传输质量。
可选地,当蓝牙设备为第一链式传输路径中的最后一个蓝牙设备时,主蓝牙设备可不执行控制该蓝牙设备继续传输蓝牙多媒体包的步骤。
综上所述,本申请实施例提供的方法,通过链式传输路径,可以实现多个蓝牙设备之间传输同一份蓝牙多媒体包,实现了蓝牙多媒体包的分享。本申请实施例中,通过基于至少两个蓝牙设备之间的传输带宽确定第一链式传输路径,还充分考虑到不同蓝牙设备的传输性能不一致的情况,可以使得传输带宽利用率最大化,尽量保证多个蓝牙设备所使用的总带宽最大化,确保链式传输路径中的蓝牙多媒体包的传输质量,还可以进一步保证多个蓝牙设备的使用总时长最长。
可选地,在第一链式传输路径中的第一带宽大于或等于第二带宽;
第一带宽是第一蓝牙设备和上一蓝牙设备之间的传输带宽,上一蓝牙设备是在第一链式传输路径中位于第一蓝牙设备之前的主蓝牙设备或其他蓝牙设备;第二带宽是第一蓝牙设备和第二蓝牙设备之间的传输带宽。
可选地,该方法还包括:
获取至少两个蓝牙设备中的任意两个蓝牙设备之间的传输带宽,以及,获取主蓝牙设备和至少两个蓝牙设备之间的传输带宽。
可选地,获取至少两个蓝牙设备中的任意两个蓝牙设备之间的传输带宽,包括:
接收至少两个蓝牙设备中每个蓝牙设备上报的传输带宽,传输带宽是每个蓝牙设备与其他蓝牙设备之间的传输带宽。
可选地,每个蓝牙设备与其他蓝牙设备之间的传输带宽是每个蓝牙设备基于如下方式中的至少一种确定的:
基于初始协商过程中其他蓝牙设备的带宽能力信息确定;
基于来自其他蓝牙设备的蓝牙报文的信号强度确定;
基于传输过程中的发包成功率或丢包率确定。
可选地,获取主蓝牙设备和至少两个蓝牙设备之间的传输带宽,包括如下步骤中的至少之一:
基于初始协商过程中至少两个蓝牙设备的带宽能力信息,确定主蓝牙设备和至少两个蓝牙设备之间的传输带宽;
基于来自至少两个蓝牙设备的蓝牙报文的信号强度,确定主蓝牙设备和至少两个蓝牙设备之间的传输带宽;
基于传输过程中的发包成功率或丢包率,确定主蓝牙设备和至少两个蓝牙设备之间的传输带宽。
可选地,该方法还包括:
在至少两个蓝牙设备之间的传输带宽的变化程度达到条件时,基于变化后的传输带宽确定第二链式传输路径,第二链式传输路径与第一链式传输路径不同;
控制至少两个蓝牙设备按照第二链式传输路径传输蓝牙多媒体包;
其中,第二链式传输路径中的第一蓝牙设备向第二蓝牙设备发送蓝牙多媒体包。
可选地,在第二链式传输路径中的第一带宽大于或等于第二带宽;
第一带宽是第一蓝牙设备和上一蓝牙设备之间的传输带宽,上一蓝牙设备是在第二链式传输路径中位于第一蓝牙设备之前的主蓝牙设备或其他蓝牙设备;第二带宽是第一蓝牙设备和第二蓝牙设备之间的传输带宽。
可选地,至少两个蓝牙设备中的每个蓝牙设备均包括至少两个蓝牙部件;
至少两个蓝牙设备之间的传输带宽是指至少两个蓝牙部件中的每个蓝牙部件的子传输带宽之和;
或,至少两个蓝牙设备之间的传输带宽是指至少两个蓝牙部件中的每个蓝牙部件的子传输带宽中的最小子传输带宽。
可选地,该方法还包括:
播放蓝牙多媒体包。
在本申请的一个示例中,在第一链式传输路径中的第一带宽大于或等于第二带宽;第一带宽是第一蓝牙设备和上一蓝牙设备之间的传输带宽,上一蓝牙设备是在第一链式传输路径中位于第一蓝牙设备之前的主蓝牙设备或其他蓝牙设备;第二带宽是第一蓝牙设备和第二蓝牙设备之间的传输带宽。
示例性的,第一链式传输路径是基于至少两个蓝牙设备之间的传输带宽依次降序排列而确定的。进一步地,根据蓝牙设备所在第一链式传输路径中的位置,当蓝牙设备作为第一蓝牙设备时,该蓝牙设备与上一蓝牙设备之间的传输带宽可作为第一带宽,当蓝牙设备作为第二蓝牙设备时,该蓝牙设备与上一蓝牙设备(也即第一蓝牙设备)之间的传输带宽也可作为第二带宽,具体需根据实际情况确定。
示例性的,当至少两个蓝牙设备为2个蓝牙设备,比如蓝牙设备1与蓝牙设备2,假设主蓝牙设备先将蓝牙多媒体包发送给蓝牙设备1,蓝牙设备1再将蓝牙多媒体包发送给蓝牙设备2,即第一链式传输路径中各个蓝牙设备的顺序为:蓝牙设备1、蓝牙设备2。则蓝牙设备1为第一蓝牙设备,蓝牙设备2为第二蓝牙设备,则主蓝牙设备与蓝牙设备1之间的传输带宽1为第一带宽,蓝牙设备1与蓝牙设备2之间的传输带宽12为第二带宽,第一带宽大于或等于第一带宽。
示例性的,当至少两个蓝牙设备为3个蓝牙设备,比如蓝牙设备1、蓝牙设备2与蓝牙设备3,假设主蓝牙设备先将蓝牙多媒体包发送给蓝牙设备1,蓝牙设备1再将蓝牙多媒体包发送给蓝牙设备2,蓝牙设备2再将蓝牙多媒体包发送给蓝牙设备3,即第一链式传输路径中各个蓝牙设备的顺序为:蓝牙设备1、蓝牙设备2、蓝牙设备3。则对于蓝牙设备1与蓝牙设备2,蓝牙设备1为第一蓝牙设备,蓝牙设备2为第二蓝牙设备;对于蓝牙设备2与蓝牙设备3,蓝牙设备2为第一蓝牙设备,蓝牙设备3为第二蓝牙设备。则主蓝牙设备与蓝牙设备1之间的传输带宽1,大于或等于蓝牙设备1与蓝牙设备2之间的传输带宽12,大于或等于蓝牙设备2与蓝牙设备3之间的传输带宽23。则对于传输带宽1与传输带宽12,传输带宽1即为第一带宽,传输带宽12即为第二带宽。对于传输带宽12与传输带宽13,传输带宽12即为第一带宽,传输带宽13即为第二带宽。
本实施例中,使在第一链式传输路径中的第一带宽大于或等于第二带宽,考虑到不同蓝牙设备的传输性能不一致的情况,可以按照蓝牙设备的带宽能力确定第一链式传输路径,以确保链式传输路径中的蓝牙多媒体包的传输质量。
在本申请的一个示例中,主蓝牙设备需要获取到所涉及的蓝牙设备的所有传输带宽的相关数据,才可以基于至少两个蓝牙设备之间的传输带宽确定第一链式传输路径。则该方法还包括:获取至少两个蓝牙设备中的任意两个蓝牙设备之间的传输带宽,以及,获取主蓝牙设备和至少两个蓝牙设备之间的传输带宽。
示例性的,传输带宽可以包括主蓝牙设备与至少两个蓝牙设备中的每个蓝牙设备之间的传输带宽,以 及至少两个蓝牙设备中的任意两个蓝牙设备之间的传输带宽。即可以获取至少两个蓝牙设备中的任意两个蓝牙设备之间的传输带宽,以及,获取主蓝牙设备和至少两个蓝牙设备之间的传输带宽。从而,确定出第一链式传输路径。
本实施例中,通过获取上述类型的传输带宽,可以确保尽可能获取所有的蓝牙多媒体包传输的相关信息,提高后续确定的第一链式传输路径的准确性。
在一个实施例中,获取至少两个蓝牙设备中的任意两个蓝牙设备之间的传输带宽,包括:接收至少两个蓝牙设备中每个蓝牙设备上报的传输带宽,传输带宽是每个蓝牙设备与其他蓝牙设备之间的传输带宽。
示例性的,主蓝牙设备获取的传输带宽可以是由至少两个蓝牙设备中每个蓝牙设备自行上报。每个蓝牙设备自行上报的上报时机,可以是周期性上报,例如,按照预定时间周期进行周期性上报。还可以是事件触发性上报,例如,在蓝牙通信的过程中有新的蓝牙设备加入,或有蓝牙设备退出等事件时触发上报。其中,蓝牙设备退出可以是用户操作蓝牙设备主动退出,或蓝牙设备电量不足退出等情况。对于主蓝牙设备,可以接收至少两个蓝牙设备中每个蓝牙设备上报的传输带宽,传输带宽是每个蓝牙设备与其他蓝牙设备之间的传输带宽。
示例性的,对于至少两个蓝牙设备中的任意一个蓝牙设备,该蓝牙设备向主蓝牙设备上报传输带宽的时刻,可以是在该蓝牙设备与主蓝牙设备本次建立了蓝牙通信连接、且进行了至少一次蓝牙数据传输后的任意时刻;或者,还可以是在该蓝牙设备与主蓝牙设备本次建立了蓝牙通信连接、且未进行蓝牙数据传输的时刻。
其中,上述未进行蓝牙数据传输可以具体包括以下至少一种情况:至少两个蓝牙设备中的所有其他蓝牙设备与主蓝牙设备均未进行蓝牙数据传输;或者,该蓝牙设备未进行蓝牙数据传输、但至少两个蓝牙设备中的至少一个其他蓝牙设备与主蓝牙设备进行了至少一次蓝牙数据传输。
可选地,上述蓝牙数据可以包括蓝牙多媒体包、蓝牙报文中的至少一种,蓝牙报文可以是蓝牙广播报文和蓝牙数据报文中的至少一种。
本实施例中,通过接收每个蓝牙设备自行上报的传输带宽,可以提高获取到多个传输带宽的速度,提高确定第一链式传输路径的效率。
在本申请的一个示例中,针对涉及的至少两个蓝牙设备,每个蓝牙设备与其他蓝牙设备之间的传输带宽是每个蓝牙设备基于如下方式中的至少一种确定的:
基于初始协商过程中其他蓝牙设备的带宽能力信息确定;
基于来自其他蓝牙设备的蓝牙报文的信号强度确定;
基于传输过程中的发包成功率或丢包率确定。
示例性的,该初始协商过程是指至少两个蓝牙设备中的任意两个蓝牙设备本次建立蓝牙通信连接时,通过蓝牙传输协议进行握手谈判的过程。
初始协商过程可携带有进行握手谈判的两个蓝牙设备的带宽能力信息,带宽能力信息可以是蓝牙设备支持的最大传输带宽,还可以是蓝牙设备的每个蓝牙部件的子传输带宽。每个蓝牙设备可以基于初始协商过程中其他蓝牙设备的带宽能力信息,确定每个蓝牙设备与其他蓝牙设备之间的传输带宽。
可选地,蓝牙传输协议可以是蓝牙控制电话协议(Hands-free Profile,HFP)、蓝牙音频传输协议(Advanced Audio Distribution Profile,A2DP)、音频/视频远程控制规范(Audio/Video Remote Control Profile,AVRCP)等协议中的至少一种。
可选地,蓝牙传输协议还可以是私有通信协议,即仅至少两个蓝牙设备中的目标蓝牙设备之间进行蓝牙通信所遵循的通信协议,而并非至少两个蓝牙设备中的所有蓝牙设备之间均遵循的通信协议,比如,相同的生产厂商的目标蓝牙设备之间遵循相同的私有通信协议。
可选地,蓝牙报文可以是蓝牙广播报文和蓝牙数据报文中的至少一种。其中,蓝牙数据报文可以被建立了蓝牙通信连接的两个蓝牙设备所理解,蓝牙广播报文可以广播给多个蓝牙设备或仅广播给特定蓝牙设备。
示例性的,两个蓝牙设备之间的蓝牙报文的信号强度与该两个蓝牙设备之间的传输带宽正相关。蓝牙报文的信号强度越强,则对应的两个蓝牙设备之间的传输带宽越大。从而,每个蓝牙设备可以基于来自其他蓝牙设备的蓝牙报文的信号强度,确定每个蓝牙设备与其他蓝牙设备之间的传输带宽。
可选地,可以将各蓝牙报文的信号强度进行直接比较,以信号强度的大小表征传输带宽的大小,或,还可以根据实际技术需要设置蓝牙报文的信号强度阈值,当蓝牙报文的信号强度大于或等于该信号强度阈值,可认为该蓝牙报文的信号强度强,当蓝牙报文的信号强度小于该信号强度阈值,可认为该蓝牙报文的信号强度弱,根据信号强度的相对强弱表征传输带宽的大小。
示例性的,传输过程中的发包成功率或丢包率用于表征蓝牙多媒体包是否由第一蓝牙设备成功发送至第二蓝牙设备。需要说明,此处的发包与丢包可以是指发送蓝牙多媒体包,还可以是指发送其他特定蓝牙数据包,在此不做限制。
传输过程中的两个蓝牙设备之间的发包成功率与该两个蓝牙设备之间的传输带宽正相关,传输过程中的两个蓝牙设备之间的丢包率与该两个蓝牙设备之间的传输带宽负相关。两个蓝牙设备之间的发包成功率越大,或丢包率越小,则该两个蓝牙设备之间的传输带宽越大。从而,每个第一蓝牙设备可以基于传输过程中的发包成功率或丢包率,确定第一蓝牙设备与第二蓝牙设备之间的传输带宽。
可选地,可以将传输过程中的各发包成功率或丢包率进行直接比较,以表征传输带宽的大小,或,还可以预先设置传输过程中的发包成功率或丢包率与传输带宽的数值之间的对应关系,根据发包成功率或丢包率确定对应的传输带宽的数值大小。
本实施例中,每个蓝牙设备可通过多种方式获取到每个蓝牙设备与其他蓝牙设备之间的传输带宽,提高了确定传输带宽的效率以及确定方式的可行性。
在本申请的一个示例中,主蓝牙设备获取主蓝牙设备和至少两个蓝牙设备之间的传输带宽,包括如下步骤中的至少之一:
基于初始协商过程中至少两个蓝牙设备的带宽能力信息,确定主蓝牙设备和至少两个蓝牙设备之间的传输带宽;
基于来自至少两个蓝牙设备的蓝牙报文的信号强度,确定主蓝牙设备和至少两个蓝牙设备之间的传输带宽;
基于传输过程中的发包成功率或丢包率,确定主蓝牙设备和至少两个蓝牙设备之间的传输带宽。
示例性的,该初始协商过程是指至少两个蓝牙设备中的任意蓝牙设备与主蓝牙设备本次建立蓝牙通信连接时,通过蓝牙传输协议进行握手谈判的过程。
初始协商过程可携带有进行握手谈判的主蓝牙设备与至少两个蓝牙设备中的任意蓝牙设备的带宽能力信息,带宽能力信息可以是蓝牙设备支持的最大传输带宽,还可以是蓝牙设备的每个蓝牙部件的子传输带宽。主蓝牙设备可以基于初始协商过程中至少两个蓝牙设备的带宽能力信息,确定主蓝牙设备和至少两个蓝牙设备中每个蓝牙设备之间的传输带宽。
可选地,蓝牙传输协议可以是蓝牙控制电话协议(Hands-free Profile,HFP)、蓝牙音频传输协议(Advanced Audio Distribution Profile,A2DP)、音频/视频远程控制规范(Audio/Video Remote Control Profile,AVRCP)等协议中的至少一种。
可选地,蓝牙传输协议还可以是私有通信协议,即仅主蓝牙设备与至少两个蓝牙设备中的目标蓝牙设备之间进行蓝牙通信所遵循的通信协议,而并非主蓝牙设备与至少两个蓝牙设备中的所有蓝牙设备之间均遵循的通信协议,比如,相同的生产厂商的主蓝牙设备与目标蓝牙设备之间遵循相同的私有通信协议。
示例性的,蓝牙报文可以是蓝牙广播报文和蓝牙数据报文中的至少一种。其中,蓝牙数据报文可以被建立了蓝牙通信连接的主蓝牙设备与蓝牙设备所理解,蓝牙广播报文可以广播给多个蓝牙设备或仅广播给特定蓝牙设备。
主蓝牙设备与蓝牙设备之间的蓝牙报文的信号强度,与该主蓝牙设备与该蓝牙设备之间的传输带宽正相关。蓝牙报文的信号强度越强,则对应的主蓝牙设备与该蓝牙设备之间的传输带宽越大。从而,主蓝牙设备可以基于来自至少两个蓝牙设备的蓝牙报文的信号强度,确定主蓝牙设备和至少两个蓝牙设备中每个蓝牙设备之间的传输带宽。
可选地,可以将各蓝牙报文的信号强度进行直接比较,以信号强度的大小表征传输带宽的大小,或,还可以根据实际技术需要设置蓝牙报文的信号强度阈值,当蓝牙报文的信号强度大于或等于该信号强度阈值,可认为该蓝牙报文的信号强度强,当蓝牙报文的信号强度小于该信号强度阈值,可认为该蓝牙报文的信号强度弱,根据信号强度的相对强弱表征传输带宽的大小。
示例性的,传输过程中的发包成功率或丢包率用于表征蓝牙多媒体包是否由主蓝牙设备成功发送至蓝牙设备。需要说明,此处的发包与丢包可以是指发送蓝牙多媒体包,还可以是指发送其他特定蓝牙数据包,在此不做限制。
传输过程中的主蓝牙设备与蓝牙设备之间的发包成功率,与该主蓝牙设备与该蓝牙设备之间的传输带宽正相关,传输过程中的主蓝牙设备与蓝牙设备之间的丢包率,与该主蓝牙设备与该蓝牙设备之间的传输带宽负相关。主蓝牙设备与蓝牙设备之间的发包成功率越大,或丢包率越小,则该主蓝牙设备与该蓝牙设备之间的传输带宽越大。
可选地,可以将传输过程中的各发包成功率或丢包率进行直接比较,以表征传输带宽的大小,或,还可以预先设置传输过程中的发包成功率或丢包率与传输带宽的数值之间的对应关系,根据发包成功率或丢包率确定对应的传输带宽的数值大小。
本实施例中,可通过多种方式获取到主蓝牙设备和至少两个蓝牙设备之间的传输带宽,可以提高传输带宽获取的速度,从而提高后续确定链式传输路径的效率。
在本申请的一个示例中,结合实际技术场景,与主蓝牙设备进行蓝牙通信的各蓝牙设备的数量、种类 是可变的。例如,在主蓝牙设备与蓝牙设备进行蓝牙通信的过程中有新的蓝牙设备加入,或有蓝牙设备退出等,从而,链式传输路径也是可变的。则该方法还可以包括:
在至少两个蓝牙设备之间的传输带宽的变化程度达到条件时,基于变化后的传输带宽确定第二链式传输路径,第二链式传输路径与第一链式传输路径不同;
控制至少两个蓝牙设备按照第二链式传输路径传输蓝牙多媒体包;其中,第二链式传输路径中的第一蓝牙设备向第二蓝牙设备发送蓝牙多媒体包。
示例性的,至少两个蓝牙设备之间的传输带宽产生变化,该变化可以是传输带宽的数量和/或数值产生变化,该变化可以是在蓝牙通信的过程中随时产生的变化和/或周期性产生的变化。以上几种变化方式可以进行任意的组合。
比如,当任意时刻有新的蓝牙设备加入,或有蓝牙设备退出,传输带宽的数量、数值可能会随时产生变化。比如,主蓝牙设备按照预定时间周期对至少两个蓝牙设备之间的传输带宽进行检测,用以保证链式传输路径的传输质量,在传输带宽的检测前后均不存在新的蓝牙设备加入,或有蓝牙设备的退出,传输带宽的数值可能会周期性产生变化。
示例性的,至少两个蓝牙设备之间的传输带宽的变化程度可以用至少两个蓝牙设备的带宽能力信息、蓝牙报文的信号强度和传输过程中的发包成功率或丢包率中的至少一种确定。相应的,至少两个蓝牙设备之间的传输带宽的变化程度所需达到的条件与上述传输带宽的变化程度的确定方式相匹配。该变化程度可以用增大量或减小量表征,还可以以增大幅度或减小幅度表征等。变化程度达到条件,该条件即是第一链式传输路径需要进行路径调整所需满足的条件。
比如,根据至少两个蓝牙设备的带宽能力信息,确定至少两个蓝牙设备之间的传输带宽的增大量或减小量大于或等于预设量,或者,确定至少两个蓝牙设备之间的传输带宽的增大幅度或减小幅度大于或等于预设幅度,则确定至少两个蓝牙设备之间的传输带宽的变化程度达到条件,即第一链式传输路径需要进行路径调整。
又例如,根据至少两个蓝牙设备的蓝牙报文的信号强度,确定至少两个蓝牙设备之间的传输带宽的增大量或减小量大于或等于预设量,或者,确定至少两个蓝牙设备之间的传输带宽的增大幅度或减小幅度大于或等于预设幅度,则确定至少两个蓝牙设备之间的传输带宽的变化程度达到条件,即第一链式传输路径需要进行路径调整。
在一个示例中,在至少两个蓝牙设备之间的传输带宽的变化程度达到条件时,则第一链式传输路径需要进行路径调整。将基于变化后的传输带宽确定的链式传输路径称为是第二链式传输路径,可以理解的,第二链式传输路径与第一链式传输路径不同。
例如,当至少两个蓝牙设备为3个蓝牙设备,比如蓝牙设备1、蓝牙设备2与蓝牙设备3,假设主蓝牙设备先将蓝牙多媒体包发送给蓝牙设备1,蓝牙设备1再将蓝牙多媒体包发送给蓝牙设备2,蓝牙设备2再将蓝牙多媒体包发送给蓝牙设备3。假设蓝牙设备2退出了蓝牙通信,则此时传输系统包括主蓝牙设备、蓝牙设备1和蓝牙设备3,即可确定至少两个蓝牙设备之间的传输带宽的变化程度达到条件。此时,传输带宽包括主蓝牙设备与蓝牙设备1之间的传输带宽1,主蓝牙设备与蓝牙设备3之间的传输带宽3,以及蓝牙设备1和蓝牙设备3之间的传输带宽13。则主蓝牙设备可基于上述传输带宽1、传输带宽3和传输带宽13确定出第二链式传输路径。
示例性的,在确定第二链式传输路径后,主蓝牙设备可以控制至少两个蓝牙设备按照第二链式传输路径传输蓝牙多媒体包。其中,第二链式传输路径中的第一蓝牙设备向第二蓝牙设备发送蓝牙多媒体包。
需要说明,主蓝牙设备控制至少两个蓝牙设备按照第二链式传输路径传输蓝牙多媒体包的方式,与主蓝牙设备控制至少两个蓝牙设备按照第一链式传输路径传输蓝牙多媒体包的方式的原理一致,在此不再赘述。
本实施例中,通过在达到一定条件时,基于变化后的传输带宽重新确定链式传输路径,可以实现链式传输路径的实时动态调整,可以总是确保链式传输路径的准确性,保证在链式传输路径中蓝牙多媒体包的传输质量。
在本申请的一个示例中,与第一链式传输路径一致的,在第二链式传输路径中的第一带宽大于或等于第二带宽;第一带宽是第一蓝牙设备和上一蓝牙设备之间的传输带宽,上一蓝牙设备是在第二链式传输路径中位于第一蓝牙设备之前的主蓝牙设备或其他蓝牙设备;第二带宽是第一蓝牙设备和第二蓝牙设备之间的传输带宽。
示例性的,第二链式传输路径是基于至少两个蓝牙设备之间的传输带宽依次降序排列而确定的。进一步地,根据蓝牙设备所在第一链式传输路径中的位置,当蓝牙设备作为第一蓝牙设备时,该蓝牙设备与上一蓝牙设备之间的传输带宽可作为第一带宽,当蓝牙设备作为第二蓝牙设备时,该蓝牙设备与上一蓝牙设备(也即第一蓝牙设备)之间的传输带宽也可作为第二带宽,具体需根据实际情况确定。
比如,当至少两个蓝牙设备为2个蓝牙设备,比如,蓝牙设备1和蓝牙设备3,假设主蓝牙设备先将 蓝牙多媒体包发送给蓝牙设备1,蓝牙设备1再将蓝牙多媒体包发送给蓝牙设备3,即第二链式传输路径中各个蓝牙设备的顺序为:蓝牙设备1、蓝牙设备3。则主蓝牙设备与蓝牙设备1之间的传输带宽1,大于或等于蓝牙设备1与蓝牙设备3之间的传输带宽13。对于传输带宽1与传输带宽13,传输带宽1即为第一带宽,传输带宽13即为第二带宽。
再例如,基于上述实施例,当至少两个蓝牙设备还包括蓝牙设备4,假设主蓝牙设备先将蓝牙多媒体包发送给蓝牙设备1,蓝牙设备1再将蓝牙多媒体包发送给蓝牙设备3,蓝牙设备3再将蓝牙多媒体包发送给蓝牙设备4,即第二链式传输路径中各个蓝牙设备的顺序为:蓝牙设备1、蓝牙设备3、蓝牙设备4。则主蓝牙设备与蓝牙设备1之间的传输带宽1,大于或等于蓝牙设备1与蓝牙设备3之间的传输带宽13,大于或等于蓝牙设备3与蓝牙设备4之间的传输带宽14。对于传输带宽1与传输带宽13,传输带宽1即为第一带宽,传输带宽13即为第二带宽。对于传输带宽13与传输带宽14,传输带宽13即为第一带宽,传输带宽14即为第二带宽。
本实施例中,通过与第一链式传输路径相同的确定方式,来确定第二链式传输路径,可以保证同一个传输系统中蓝牙多媒体包的数据传输的准确性和一致性,充分考虑到不同蓝牙设备的传输性能不一致的情况,尽可能保证传输质量。
在本申请的一个示例中,至少两个蓝牙设备中的每个蓝牙设备均包括至少两个蓝牙部件。比如,蓝牙设备是TWS蓝牙耳机,则该蓝牙设备包括左声道蓝牙耳机和右声道蓝牙耳机2个蓝牙部件。蓝牙设备是蓝牙游戏手柄,则该蓝牙设备可以包括2个及以上的蓝牙游戏手柄部件。
示例性的,在每个蓝牙设备均包括至少两个蓝牙部件时,至少两个蓝牙设备之间的传输带宽是指至少两个蓝牙部件中的每个蓝牙部件的子传输带宽之和。
比如,主蓝牙设备与蓝牙耳机之间的传输带宽是指左声道蓝牙耳机的子传输带宽与右声道蓝牙耳机的子传输带宽之和。
示例性的,考虑到每个蓝牙设备所包括的至少两个蓝牙部件中每个蓝牙部件的传输性能不一致的情况,至少两个蓝牙设备之间的传输带宽是指至少两个蓝牙部件中的每个蓝牙部件的子传输带宽中的最小子传输带宽。
比如,主蓝牙设备与蓝牙耳机的左声道蓝牙耳机之间的子传输带宽,大于右声道蓝牙耳机之间的子传输带宽,即右声道蓝牙耳机的传输性能较弱,则确定主蓝牙设备与该蓝牙设备之间的传输带宽为右声道蓝牙耳机之间的子传输带宽。
本实施例中,通过上述两种传输带宽的确定方式,可以更加准确的确定出传输带宽,从而,提高确定的链式传输路径的准确性。
还需说明的是,在至少两个蓝牙设备中的每个蓝牙设备均包括至少两个蓝牙部件时,则本申请实施例方案的实现方式可以是:
主蓝牙设备基于至少两个蓝牙设备之间的传输带宽确定第一链式传输路径;控制至少两个蓝牙设备中的第一蓝牙部件按照第一链式传输路径传输第一蓝牙多媒体包,控制至少两个蓝牙设备中的第二蓝牙部件按照第一链式传输路径传输第二蓝牙多媒体包。
其中,第一链式传输路径中的第一蓝牙设备的第一蓝牙部件向第二蓝牙设备的第一蓝牙部件发送第一蓝牙多媒体包,第一链式传输路径中的第一蓝牙设备的第二蓝牙部件向第二蓝牙设备的第二蓝牙部件发送第二蓝牙多媒体包。
可选地,第一蓝牙多媒体包和第二蓝牙多媒体包在传输时采用单播通信。上述第一蓝牙多媒体包和第二蓝牙多媒体包在传输时还支持重传机制,以确保传输质量。
示例性的,以蓝牙设备是TWS蓝牙耳机为例,在确定第一链式传输路径后,控制左声道蓝牙耳机按照第一链式传输路径传输左声道蓝牙多媒体包,控制右声道蓝牙耳机按照第一链式传输路径传输右声道蓝牙多媒体包。
本实施例中,将蓝牙多媒体包分别按照左右声道进行传输,可以实现针对性传输,还可以使得蓝牙多媒体包的传输过程更加独立,在其中一个声道的蓝牙多媒体包传输发生错误时不影响另一声道的蓝牙多媒体包传输,在一定程度上可以提高用户体验。
在一个示例中,该方法还包括:播放蓝牙多媒体包。
可选地,主蓝牙设备可以不播放任意一个蓝牙多媒体包,仅执行蓝牙多媒体包的传输;或者,播放一部分蓝牙多媒体包,比如标识为需要自身播放的蓝牙多媒体包;或者,播放所有蓝牙多媒体包。主蓝牙设备所播放的蓝牙多媒体包可以根据具体的实现而定,在此不再赘述。
本实施例中,主蓝牙设备还可以根据实际情况播放蓝牙多媒体包,可以有效提高用户体验。
图7示出的是本申请一个示例性实施例提供的蓝牙多媒体包的传输方法的流程图,以该方法由图5所示的(从)蓝牙设备执行进行说明。该方法包括:
步骤720,基于主蓝牙设备的控制,作为第一链式传输路径中的第一蓝牙设备向第二蓝牙设备发送蓝牙多媒体包;其中,第一链式传输路径是主蓝牙设备基于至少两个蓝牙设备之间的传输带宽确定的。
示例性的,主蓝牙设备基于至少两个蓝牙设备之间的传输带宽确定第一链式传输路径后,可以对蓝牙设备的蓝牙多媒体包的传输进行控制。具体地,蓝牙设备基于主蓝牙设备的控制,作为第一链式传输路径中的第一蓝牙设备向第二蓝牙设备发送蓝牙多媒体包。
在一些实施例中,主蓝牙设备与至少两个蓝牙设备中的每个蓝牙设备均建立有控制链路,该控制链路用于传输与蓝牙多媒体包的传输过程有关的控制信息。该控制信息包括:第一链式传输路径中每个蓝牙设备的地址、蓝牙多媒体包的序号、蓝牙多媒体包的反馈信息、蓝牙多媒体包的初传/重传信息等。从而,主蓝牙设备可以基于控制链路实现对蓝牙设备的控制。
综上所述,本实施例提供的方法,基于主蓝牙设备的控制可以实现多个蓝牙设备之间传输同一份蓝牙多媒体包,实现了蓝牙多媒体包的分享。本申请实施例中的链式传输路径的确定方式,还充分考虑到不同蓝牙设备的传输性能不一致的情况,可以确保链式传输路径中的蓝牙多媒体包的传输质量。还可以尽量保证多个蓝牙设备所使用的总带宽最大化。
可选地,该方法还包括:
向主蓝牙设备上报第一蓝牙设备与其他蓝牙设备之间的传输带宽。
可选地,该方法还包括如下步骤中的至少之一:
基于初始协商过程中其他蓝牙设备的带宽能力信息,确定第一蓝牙设备和其他蓝牙设备之间的传输带宽;
基于来自其他蓝牙设备的蓝牙报文的信号强度,确定第一蓝牙设备和其他蓝牙设备之间的传输带宽;
基于传输过程中的发包成功率或丢包率,确定第一蓝牙设备和第二蓝牙设备之间的传输带宽。
可选地,该方法还包括:
播放蓝牙多媒体包。
在本申请的一个示例中,主蓝牙设备可以获取主蓝牙设备和至少两个蓝牙设备之间的传输带宽,对于蓝牙设备,该方法还包括:向主蓝牙设备上报第一蓝牙设备与其他蓝牙设备之间的传输带宽。
示例性的,蓝牙设备作为第一链式传输路径中的第一蓝牙设备,向主蓝牙设备上报的是第一蓝牙设备与每个其他蓝牙设备之间的传输带宽,以使得主蓝牙设备获得至少两个蓝牙设备中的任意两个蓝牙设备之间的传输带宽。
本实施例中,蓝牙设备主动向主蓝牙设备上报传输带宽,可以提高主蓝牙设备获取传输带宽的效率,减少出错的可能性。
在一个实施例中,该蓝牙设备作为第一蓝牙设备,执行的方法还包括如下步骤中的至少之一:
基于初始协商过程中其他蓝牙设备的带宽能力信息,确定第一蓝牙设备和其他蓝牙设备之间的传输带宽;
基于来自其他蓝牙设备的蓝牙报文的信号强度,确定第一蓝牙设备和其他蓝牙设备之间的传输带宽;
基于传输过程中的发包成功率或丢包率,确定第一蓝牙设备和第二蓝牙设备之间的传输带宽。
示例性的,该初始协商过程是指该蓝牙设备与其他蓝牙设备本次建立蓝牙通信连接时,通过蓝牙传输协议进行握手谈判的过程。
初始协商过程可携带有进行握手谈判的该蓝牙设备与其他蓝牙设备的带宽能力信息,带宽能力信息可以是蓝牙设备支持的最大传输带宽,还可以是蓝牙设备的每个蓝牙部件的子传输带宽。该蓝牙设备可以基于初始协商过程中其他蓝牙设备的带宽能力信息,确定第一蓝牙设备和其他蓝牙设备之间的传输带宽。
示例性的,来自其他蓝牙设备的蓝牙报文的信号强度与该蓝牙设备与该其他蓝牙设备之间的传输带宽正相关。蓝牙报文的信号强度越强,则该蓝牙设备与该其他蓝牙设备之间的传输带宽越大。从而,该蓝牙设备可以基于来自其他蓝牙设备的蓝牙报文的信号强度,确定第一蓝牙设备和其他蓝牙设备之间的传输带宽。
示例性的,传输过程中的该蓝牙设备(第一蓝牙设备)与该蓝牙设备的下一蓝牙设备(第二蓝牙设备)之间的发包成功率与两个蓝牙设备之间的传输带宽正相关,传输过程中的两个蓝牙设备之间的丢包率与该两个蓝牙设备之间的传输带宽负相关。两个蓝牙设备之间的发包成功率越大,或丢包率越小,则该两个蓝牙设备之间的传输带宽越大。从而,该蓝牙设备可以基于传输过程中的发包成功率或丢包率,确定第一蓝牙设备和第二蓝牙设备之间的传输带宽。
本实施例中,蓝牙设备可通过多种方式确定出与其他蓝牙设备之间的传输带宽,提高了确定传输带宽的效率以及可行性,有利于提高后续的确定链式传输路径的效率。
在一个示例中,该方法还包括:播放蓝牙多媒体包。
可选地,至少两个蓝牙设备中的全部蓝牙设备或部分蓝牙设备用于播放蓝牙多媒体包。对于至少两个蓝牙设备中的一个蓝牙设备,可以不播放任意一个蓝牙多媒体包,仅执行蓝牙多媒体包的传输;或者,播 放一部分蓝牙多媒体包,比如标识为需要自身播放的蓝牙多媒体包;或者,播放所有蓝牙多媒体包。每个蓝牙设备所播放的蓝牙多媒体包可以根据具体的实现而定,在此不再赘述。
本实施例中,蓝牙设备还可以根据实际情况播放蓝牙多媒体包,可以有效提高用户体验。
图8示出了本申请一个示例性实施例提供的蓝牙多媒体包的传输系统的示意图。本实施例中,主蓝牙设备为手机10,蓝牙设备包括4对TWS蓝牙耳机,分别是蓝牙耳机21、蓝牙耳机22、蓝牙耳机23和蓝牙耳机24,每对TWS蓝牙耳机均包括左声道蓝牙耳机和右声蓝牙耳机。
手机10与蓝牙耳机21之间的传输带宽,为手机10与蓝牙耳机21的左声道蓝牙耳机之间的子传输带宽、以及手机与蓝牙耳机21的右声道蓝牙耳机之间的子传输带宽之和。手机10与蓝牙耳机22、手机10与蓝牙耳机23、手机10与蓝牙耳机24之间的传输带宽的确定方式,与上述确定方式一致,在此不再赘述。
蓝牙耳机21与蓝牙耳机22之间的传输带宽,为蓝牙耳机21与蓝牙耳机22的左声道蓝牙耳机之间的子传输带宽、以及蓝牙耳机21与蓝牙耳机22的右声道蓝牙耳机之间的子传输带宽之和。蓝牙耳机21与蓝牙耳机23、蓝牙耳机21与蓝牙耳机24、蓝牙耳机22与蓝牙耳机23、蓝牙耳机22与蓝牙耳机24、蓝牙耳机23与蓝牙耳机24之间的传输带宽的确定方式,与上述确定方式一致,在此不再赘述。
以下实施例是以手机10执行为例,蓝牙多媒体包的传输方法包括:
基于至少两个蓝牙设备之间的传输带宽确定第一链式传输路径;第一链式传输路径中的第一蓝牙设备向第二蓝牙设备发送蓝牙多媒体包。在第一链式传输路径中的第一带宽大于或等于第二带宽;第一带宽是第一蓝牙设备和上一蓝牙设备之间的传输带宽,上一蓝牙设备在第一链式传输路径中位于第一蓝牙设备之前的主蓝牙设备或其他蓝牙设备;第二带宽是第一蓝牙设备和第二蓝牙设备之间的传输带宽。
具体地,手机10获取的传输带宽为手机10与每对蓝牙耳机之间的传输带宽,以及任意两对蓝牙耳机之间的传输带宽。具体包括:手机10与蓝牙耳机21、手机10与蓝牙耳机22、手机10与蓝牙耳机23、手机10与蓝牙耳机24、蓝牙耳机21与蓝牙耳机22、蓝牙耳机21与蓝牙耳机23、蓝牙耳机21与蓝牙耳机24、蓝牙耳机22与蓝牙耳机23、蓝牙耳机22与蓝牙耳机24、蓝牙耳机23与蓝牙耳机24之间的传输带宽。
手机10与蓝牙耳机21之间的传输带宽、蓝牙耳机21与蓝牙耳机22之间的传输带宽、蓝牙耳机22与蓝牙耳机23之间的传输带宽、蓝牙耳机23与蓝牙耳机24之间的传输带宽依次减小,因此,确定第一链式传输路径中的各蓝牙设备依次为:蓝牙耳机21、蓝牙耳机22、蓝牙耳机23、蓝牙耳机24。
手机10控制蓝牙耳机21、蓝牙耳机22、蓝牙耳机23、蓝牙耳机24按照第一链式传输路径传输蓝牙多媒体包。
如图9所示,蓝牙耳机22断开了与手机10的蓝牙通信,此时手机10确定蓝牙耳机之间的传输带宽的变化达到条件,需要基于变化后的传输带宽确定第二链式传输路径。
基于变化后的传输带宽确定第二链式传输路径,第二链式传输路径与第一链式传输路径不同。第二链式传输路径中的第一蓝牙设备向第二蓝牙设备发送蓝牙多媒体包。在第二链式传输路径中的第一带宽大于或等于第二带宽;第一带宽是第一蓝牙设备和上一蓝牙设备之间的传输带宽,上一蓝牙设备是第一链式传输路径中位于第一蓝牙设备之前的主蓝牙设备或其他蓝牙设备;第二带宽是第一蓝牙设备和第二蓝牙设备之间的传输带宽。
具体地,手机10获取的变化后传输带宽为手机10与每对蓝牙耳机之间的传输带宽,以及任意两对蓝牙耳机之间的传输带宽。具体包括:手机10与蓝牙耳机21、手机10与蓝牙耳机23、手机10与蓝牙耳机24、蓝牙耳机21与蓝牙耳机23、蓝牙耳机21与蓝牙耳机24、蓝牙耳机23与蓝牙耳机24之间的传输带宽。
手机10与蓝牙耳机21之间的传输带宽、蓝牙耳机21与蓝牙耳机24之间的传输带宽、蓝牙耳机24与蓝牙耳机23之间的传输带宽依次减小,因此,确定第二链式传输路径中的蓝牙设备依次为:蓝牙耳机21、蓝牙耳机24、蓝牙耳机23。
手机10控制蓝牙耳机21、蓝牙耳机24、蓝牙耳机23按照第二链式传输路径传输蓝牙多媒体包。
本申请实施例的主蓝牙设备和蓝牙设备的产品实现可能有多种实现方式。在一个示例性的例子中,上述主蓝牙设备被实现称为具有蓝牙芯片的电视机,蓝牙设备被实现成为TWS蓝牙耳机。图10示出了本申请一个示例性实施例提供的蓝牙多媒体包的传输方法的场景图。当婴儿51睡着时,为了不打扰婴儿51的睡眠,妈妈52、爸爸53和哥哥54分别带着一对相同型号的TWS蓝牙耳机分享电视机内播放的影视作品,且妈妈52、爸爸53和哥哥54的TWS蓝牙耳机中蓝牙芯片的版本依次降低,也即传输性能依次下降。则可确定第一链式传输路径中的各蓝牙设备依次为妈妈52、爸爸53、哥哥54的TWS蓝牙耳机,即电视机向妈妈52的TWS蓝牙耳机发送蓝牙多媒体包,妈妈52的TWS蓝牙耳机向爸爸53的TWS蓝牙耳机发送蓝牙多媒体包,爸爸53的TWS蓝牙耳机向哥哥54的TWS蓝牙耳机发送蓝牙多媒体包,哥哥54的TWS蓝牙耳机不再执行发送蓝牙多媒体包的步骤。
图11示出了本申请一个示例性实施例提供的蓝牙多媒体包的传输控制装置的结构框图,该控制装置包括:
路径确定模块10,用于基于至少两个蓝牙设备之间的传输带宽确定第一链式传输路径;
蓝牙控制模块20,用于控制所述至少两个蓝牙设备按照所述第一链式传输路径传输蓝牙多媒体包;
其中,所述第一链式传输路径中的第一蓝牙设备向第二蓝牙设备发送所述蓝牙多媒体包。
在一个实施例中,在所述第一链式传输路径中的第一带宽大于或等于第二带宽;所述第一带宽是所述第一蓝牙设备和上一蓝牙设备之间的传输带宽,所述上一蓝牙设备是在所述第一链式传输路径中位于所述第一蓝牙设备之前的所述主蓝牙设备或其他蓝牙设备;所述第二带宽是所述第一蓝牙设备和所述第二蓝牙设备之间的传输带宽。
在一个实施例中,所述控制装置还包括获取模块。
在一个实施例中,所述获取模块,用于获取所述至少两个蓝牙设备中的任意两个蓝牙设备之间的传输带宽,以及获取所述主蓝牙设备和所述至少两个蓝牙设备之间的传输带宽。
在一个实施例中,所述获取模块,还用于接收所述至少两个蓝牙设备中每个蓝牙设备上报的传输带宽,所述传输带宽是所述每个蓝牙设备与其他蓝牙设备之间的传输带宽。
在一个实施例中,所述每个蓝牙设备与所述其他蓝牙设备之间的传输带宽是所述每个蓝牙设备基于如下方式中的至少一种确定的:
基于初始协商过程中所述其他蓝牙设备的带宽能力信息确定;
基于来自所述其他蓝牙设备的蓝牙报文的信号强度确定;
基于传输过程中的发包成功率或丢包率确定。
在一个实施例中,所述获取模块,用于基于初始协商过程中所述至少两个蓝牙设备的带宽能力信息,确定所述主蓝牙设备和所述至少两个蓝牙设备之间的传输带宽。
在一个实施例中,所述获取模块,用于基于来自所述至少两个蓝牙设备的蓝牙报文的信号强度,确定所述主蓝牙设备和所述至少两个蓝牙设备之间的传输带宽。
在一个实施例中,所述获取模块,用于基于传输过程中的发包成功率或丢包率,确定所述主蓝牙设备和所述至少两个蓝牙设备之间的传输带宽。
在一个实施例中,所述路径确定模块,还用于在所述至少两个蓝牙设备之间的传输带宽的变化程度达到条件时,基于变化后的传输带宽确定第二链式传输路径,所述第二链式传输路径与所述第一链式传输路径不同;
所述蓝牙控制模块,还用于控制所述至少两个蓝牙设备按照所述第二链式传输路径传输蓝牙多媒体包;
其中,所述第二链式传输路径中的第一蓝牙设备向第二蓝牙设备发送所述蓝牙多媒体包。
在一个实施例中,所述至少两个蓝牙设备中的每个蓝牙设备均包括至少两个蓝牙部件;
所述至少两个蓝牙设备之间的传输带宽是指所述至少两个蓝牙部件中的每个蓝牙部件的子传输带宽之和;
或,所述至少两个蓝牙设备之间的传输带宽是指所述至少两个蓝牙部件中的每个蓝牙部件的子传输带宽中的最小子传输带宽。
在一个实施例中,在所述第二链式传输路径中的第一带宽大于或等于第二带宽;所述第一带宽是所述第一蓝牙设备和上一蓝牙设备之间的传输带宽,所述上一蓝牙设备是在所述第二链式传输路径中位于所述第一蓝牙设备之前的所述主蓝牙设备或其他蓝牙设备;所述第二带宽是所述第一蓝牙设备和所述第二蓝牙设备之间的传输带宽。
在一个实施例中,所述控制装置还包括播放模块。
在一个实施例中,所述播放模块,用于播放所述蓝牙多媒体包。
图12示出了本申请一个示例性实施例提供的蓝牙多媒体包的传输装置的结构框图,该装置包括:
蓝牙发送模块30,用于基于主蓝牙设备的控制,作为第一链式传输路径中的第一蓝牙设备向第二蓝牙设备发送蓝牙多媒体包;
其中,所述第一链式传输路径是所述主蓝牙设备基于至少两个蓝牙设备之间的传输带宽确定的。
在一个实施例中,所述装置还包括上报模块。
在一个实施例中,所述上报模块,用于向所述主蓝牙设备上报所述第一蓝牙设备与其他蓝牙设备之间的传输带宽。
在一个实施例中,所述上报模块,用于基于初始协商过程中所述其他蓝牙设备的带宽能力信息,确定所述第一蓝牙设备和所述其他蓝牙设备之间的传输带宽。
在一个实施例中,所述上报模块,用于基于来自所述其他蓝牙设备的蓝牙报文的信号强度,确定所述第一蓝牙设备和所述其他蓝牙设备之间的传输带宽。
在一个实施例中,所述上报模块,用于基于传输过程中的发包成功率或丢包率,确定所述第一蓝牙设备和所述第二蓝牙设备之间的传输带宽。
在一个实施例中,所述装置还包括播放模块。
在一个实施例中,所述播放模块,用于播放所述蓝牙多媒体包。
在本申请的一个示例性实施例中还提供了一种蓝牙多媒体包的传输系统,所述传输系统包括:主蓝牙设备和至少两个蓝牙设备;
所述主蓝牙设备,用于基于所述至少两个蓝牙设备之间的传输带宽确定第一链式传输路径;控制所述至少两个蓝牙设备按照所述第一链式传输路径传输蓝牙多媒体包;其中,所述第一链式传输路径中的第一蓝牙设备向第二蓝牙设备发送所述蓝牙多媒体包;
所述至少两个蓝牙设备中除最后一个蓝牙设备之外的任一蓝牙设备,用于基于所述主蓝牙设备的控制,作为所述第一链式传输路径中的第一蓝牙设备向第二蓝牙设备发送所述蓝牙多媒体包。
在一个实施例中,所述主蓝牙设备,还用于在所述至少两个蓝牙设备之间的传输带宽的变化程度达到条件时,基于变化后的传输带宽确定第二链式传输路径,所述第二链式传输路径与所述第一链式传输路径不同;控制所述至少两个蓝牙设备按照所述第二链式传输路径传输蓝牙多媒体包;其中,所述第二链式传输路径中的第一蓝牙设备向第二蓝牙设备发送所述蓝牙多媒体包;
所述至少两个蓝牙设备中除最后一个蓝牙设备之外的任一蓝牙设备,还用于基于所述主蓝牙设备的控制,作为所述第二链式传输路径中的第一蓝牙设备向第二蓝牙设备发送所述蓝牙多媒体包。
图13示出了本申请一个示例性实施例提供的主蓝牙设备1300的结构框图。该主蓝牙设备1300可以是支持蓝牙功能的便携式移动终端,比如:智能手机、平板电脑、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、笔记本电脑或台式电脑。主蓝牙设备1300还可能被称为用户蓝牙设备、便携式终端、膝上型终端、台式终端等其他名称。
通常,主蓝牙设备1300包括有:蓝牙芯片1301和存储器1302。
蓝牙芯片1301可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。蓝牙芯片1301可以采用DSP(Digital Signal Processing,数字信号处理)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)、PLA(Programmable Logic Array,可编程逻辑阵列)中的至少一种硬件形式来实现。蓝牙芯片1301也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称CPU(Central Processing Unit,中央处理器);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,蓝牙芯片1301可以集成有GPU(Graphics Processing Unit,图像处理器),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,蓝牙芯片1301还可以包括AI(Artificial Intelligence,人工智能)处理器,该AI处理器用于处理有关机器学习的计算操作。
存储器1302可以包括一个或多个计算机可读存储介质,该计算机可读存储介质可以是非暂态的。存储器1302还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。在一些实施例中,存储器1302中的非暂态的计算机可读存储介质用于存储至少一个指令,该至少一个指令用于被蓝牙芯片1301所执行以实现本申请中方法实施例提供的蓝牙多媒体包的传输方法。
在一些实施例中,主蓝牙设备1300还可选包括有:外围设备接口1303和至少一个外围设备。蓝牙芯片1301、存储器1302和外围设备接口1303之间可以通过总线或信号线相连。各个外围设备可以通过总线、信号线或电路板与外围设备接口1303相连。具体地,外围设备包括:射频电路1304、显示屏1305、摄像头组件1306、音频电路1307、定位组件1308和电源1309中的至少一种。
外围设备接口1303可被用于将I/O(Input/Output,输入/输出)相关的至少一个外围设备连接到蓝牙芯片1301和存储器1302。在一些实施例中,蓝牙芯片1301、存储器1302和外围设备接口1303被集成在同一芯片或电路板上;在一些其他实施例中,蓝牙芯片1301、存储器1302和外围设备接口1303中的任意一个或两个可以在单独的芯片或电路板上实现,本实施例对此不加以限定。
射频电路1304用于接收和发射RF(Radio Frequency,射频)信号,也称电磁信号。射频电路1304通过电磁信号与通信网络以及其他通信设备进行通信。射频电路1304将电信号转换为电磁信号进行发送,或者,将接收到的电磁信号转换为电信号。可选地,射频电路1304包括:天线系统、RF收发器、一个或多个放大器、调谐器、振荡器、数字信号处理器、编解码芯片组、用户身份模块卡等等。射频电路1304可以通过至少一种无线通信协议来与其它终端进行通信。该无线通信协议包括但不限于:万维网、城域网、内联网、各代移动通信网络(2G、3G、4G及5G)、无线局域网和/或WiFi(Wireless Fidelity,无线保真)网络。在一些实施例中,射频电路1304还可以包括NFC(Near Field Communication,近距离无线通信)有关的电路,本申请对此不加以限定。
显示屏1305用于显示UI(User Interface,用户界面)。该UI可以包括图形、文本、图标、视频及其它们的任意组合。当显示屏1305是触摸显示屏时,显示屏1305还具有采集在显示屏1305的表面或表面上方的触摸信号的能力。该触摸信号可以作为控制信号输入至蓝牙芯片1301进行处理。此时,显示屏1305还可以用于提供虚拟按钮和/或虚拟键盘,也称软按钮和/或软键盘。在一些实施例中,显示屏1305可以为 一个,设置在主蓝牙设备1300的前面板;在另一些实施例中,显示屏1305可以为至少两个,分别设置在主蓝牙设备1300的不同表面或呈折叠设计;在另一些实施例中,显示屏1305可以是柔性显示屏,设置在主蓝牙设备1300的弯曲表面上或折叠面上。甚至,显示屏1305还可以设置成非矩形的不规则图形,也即异形屏。显示屏1305可以采用LCD(Liquid Crystal Display,液晶显示屏)、OLED(Organic Light-Emitting Diode,有机发光二极管)等材质制备。
摄像头组件1306用于采集图像或视频。可选地,摄像头组件1306包括前置摄像头和后置摄像头。通常,前置摄像头设置在终端的前面板,后置摄像头设置在终端的背面。在一些实施例中,后置摄像头为至少两个,分别为主摄像头、景深摄像头、广角摄像头、长焦摄像头中的任意一种,以实现主摄像头和景深摄像头融合实现背景虚化功能、主摄像头和广角摄像头融合实现全景拍摄以及VR(Virtual Reality,虚拟现实)拍摄功能或者其它融合拍摄功能。在一些实施例中,摄像头组件1306还可以包括闪光灯。闪光灯可以是单色温闪光灯,也可以是双色温闪光灯。双色温闪光灯是指暖光闪光灯和冷光闪光灯的组合,可以用于不同色温下的光线补偿。
音频电路1307可以包括麦克风和扬声器。麦克风用于采集用户及环境的声波,并将声波转换为电信号输入至蓝牙芯片1301进行处理,或者输入至射频电路1304以实现语音通信。出于立体声采集或降噪的目的,麦克风可以为多个,分别设置在主蓝牙设备1300的不同部位。麦克风还可以是阵列麦克风或全向采集型麦克风。扬声器则用于将来自蓝牙芯片1301或射频电路1304的电信号转换为声波。扬声器可以是传统的薄膜扬声器,也可以是压电陶瓷扬声器。当扬声器是压电陶瓷扬声器时,不仅可以将电信号转换为人类可听见的声波,也可以将电信号转换为人类听不见的声波以进行测距等用途。在一些实施例中,音频电路1307还可以包括耳机插孔。
定位组件1308用于定位主蓝牙设备1300的当前地理位置,以实现导航或LBS(Location Based Service,基于位置的服务)。定位组件1308可以是基于美国的GPS(Global Positioning System,全球定位系统)、中国的北斗系统或俄罗斯的伽利略系统的定位组件。
电源1309用于为主蓝牙设备1300中的各个组件进行供电。电源1309可以是交流电、直流电、一次性电池或可充电电池。当电源1309包括可充电电池时,该可充电电池可以是有线充电电池或无线充电电池。有线充电电池是通过有线线路充电的电池,无线充电电池是通过无线线圈充电的电池。该可充电电池还可以用于支持快充技术。
在一些实施例中,主蓝牙设备1300还包括有一个或多个传感器1310。该一个或多个传感器1310包括但不限于:加速度传感器1311、陀螺仪传感器1312、压力传感器1313、指纹传感器1314、光学传感器1315以及接近传感器1316。
加速度传感器1311可以检测以主蓝牙设备1300建立的坐标系的三个坐标轴上的加速度大小。比如,加速度传感器1311可以用于检测重力加速度在三个坐标轴上的分量。蓝牙芯片1301可以根据加速度传感器1311采集的重力加速度信号,控制显示屏1305以横向视图或纵向视图进行用户界面的显示。加速度传感器1311还可以用于游戏或者用户的运动数据的采集。
陀螺仪传感器1312可以检测主蓝牙设备1300的机体方向及转动角度,陀螺仪传感器1312可以与加速度传感器1311协同采集用户对主蓝牙设备1300的3D动作。蓝牙芯片1301根据陀螺仪传感器1312采集的数据,可以实现如下功能:动作感应(比如根据用户的倾斜操作来改变UI)、拍摄时的图像稳定、游戏控制以及惯性导航。
压力传感器1313可以设置在主蓝牙设备1300的侧边框和/或显示屏1305的下层。当压力传感器1313设置在主蓝牙设备1300的侧边框时,可以检测用户对主蓝牙设备1300的握持信号,由蓝牙芯片1301根据压力传感器1313采集的握持信号进行左右手识别或快捷操作。当压力传感器1313设置在显示屏1305的下层时,由蓝牙芯片1301根据用户对显示屏1305的压力操作,实现对UI界面上的可操作性控件进行控制。可操作性控件包括按钮控件、滚动条控件、图标控件、菜单控件中的至少一种。
指纹传感器1314用于采集用户的指纹,由蓝牙芯片1301根据指纹传感器1314采集到的指纹识别用户的身份,或者,由指纹传感器1314根据采集到的指纹识别用户的身份。在识别出用户的身份为可信身份时,由蓝牙芯片1301授权该用户执行相关的敏感操作,该敏感操作包括解锁屏幕、查看加密信息、下载软件、支付及更改设置等。指纹传感器1314可以被设置在主蓝牙设备1300的正面、背面或侧面。当主蓝牙设备1300上设置有物理按键或厂商Logo时,指纹传感器1314可以与物理按键或厂商Logo集成在一起。
光学传感器1315用于采集环境光强度。在一个实施例中,蓝牙芯片1301可以根据光学传感器1315采集的环境光强度,控制显示屏1305的显示亮度。具体地,当环境光强度较高时,调高显示屏1305的显示亮度;当环境光强度较低时,调低显示屏1305的显示亮度。在另一个实施例中,蓝牙芯片1301还可以根据光学传感器1315采集的环境光强度,动态调整摄像头组件1306的拍摄参数。
接近传感器1316,也称距离传感器,通常设置在主蓝牙设备1300的前面板。接近传感器1316用于采 集用户与主蓝牙设备1300的正面之间的距离。在一个实施例中,当接近传感器1316检测到用户与主蓝牙设备1300的正面之间的距离逐渐变小时,由蓝牙芯片1301控制显示屏1305从亮屏状态切换为息屏状态;当接近传感器1316检测到用户与主蓝牙设备1300的正面之间的距离逐渐变大时,由蓝牙芯片1301控制显示屏1305从息屏状态切换为亮屏状态。
本领域技术人员可以理解,图13中示出的结构并不构成对主蓝牙设备1300的限定,可以包括比图示更多或更少的组件,或者组合某些组件,或者采用不同的组件布置。
图14示出了本申请一个示例性实施例提供的蓝牙设备1400的结构框图,该蓝牙设备1400包括:
蓝牙部件1410,用于基于主蓝牙设备的控制,作为第一链式传输路径中的第一蓝牙设备向第二蓝牙设备发送蓝牙多媒体包;其中,所述第一链式传输路径是所述主蓝牙设备基于至少两个蓝牙设备之间的传输带宽确定的。该蓝牙部件1410可以是同时支持收发的蓝牙芯片。
在一些实施例中,所述蓝牙设备1400还包括:多媒体部件,用于播放所述蓝牙多媒体包。多媒体部件包括:解码组件1420、数模转换器1430、功率放大器1440和播放部件1450。解码部件1420用于将蓝牙多媒体包解码成脉冲编码调制(Pulse Code Modulation,PCM)数据;数模转换器1430用于将PCM数据转化为模拟信号;功率放大器1440用于将模拟信号放大后,输出至播放部件1450进行播放。
本领域技术人员可以理解,图14中示出的结构并不构成对蓝牙设备1400的限定,可以包括比图示更多或更少的组件,或者组合某些组件,或者采用不同的组件布置。
本申请实施例还提供了一种蓝牙芯片,安装有所述蓝牙芯片的主蓝牙设备用于执行上述蓝牙多媒体包的传输方法;或,安装有所述蓝牙芯片的蓝牙设备用于执行上述蓝牙多媒体包的传输方法。
本申请还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或指令集由主蓝牙设备加载并执行以实现上述蓝牙多媒体包的传输方法;或,所述至少一条指令、所述至少一段程序、所述代码集或指令集由蓝牙设备加载并执行以实现上述蓝牙多媒体包的传输方法。
本申请提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。主蓝牙设备和/或蓝牙设备从计算机可读存储介质读取该计算机指令,使得该主蓝牙设备和/或蓝牙设备执行上述方法实施例提供的蓝牙多媒体包的传输方法。
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请实施例所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机可读存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。
以上所述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。

Claims (21)

  1. 一种蓝牙多媒体包的传输方法,所述方法由主蓝牙设备执行,所述方法包括:
    基于至少两个蓝牙设备之间的传输带宽确定第一链式传输路径;
    控制所述至少两个蓝牙设备按照所述第一链式传输路径传输蓝牙多媒体包;
    其中,所述第一链式传输路径中的第一蓝牙设备向第二蓝牙设备发送所述蓝牙多媒体包。
  2. 根据权利要求1所述的方法,其中,在所述第一链式传输路径中的第一带宽大于或等于第二带宽;
    所述第一带宽是所述第一蓝牙设备和上一蓝牙设备之间的传输带宽,所述上一蓝牙设备是在所述第一链式传输路径中位于所述第一蓝牙设备之前的所述主蓝牙设备或其他蓝牙设备;
    所述第二带宽是所述第一蓝牙设备和所述第二蓝牙设备之间的传输带宽。
  3. 根据权利要求1所述的方法,其中,所述方法还包括:
    获取所述至少两个蓝牙设备中的任意两个蓝牙设备之间的传输带宽,以及,获取所述主蓝牙设备和所述至少两个蓝牙设备之间的传输带宽。
  4. 根据权利要求3所述的方法,其中,所述获取所述至少两个蓝牙设备中的任意两个蓝牙设备之间的传输带宽,包括:
    接收所述至少两个蓝牙设备中每个蓝牙设备上报的传输带宽,所述传输带宽是所述每个蓝牙设备与其他蓝牙设备之间的传输带宽。
  5. 根据权利要求4所述的方法,其中,所述每个蓝牙设备与所述其他蓝牙设备之间的传输带宽是所述每个蓝牙设备基于如下方式中的至少一种确定的:
    基于初始协商过程中所述其他蓝牙设备的带宽能力信息确定;
    基于来自所述其他蓝牙设备的蓝牙报文的信号强度确定;
    基于传输过程中的发包成功率或丢包率确定。
  6. 根据权利要求3所述的方法,其中,所述获取所述主蓝牙设备和所述至少两个蓝牙设备之间的传输带宽,包括如下步骤中的至少之一:
    基于初始协商过程中所述至少两个蓝牙设备的带宽能力信息,确定所述主蓝牙设备和所述至少两个蓝牙设备之间的传输带宽;
    基于来自所述至少两个蓝牙设备的蓝牙报文的信号强度,确定所述主蓝牙设备和所述至少两个蓝牙设备之间的传输带宽;
    基于传输过程中的发包成功率或丢包率,确定所述主蓝牙设备和所述至少两个蓝牙设备之间的传输带宽。
  7. 根据权利要求1至6任一所述的方法,其中,所述方法还包括:
    在所述至少两个蓝牙设备之间的传输带宽的变化程度达到条件时,基于变化后的传输带宽确定第二链式传输路径,所述第二链式传输路径与所述第一链式传输路径不同;
    控制所述至少两个蓝牙设备按照所述第二链式传输路径传输蓝牙多媒体包;
    其中,所述第二链式传输路径中的第一蓝牙设备向第二蓝牙设备发送所述蓝牙多媒体包。
  8. 根据权利要求7所述的方法,其中,在所述第二链式传输路径中的第一带宽大于或等于第二带宽;
    所述第一带宽是所述第一蓝牙设备和上一蓝牙设备之间的传输带宽,所述上一蓝牙设备是在所述第二链式传输路径中位于所述第一蓝牙设备之前的所述主蓝牙设备或其他蓝牙设备;
    所述第二带宽是所述第一蓝牙设备和所述第二蓝牙设备之间的传输带宽。
  9. 根据权利要求1至6任一所述的方法,其中,所述至少两个蓝牙设备中的每个蓝牙设备均包括至少两个蓝牙部件;
    所述至少两个蓝牙设备之间的传输带宽是指所述至少两个蓝牙部件中的每个蓝牙部件的子传输带宽之和;
    或,所述至少两个蓝牙设备之间的传输带宽是指所述至少两个蓝牙部件中的每个蓝牙部件的子传输带宽中的最小子传输带宽。
  10. 根据权利要求1至6任一所述的方法,其中,所述方法还包括:
    播放所述蓝牙多媒体包。
  11. 一种蓝牙多媒体包的传输方法,所述方法由蓝牙设备执行,所述方法包括:
    基于主蓝牙设备的控制,作为第一链式传输路径中的第一蓝牙设备向第二蓝牙设备发送蓝牙多媒体包;
    其中,所述第一链式传输路径是所述主蓝牙设备基于至少两个蓝牙设备之间的传输带宽确定的。
  12. 根据权利要求11所述的方法,其中,所述方法还包括:
    向所述主蓝牙设备上报所述第一蓝牙设备与其他蓝牙设备之间的传输带宽。
  13. 根据权利要求12所述的方法,其中,所述方法还包括如下步骤中的至少之一:
    基于初始协商过程中所述其他蓝牙设备的带宽能力信息,确定所述第一蓝牙设备和所述其他蓝牙设备之间的传输带宽;
    基于来自所述其他蓝牙设备的蓝牙报文的信号强度,确定所述第一蓝牙设备和所述其他蓝牙设备之间的传输带宽;
    基于传输过程中的发包成功率或丢包率,确定所述第一蓝牙设备和所述第二蓝牙设备之间的传输带宽。
  14. 根据权利要求11至13任一所述的方法,其中,所述方法还包括:
    播放所述蓝牙多媒体包。
  15. 一种蓝牙多媒体包的传输控制装置,所述控制装置包括:
    路径确定模块,用于基于至少两个蓝牙设备之间的传输带宽确定第一链式传输路径;
    蓝牙控制模块,用于控制所述至少两个蓝牙设备按照所述第一链式传输路径传输蓝牙多媒体包;其中,所述第一链式传输路径中的第一蓝牙设备向第二蓝牙设备发送所述蓝牙多媒体包。
  16. 一种蓝牙多媒体包的传输装置,所述装置包括:
    蓝牙发送模块,用于基于主蓝牙设备的控制,作为第一链式传输路径中的第一蓝牙设备向第二蓝牙设备发送蓝牙多媒体包;其中,所述第一链式传输路径是所述主蓝牙设备基于至少两个蓝牙设备之间的传输带宽确定的。
  17. 一种蓝牙多媒体包的传输系统,所述传输系统包括:主蓝牙设备和至少两个蓝牙设备;
    所述主蓝牙设备,用于基于所述至少两个蓝牙设备之间的传输带宽确定第一链式传输路径;控制所述至少两个蓝牙设备按照所述第一链式传输路径传输蓝牙多媒体包;其中,所述第一链式传输路径中的第一蓝牙设备向第二蓝牙设备发送所述蓝牙多媒体包;
    所述至少两个蓝牙设备中除最后一个蓝牙设备之外的任一蓝牙设备,用于基于所述主蓝牙设备的控制,作为所述第一链式传输路径中的第一蓝牙设备向第二蓝牙设备发送所述蓝牙多媒体包。
  18. 根据权利要求17所述的传输系统,其中,
    所述主蓝牙设备,还用于在所述至少两个蓝牙设备之间的传输带宽的变化程度达到条件时,基于变化后的传输带宽确定第二链式传输路径,所述第二链式传输路径与所述第一链式传输路径不同;控制所述至少两个蓝牙设备按照所述第二链式传输路径传输蓝牙多媒体包;其中,所述第二链式传输路径中的第一蓝牙设备向第二蓝牙设备发送所述蓝牙多媒体包;
    所述至少两个蓝牙设备中除最后一个蓝牙设备之外的任一蓝牙设备,还用于基于所述主蓝牙设备的控制,作为所述第二链式传输路径中的第一蓝牙设备向第二蓝牙设备发送所述蓝牙多媒体包。
  19. 一种蓝牙芯片,安装有所述蓝牙芯片的主蓝牙设备用于执行如权利要求1至10任一所述的蓝牙多媒体包的传输方法;或,安装有所述蓝牙芯片的蓝牙设备用于执行如权利要求11至14任一所述的蓝牙多媒体包的传输方法。
  20. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序用于被主蓝牙设备执行以实现如权利要求1至10任一所述的蓝牙多媒体包的传输方法;或,所述计算机程序用于被蓝牙设备执行以实现如权利要求11至14任一所述的蓝牙多媒体包的传输方法。
  21. 一种计算机程序产品,所述计算机程序产品包括计算机指令,所述计算机指令存储在计算机可读存储介质中,主蓝牙设备从所述计算机可读存储介质中获取所述计算机指令,使得所述主蓝牙设备加载并执行以实现如权利要求1至10任一所述的蓝牙多媒体包的传输方法;或,蓝牙设备从所述计算机可读存储介质中获取所述计算机指令,使得所述蓝牙设备加载并执行以实现如权利要求11至14任一所述的蓝牙多媒体包的传输方法。
PCT/CN2023/092083 2022-07-26 2023-05-04 蓝牙多媒体包的传输方法、装置、设备和系统 WO2024021736A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210887310.4A CN115278625A (zh) 2022-07-26 2022-07-26 蓝牙多媒体包的传输方法、装置、设备和系统
CN202210887310.4 2022-07-26

Publications (1)

Publication Number Publication Date
WO2024021736A1 true WO2024021736A1 (zh) 2024-02-01

Family

ID=83769656

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/092083 WO2024021736A1 (zh) 2022-07-26 2023-05-04 蓝牙多媒体包的传输方法、装置、设备和系统

Country Status (2)

Country Link
CN (1) CN115278625A (zh)
WO (1) WO2024021736A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115175154A (zh) * 2022-06-28 2022-10-11 哲库科技(上海)有限公司 蓝牙多媒体包的传输方法、装置、设备及系统
CN115278625A (zh) * 2022-07-26 2022-11-01 哲库科技(上海)有限公司 蓝牙多媒体包的传输方法、装置、设备和系统

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109347581A (zh) * 2018-09-30 2019-02-15 Oppo广东移动通信有限公司 蓝牙耳机连接方法、装置、电子设备及存储介质
EP3474511A1 (en) * 2017-10-20 2019-04-24 Tap Sound System A device and method for automatic switching of streaming bluetooth multimedia device
CN111435844A (zh) * 2019-11-06 2020-07-21 珠海市杰理科技股份有限公司 双无线蓝牙通信音频数据更正方法、装置、设备及系统
EP3745813A1 (en) * 2019-05-31 2020-12-02 Tap Sound System Method for operating a bluetooth device
WO2020252755A1 (zh) * 2019-06-20 2020-12-24 华为技术有限公司 低功耗蓝牙设备的信道选择方法和装置
WO2021052318A1 (zh) * 2019-09-16 2021-03-25 安徽华米信息科技有限公司 音频播放方法、装置及tws蓝牙耳机
CN115278625A (zh) * 2022-07-26 2022-11-01 哲库科技(上海)有限公司 蓝牙多媒体包的传输方法、装置、设备和系统

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3474511A1 (en) * 2017-10-20 2019-04-24 Tap Sound System A device and method for automatic switching of streaming bluetooth multimedia device
CN109347581A (zh) * 2018-09-30 2019-02-15 Oppo广东移动通信有限公司 蓝牙耳机连接方法、装置、电子设备及存储介质
EP3745813A1 (en) * 2019-05-31 2020-12-02 Tap Sound System Method for operating a bluetooth device
WO2020252755A1 (zh) * 2019-06-20 2020-12-24 华为技术有限公司 低功耗蓝牙设备的信道选择方法和装置
WO2021052318A1 (zh) * 2019-09-16 2021-03-25 安徽华米信息科技有限公司 音频播放方法、装置及tws蓝牙耳机
CN111435844A (zh) * 2019-11-06 2020-07-21 珠海市杰理科技股份有限公司 双无线蓝牙通信音频数据更正方法、装置、设备及系统
CN115278625A (zh) * 2022-07-26 2022-11-01 哲库科技(上海)有限公司 蓝牙多媒体包的传输方法、装置、设备和系统

Also Published As

Publication number Publication date
CN115278625A (zh) 2022-11-01

Similar Documents

Publication Publication Date Title
US11778363B2 (en) Audio data transmission method applied to switching between single-earbud mode and double-earbud mode of TWS headset and device
WO2024021736A1 (zh) 蓝牙多媒体包的传输方法、装置、设备和系统
US20140354441A1 (en) System and constituent media device components and media device-based ecosystem
WO2020253844A1 (zh) 多媒体信息的处理方法、装置和存储介质
WO2020156251A1 (zh) 音频的播放采集方法、装置、设备及可读存储介质
CN110618805B (zh) 调整设备电量的方法、装置、电子设备及介质
CN112771828B (zh) 一种音频数据的通信方法及电子设备
WO2021136141A1 (zh) 播放方法及电子设备
WO2021147718A1 (zh) 音频传输方法及电子设备
WO2020025034A1 (zh) 一种可穿戴设备主从切换方法及相关产品
WO2024055494A1 (zh) 基于蓝牙耳机的通话方法、装置及存储介质
CN114450971A (zh) 外部音频电子装置、电子装置和管理通信链路的方法
CN110996305A (zh) 连接蓝牙设备的方法、装置、电子设备及介质
WO2022007944A1 (zh) 一种设备控制方法及相关装置
KR20170043319A (ko) 전자 장치 및 전자 장치의 오디오 출력 방법
US20230006711A1 (en) Audio transmission method and electronic device
WO2024021735A1 (zh) 蓝牙多媒体包的传输方法、装置、设备、系统和存储介质
WO2022213689A1 (zh) 一种音频设备间语音互通的方法及设备
CN110856152A (zh) 播放音频数据的方法、装置、电子设备及介质
WO2024041189A1 (zh) 一种无线音频/视频装置和无线通信方法
WO2022048020A1 (zh) 蓝牙音箱的控制方法及系统、存储介质及移动终端
WO2022267974A1 (zh) 一种投屏方法及相关装置
US20220417689A1 (en) Audio Transmission Method and Electronic Device
WO2023185589A1 (zh) 音量控制方法及电子设备
WO2024109399A1 (zh) 状态通知方法和装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23844951

Country of ref document: EP

Kind code of ref document: A1