TWI569598B - Dynamic adjusting method of a bluetooth speaker - Google Patents

Dynamic adjusting method of a bluetooth speaker Download PDF

Info

Publication number
TWI569598B
TWI569598B TW103136450A TW103136450A TWI569598B TW I569598 B TWI569598 B TW I569598B TW 103136450 A TW103136450 A TW 103136450A TW 103136450 A TW103136450 A TW 103136450A TW I569598 B TWI569598 B TW I569598B
Authority
TW
Taiwan
Prior art keywords
sounding device
bluetooth
bluetooth sounding
audio stream
stream data
Prior art date
Application number
TW103136450A
Other languages
Chinese (zh)
Other versions
TW201616820A (en
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 絡達科技股份有限公司
Priority to TW103136450A priority Critical patent/TWI569598B/en
Publication of TW201616820A publication Critical patent/TW201616820A/en
Application granted granted Critical
Publication of TWI569598B publication Critical patent/TWI569598B/en

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Description

藍牙發聲裝置的動態調整方法 Dynamic adjustment method of Bluetooth sounding device

一種藍牙發聲裝置的動態調整方法,尤指一種藍牙發聲裝置在接收音頻串流資料封包時的動態調整方法,可在不影響藍牙發聲裝置播放類比音頻訊號的品質的前提下,降低藍牙發聲裝置所消耗的能量。 A dynamic adjustment method of a Bluetooth sounding device, in particular, a dynamic adjustment method of a Bluetooth sounding device when receiving an audio stream data packet, which can reduce the Bluetooth sounding device without affecting the quality of the analog sound signal played by the Bluetooth sounding device The energy consumed.

藍牙(bluetooth)是一種常見的無線傳輸技術,普遍被應用在短距離的資料傳輸。在透過藍牙進行資料傳輸時,可將兩個電子裝置的其中一個定義為主裝置(Master),而另一個電子裝置則被定義為從屬裝置(Slave)。主裝置及從屬裝置之間會進行配對,並架構出個人區域網路(personal area networks),使得主裝置及從屬裝置可透過無線的方式進行資料的傳輸。一般而言,主裝置可以是手機,而從屬裝置則是藍牙耳機或喇叭,其中手機可透過藍牙將數位聲音資料傳送至藍牙耳機或喇叭進行播放,而藍牙耳機亦可將數位聲音資料傳送至手機。 Bluetooth is a common wireless transmission technology that is commonly used for short-distance data transmission. In data transmission via Bluetooth, one of the two electronic devices can be defined as a master and the other electronic device as a slave. The master device and the slave device are paired together, and a personal area network is constructed, so that the master device and the slave device can transmit data through wireless. In general, the main device can be a mobile phone, and the slave device is a Bluetooth headset or a speaker, wherein the mobile phone can transmit the digital sound data to the Bluetooth earphone or the speaker through the Bluetooth, and the Bluetooth earphone can also transmit the digital sound data to the mobile phone. .

本發明是一種藍牙發聲裝置的動態調整方法,主要設置在藍牙發聲裝置內,其中藍牙發聲裝置以動態的方式調整進入主動狀態的時 間間隔與進入閒置狀態的時間間隔,可降低藍牙發聲裝置在接收封包時所消耗的能量。 The invention is a dynamic adjustment method of a Bluetooth sounding device, which is mainly arranged in a Bluetooth sounding device, wherein the Bluetooth sounding device adjusts the dynamic state into an active state. The interval between the interval and the idle state can reduce the energy consumed by the Bluetooth sounding device when receiving the packet.

本發明是一種藍牙發聲裝置的動態調整方法,可依據藍牙發聲裝置與電子裝置之間的連線品質,調整藍牙發聲裝置進入主動狀態的時間間隔與進入閒置狀態的時間間隔,藉此可在不影響藍牙發聲裝置與電子裝置之間的連線品質的前提下,降低藍牙發聲裝置所消耗的能量。 The invention is a dynamic adjustment method of a Bluetooth sounding device, which can adjust the time interval between the Bluetooth sounding device entering the active state and the time interval of entering the idle state according to the connection quality between the Bluetooth sounding device and the electronic device, thereby Under the premise of affecting the connection quality between the Bluetooth sounding device and the electronic device, the energy consumed by the Bluetooth sounding device is reduced.

本發明是一種藍牙發聲裝置的動態調整方法,可比對藍牙發聲裝置暫存的音頻串流資料封包的數量與準位(water level),並依據比對的結果調整藍牙發聲裝置進入主動狀態的時間間隔與進入閒置狀態的時間間隔,藉此可在不影響藍牙發聲裝置的播放品質的前提下,降低藍牙發聲裝置所消耗的能量。 The invention is a dynamic adjustment method of a Bluetooth sounding device, which can compare the number and level of audio stream data packets temporarily stored by the Bluetooth sounding device, and adjust the time when the Bluetooth sounding device enters the active state according to the result of the comparison. The interval between the interval and the idle state, thereby reducing the energy consumed by the Bluetooth sounding device without affecting the playback quality of the Bluetooth sounding device.

為了達到以上目的,本發明提供一種藍牙發聲裝置的動態調整方法,藍牙發聲裝置適用於透過藍牙接收音頻串流資料封包,且藍牙發聲裝置在接收音頻串流資料封包的過程中會在一主動狀態與一閒置狀態之間切換,包括以下步驟:統計藍牙發聲裝置暫存的音頻串流資料封包的數量;及依據藍牙發聲裝置暫存的音頻串流資料封包的數量,調整藍牙發聲裝置進入主動狀態的時間間隔與進入閒置狀態的時間間隔的大小。 In order to achieve the above objective, the present invention provides a dynamic adjustment method for a Bluetooth sounding device, wherein the Bluetooth sounding device is adapted to receive an audio stream data packet through Bluetooth, and the Bluetooth sounding device is in an active state in receiving the audio stream data packet. Switching between an idle state, and the following steps: counting the number of audio stream data packets temporarily stored by the Bluetooth sounding device; and adjusting the Bluetooth sounding device to enter an active state according to the number of audio stream data packets temporarily stored by the Bluetooth sounding device The interval between the time interval and the time interval to enter the idle state.

本發明動態調整方法一實施例中,包括以下步驟:藍牙發聲裝置進入主動狀態,並接收及暫存音頻串流資料封包。 In an embodiment of the dynamic adjustment method of the present invention, the method includes the following steps: the Bluetooth sounding device enters an active state, and receives and temporarily stores the audio stream data packet.

本發明動態調整方法一實施例中,其中藍牙發聲裝置包括一暫存單元,用以暫存接收的音頻串流資料封包。 In an embodiment of the dynamic adjustment method of the present invention, the Bluetooth sounding device includes a temporary storage unit for temporarily storing the received audio stream data packet.

本發明動態調整方法一實施例中,其中藍牙發聲裝置進入 主動狀態的時間間隔大於或等於進入閒置狀態的時間間隔。 In an embodiment of the dynamic adjustment method of the present invention, wherein the Bluetooth sounding device enters The active time interval is greater than or equal to the time interval to enter the idle state.

本發明動態調整方法一實施例中,包括以下步驟:比對藍牙發聲裝置暫存的音頻串流資料封包的數量與一準位。 In an embodiment of the dynamic adjustment method of the present invention, the method includes the following steps: comparing the number of audio stream data packets temporarily stored by the Bluetooth sounding device with a level.

本發明動態調整方法一實施例中,包括以下步驟:當藍牙發聲裝置暫存的音頻串流資料封包的數量小於準位時,增加藍牙發聲裝置進入主動狀態的時間間隔,並減少藍牙發聲裝置進入閒置狀態的時間間隔。 In an embodiment of the dynamic adjustment method of the present invention, the method includes the following steps: when the number of audio stream data packets temporarily stored by the Bluetooth sounding device is less than the level, increasing the time interval for the Bluetooth sounding device to enter the active state, and reducing the Bluetooth sounding device entering The time interval between idle states.

本發明動態調整方法一實施例中,包括以下步驟:當藍牙發聲裝置暫存的音頻串流資料封包的數量大於準位時,減少或維持藍牙發聲裝置進入主動狀態的時間間隔,並增加或維持藍牙發聲裝置進入閒置狀態的時間間隔。 In an embodiment of the dynamic adjustment method of the present invention, the method includes the following steps: when the number of audio stream data packets temporarily stored by the Bluetooth sounding device is greater than a level, reducing or maintaining a time interval for the Bluetooth sounding device to enter an active state, and increasing or maintaining The time interval between the Bluetooth sounding device entering the idle state.

本發明動態調整方法一實施例中,包括以下步驟:藍牙發聲裝置由一電子裝置接收並暫存音頻串流資料封包。 In an embodiment of the dynamic adjustment method of the present invention, the method includes the following steps: the Bluetooth sounding device receives and temporarily stores the audio stream data packet by an electronic device.

本發明動態調整方法一實施例中,其中藍牙發聲裝置進入主動狀態的時間間隔大於或等於電子裝置傳送音頻串流資料封包的時間間隔。 In an embodiment of the dynamic adjustment method of the present invention, the time interval in which the Bluetooth sounding device enters the active state is greater than or equal to the time interval during which the electronic device transmits the audio stream data packet.

本發明動態調整方法一實施例中,包括以下步驟:藍牙發聲裝置與電子裝置配對,並取得電子裝置傳送音頻串流資料封包的時間間隔。 In an embodiment of the dynamic adjustment method of the present invention, the method includes the following steps: the Bluetooth sounding device is paired with the electronic device, and the time interval for transmitting the audio stream data packet by the electronic device is obtained.

有關本發明的特徵、實作與功效,茲配合圖式作最佳實施例詳細說明如下。 The features, implementations, and utilities of the present invention are described in detail below with reference to the drawings.

10‧‧‧藍牙傳輸系統 10‧‧‧Bluetooth transmission system

11‧‧‧電子裝置 11‧‧‧Electronic devices

12‧‧‧音頻串流資料封包 12‧‧‧Audio Streaming Data Packet

13‧‧‧藍牙發聲裝置 13‧‧‧Bluetooth sounding device

131‧‧‧暫存單元 131‧‧‧Scratch unit

14‧‧‧類比音頻訊號 14‧‧‧ analog audio signal

第1圖:為本發明所述藍牙傳輸系統一實施例的構造示意圖。 FIG. 1 is a schematic structural diagram of an embodiment of a Bluetooth transmission system according to the present invention.

第2圖:本發明所述藍牙發聲裝置的動態調整方法一實施例的步驟流程圖。 FIG. 2 is a flow chart showing the steps of an embodiment of a method for dynamically adjusting a Bluetooth sounding device according to the present invention.

第3圖:為本發明所述藍牙發聲裝置一實施例的主動狀態及閒置狀態的時間間隔的示意圖。 FIG. 3 is a schematic diagram showing the time interval of an active state and an idle state of an embodiment of the Bluetooth sounding device according to the present invention.

第4圖:為本發明所述藍牙發聲裝置又一實施例的主動狀態及閒置狀態的時間間隔的示意圖。 FIG. 4 is a schematic diagram showing the time interval of an active state and an idle state according to still another embodiment of the Bluetooth sounding device of the present invention.

第5圖:為本發明所述藍牙發聲裝置暫存的音頻串流資料封包的數量與準位的曲線圖。 Figure 5 is a graph showing the number and level of audio stream data packets temporarily stored by the Bluetooth sounding device of the present invention.

第1圖,為本發明所述藍牙傳輸系統一實施例的構造示意圖,第2圖為本發明所述藍牙發聲裝置的動態調整方法一實施例的步驟流程圖。如圖所示,本發明所述之藍牙傳輸系統10主要包括至少一電子裝置11及至少一藍牙發聲裝置13,例如電子裝置11可為手機、智慧型手機、平板電腦、筆記型電腦或電腦等,而藍牙發聲裝置13則為藍牙耳機、藍牙喇叭或藍牙免持聽筒等。 1 is a schematic structural diagram of an embodiment of a Bluetooth transmission system according to the present invention, and FIG. 2 is a flow chart of steps of an embodiment of a method for dynamically adjusting a Bluetooth sounding apparatus according to the present invention. As shown in the figure, the Bluetooth transmission system 10 of the present invention mainly includes at least one electronic device 11 and at least one Bluetooth sounding device 13. For example, the electronic device 11 can be a mobile phone, a smart phone, a tablet computer, a notebook computer or a computer. The Bluetooth sounding device 13 is a Bluetooth headset, a Bluetooth speaker or a Bluetooth handsfree.

為了說明時的便利性,在本發明圖式及以下說明中皆以一個電子裝置11及一個藍牙發聲裝置13為實施例,然而對本發明技術領域中具通常知識者,可由本發明所述的內容利用在複數個電子裝置11及複數個藍牙發聲裝置13上。此外本發明所述的方法主要是應用在藍牙發聲 裝置13上,其中藍牙發聲裝置13適用於透過藍牙接收音頻串流資料封包12,而電子裝置11則非本發明的必要構件,亦非本發明的限制。 For convenience of description, an electronic device 11 and a Bluetooth sounding device 13 are taken as an embodiment in the drawings and the following description of the present invention. However, those having ordinary knowledge in the technical field of the present invention may be described by the present invention. It is utilized on a plurality of electronic devices 11 and a plurality of Bluetooth sounding devices 13. In addition, the method of the present invention is mainly applied to Bluetooth sounding. On the device 13, wherein the Bluetooth sounding device 13 is adapted to receive the audio stream data packet 12 via Bluetooth, and the electronic device 11 is not a necessary component of the present invention and is not a limitation of the present invention.

電子裝置11可用以儲存數位音頻資料,且電子裝置11及藍牙發聲裝置13可進行藍牙連線。電子裝置11可透過封包的方式將數位音頻資料傳送至藍牙發聲裝置13,例如藍牙發聲裝置13可用以接收電子裝置11所傳送的音頻串流資料封包(audio stream data packet)12,並進一步將音頻串流資料封包12進行數位類比轉換,以發出類比音頻訊號14,例如聲音訊號。 The electronic device 11 can be used to store digital audio data, and the electronic device 11 and the Bluetooth sounding device 13 can perform Bluetooth connection. The electronic device 11 can transmit the digital audio data to the Bluetooth sounding device 13 by means of a packet. For example, the Bluetooth sounding device 13 can receive the audio stream data packet 12 transmitted by the electronic device 11 and further convert the audio. The stream data packet 12 performs a digital analog conversion to emit an analog audio signal 14, such as an audio signal.

在本發明一實施例中,電子裝置11可被定義成主裝置(Master),而藍牙發聲裝置13則被定義為從屬裝置(Slave)。電子裝置11透過藍牙將音頻串流資料封包12傳送至藍牙發聲裝置13前,必需先建立電子裝置11及藍牙發聲裝置13之間的藍牙連線。 In an embodiment of the invention, the electronic device 11 can be defined as a master device, and the Bluetooth sounding device 13 is defined as a slave device (Slave). Before the electronic device 11 transmits the audio stream data packet 12 to the Bluetooth sounding device 13 via Bluetooth, it is necessary to first establish a Bluetooth connection between the electronic device 11 and the Bluetooth sounding device 13.

在進行藍牙連線時,電子裝置11及藍牙發聲裝置13會先進行配對(pair),以同步電子裝置11及藍牙發聲裝置13的時脈(clock),並使得兩者使用相同的時脈。在配對的過程中,電子裝置11會持續發出詢問封包,當鄰近區域的藍牙發聲裝置13收到詢問封包後,例如附近區域為藍牙的無線傳輸範圍,藍牙發聲裝置13會向電子裝置11發出回應封包,其中回應封包內包括藍牙發聲裝置13的藍牙設備位址(BD_ADDR,bluetooth address)。 When the Bluetooth connection is made, the electronic device 11 and the Bluetooth sounding device 13 first perform pairing to synchronize the clocks of the electronic device 11 and the Bluetooth sounding device 13, and use the same clock. During the pairing process, the electronic device 11 continuously sends an inquiry packet, and when the Bluetooth sounding device 13 in the adjacent area receives the inquiry packet, for example, the wireless transmission range of the Bluetooth in the nearby area, the Bluetooth sounding device 13 sends a response to the electronic device 11. The packet, wherein the response packet includes a Bluetooth device address (BD_ADDR, bluetooth address) of the Bluetooth sounding device 13.

電子裝置11接收到藍牙發聲裝置13所傳送的回應封包後,會依據回應封包的藍牙設備位址發出連線封包(page)。由於連線封包中包括了藍牙設備位址,因此只有藍牙發聲裝置13可以接收到電子裝置11 所傳送的連線封包。 After receiving the response packet sent by the Bluetooth sounding device 13, the electronic device 11 sends a connection packet according to the Bluetooth device address of the response packet. Since the Bluetooth device address is included in the connection packet, only the Bluetooth sounding device 13 can receive the electronic device 11 The transmitted connection packet.

當藍牙發聲裝置13接收到連線封包後,便可由連線封包的內容得知電子裝置11的時脈,並使得藍牙發聲裝置13與電子裝置11的時脈同步,例如使得電子裝置11及藍牙發聲裝置13使用相同的時脈。透過上述的步驟便可完成電子裝置11與藍牙發聲裝置13之間的藍牙連線,使得電子裝置11及藍牙發聲裝置13之間可透過藍牙傳輸音頻串流資料封包12。 When the Bluetooth sounding device 13 receives the connection packet, the clock of the electronic device 11 can be known from the content of the connection packet, and the Bluetooth sounding device 13 is synchronized with the clock of the electronic device 11, for example, the electronic device 11 and the Bluetooth. The sounding device 13 uses the same clock. Through the above steps, the Bluetooth connection between the electronic device 11 and the Bluetooth sounding device 13 can be completed, so that the audio stream data packet 12 can be transmitted between the electronic device 11 and the Bluetooth sounding device 13 via Bluetooth.

一般而言,為了提高聲音播放的品質,電子裝置11及藍牙發聲裝置13通常會透過藍牙立體聲音訊傳輸規範(Advance Audio Distribution Profile,A2DP)傳輸音頻串流資料封包12。藍牙立體聲音訊傳輸規範(A2DP)規定了使用藍牙非同步傳輸音頻串流資料封包的方法,透過藍牙立體聲音訊傳輸規範(A2DP)便能以藍牙方式傳輸高品質的立體聲音樂。 In general, in order to improve the quality of sound playback, the electronic device 11 and the Bluetooth sounding device 13 generally transmit the audio stream data packet 12 through the Bluetooth Audio Distribution Profile (A2DP). The Bluetooth Stereo Audio Transmission Specification (A2DP) specifies a method for asynchronously transmitting audio stream data packets using Bluetooth. The Bluetooth stereo audio transmission specification (A2DP) enables Bluetooth to transmit high quality stereo music.

具體而言藍牙發聲裝置13內包括一暫存單元131,並可用以暫存藍牙發聲裝置13所接收的音頻串流資料封包12。為了提高播放類比音頻訊號14的品質,藍牙發聲裝置13通常會等到暫存的音頻串流資料封包12累積到一定的數量之後,才會將暫存的音頻串流資料封包12轉換成類比音頻訊號14,並播放類比音頻訊號14。在本發明實施例中,藍牙發聲裝置13會預先定義一個準位(water level),當暫存的音頻串流資料封包12大於準位時,才會開始轉換及播放音頻串流資料封包12。 Specifically, the Bluetooth sounding device 13 includes a temporary storage unit 131 and can be used for temporarily storing the audio stream data packet 12 received by the Bluetooth sounding device 13. In order to improve the quality of the analog analog audio signal 14, the Bluetooth sounding device 13 usually waits until the temporarily stored audio stream data packet 12 accumulates to a certain amount before converting the temporarily stored audio stream data packet 12 into an analog audio signal. 14, and play analog audio signal 14. In the embodiment of the present invention, the Bluetooth sounding device 13 defines a water level in advance, and when the temporarily stored audio stream data packet 12 is greater than the level, the audio stream data packet 12 is converted and played.

當然在實際應用時,藍牙發聲裝置13內可能會包括藍牙傳輸介面、控制單元、數位類比轉換單元、解碼單元及/或喇叭等裝置,上述的構件皆是構成藍牙發聲裝置13的習用技術,對本發明所屬技術領域中 具通常知識者,可依據目前已知的技術架構出藍牙發聲裝置13的構造。在本發明中藍牙發聲裝置13的實際構造並非主要的技術特徵,本發明的重點在於改變習用藍牙發聲裝置13接收音頻串流資料封包12的方法,因此在本發明實施例中便不對藍牙發聲裝置13的構造進行詳細的描述。 Of course, in the actual application, the Bluetooth sounding device 13 may include a Bluetooth transmission interface, a control unit, a digital analog conversion unit, a decoding unit, and/or a speaker. The above components are conventional technologies for constructing the Bluetooth sounding device 13. In the technical field of the invention Those of ordinary skill can construct the Bluetooth sounding device 13 according to the currently known technology. In the present invention, the actual configuration of the Bluetooth sounding device 13 is not a main technical feature, and the focus of the present invention is to change the method for the conventional Bluetooth sounding device 13 to receive the audio stream data packet 12, so that the Bluetooth sounding device is not in the embodiment of the present invention. The construction of 13 is described in detail.

藍牙發聲裝置13與電子裝置11在連線的過程中,藍牙發聲裝置13的狀態可能包括主動狀態(active mode)或監聽模式(sniff mode)。當藍牙發聲裝置13與電子裝置11保持在連線狀態,且兩者之間未傳送音頻串流資料封包12時,藍牙發聲裝置13通常將會進入監聽模式。具體而言,監聽模式適用於藍牙發聲裝置13每次只有少量的資料要收送,此外當藍牙發聲裝置13進入監聽模式後,藍牙發聲裝置13將不會長時間持續維持在主動狀態,可達到省電的目的。 During the connection between the Bluetooth sounding device 13 and the electronic device 11, the state of the Bluetooth sounding device 13 may include an active mode or a sniff mode. When the Bluetooth sounding device 13 and the electronic device 11 remain in the connected state, and the audio stream data packet 12 is not transmitted between the two, the Bluetooth sounding device 13 will normally enter the listening mode. Specifically, the listening mode is suitable for the Bluetooth sounding device 13 to receive only a small amount of data each time, and when the Bluetooth sounding device 13 enters the listening mode, the Bluetooth sounding device 13 will not remain active for a long time, and the province can be saved. The purpose of electricity.

當藍牙發聲裝置13要由電子裝置11接收音頻串流資料封包12時,藍牙發聲裝置13便會進入主動狀態(active mode)。進入主動狀態的藍牙發聲裝置13可接收音頻串流資料封包12,以增加藍牙發聲裝置13接收音頻串流資料封包12的速度,並提高藍牙發聲裝置13播放類比音頻訊號14的品質。 When the Bluetooth sounding device 13 is to receive the audio stream data packet 12 by the electronic device 11, the Bluetooth sounding device 13 enters an active mode. The Bluetooth sounding device 13 entering the active state can receive the audio stream data packet 12 to increase the speed at which the Bluetooth sounding device 13 receives the audio stream data packet 12 and improve the quality of the analog sound signal 14 played by the Bluetooth sounding device 13.

如上述的內容,當藍牙發聲裝置13進入主動狀態(active mode)後,雖然可以加快藍牙發聲裝置13由電子裝置11接收音頻串流資料封包12的速度,並提高藍牙發聲裝置13播放類比音頻訊號14的品質,但亦會增加藍牙發聲裝置13消耗的能量,並縮短藍牙發聲裝置13的工作時間。 As described above, after the Bluetooth sounding device 13 enters the active mode, the speed at which the Bluetooth sounding device 13 receives the audio stream data packet 12 from the electronic device 11 can be accelerated, and the Bluetooth sounding device 13 can be used to play the analog audio signal. The quality of 14 will also increase the energy consumed by the Bluetooth sounding device 13 and shorten the working time of the Bluetooth sounding device 13.

為此本發明提供了一種藍牙發聲裝置13接收音頻訊號的方 法,在藍牙發聲裝置13接收音頻串流資料封包12的過程中,藍牙發聲裝置13並不會持續維持在主動狀態,而是反復在主動狀態與閒置狀態之間切換,如第3圖所示。當藍牙發聲裝置13進入主動狀態時,便可接收及暫存音頻串流封包12,而當藍牙發聲裝置13進入閒置狀態時,則不會接收音貧串流封包12。 To this end, the present invention provides a method in which the Bluetooth sounding device 13 receives an audio signal. In the process of receiving the audio stream data packet 12 by the Bluetooth sounding device 13, the Bluetooth sounding device 13 does not continuously maintain the active state, but repeatedly switches between the active state and the idle state, as shown in FIG. . When the Bluetooth sounding device 13 enters the active state, the audio stream packet 12 can be received and temporarily stored, and when the Bluetooth sounding device 13 enters the idle state, the audio-poor stream packet 12 is not received.

在本發明一實施例中,當藍牙發聲裝置13與電子裝置11之間的連線狀況良好時,例如兩者之間傳送封包的頻寬未被占用,可使得藍牙發聲裝置13進入主動狀態的時間間隔T1與進入閒置狀態的時間間隔T2約略相等,例如可使得主動狀態的時間間隔T1大於或等於閒置狀態的時間間隔T2。如此一來不僅可維持藍牙發聲裝置13接收音頻串流資料封包12的速度,亦可降低藍牙發聲裝置13消耗的能量。 In an embodiment of the present invention, when the connection between the Bluetooth sounding device 13 and the electronic device 11 is good, for example, the bandwidth of the transmission packet between the two is not occupied, the Bluetooth sounding device 13 can be brought into an active state. The time interval T1 is approximately equal to the time interval T2 entering the idle state, for example, the time interval T1 of the active state may be made greater than or equal to the time interval T2 of the idle state. In this way, not only the speed at which the Bluetooth sounding device 13 receives the audio stream data packet 12 but also the energy consumed by the Bluetooth sounding device 13 can be maintained.

當然上述的說明僅為本發明一實施例,在實際應用時並不一定要使得藍牙發聲裝置13進入主動狀態的時間間隔T1大於或等於進入閒置狀態的時間間隔T2,亦可使得時間間隔T1小於時間間隔T2。 Of course, the above description is only an embodiment of the present invention. In actual application, the time interval T1 of the Bluetooth sounding device 13 entering the active state is not greater than or equal to the time interval T2 of entering the idle state, and the time interval T1 may be made smaller. Time interval T2.

在實際應用時,藍牙發聲裝置13可依據電子裝置11傳送音頻串流資料封包12的時間間隔(Tpoll)調整進入主動狀態的時間間隔T1與進入閒置狀態的時間間隔T2,例如可使得藍牙發聲裝置13進入主動狀態的時間間隔T1大於或等於電子裝置11傳送音頻串流資料封包12的時間間隔(Tpoll),以利於藍牙發聲裝置13由電子裝置11接收音頻串流資料封包12。此外電子裝置11與藍牙發聲裝置13配對的過程中,藍牙發聲裝置13便可取得電子裝置11傳送音頻串流資料封包12的時間間隔。 In a practical application, the Bluetooth sounding device 13 can adjust the time interval T1 of entering the active state and the time interval T2 of entering the idle state according to the time interval (Tpoll) of the audio stream data packet 12 transmitted by the electronic device 11, for example, the Bluetooth sounding device can be made. The time interval T1 of entering the active state is greater than or equal to the time interval (Tpoll) of the electronic device 11 transmitting the audio stream data packet 12, so that the Bluetooth sounding device 13 receives the audio stream data packet 12 by the electronic device 11. In addition, during the process of pairing the electronic device 11 with the Bluetooth sounding device 13, the Bluetooth sounding device 13 can obtain the time interval during which the electronic device 11 transmits the audio stream data packet 12.

透過上述的傳輸方式,雖然可使得藍牙發聲裝置13同時具 有良好的播放品質及低耗能等優點,但當藍牙發聲裝置13與電子裝置11之間的連線品質不佳時,例如兩者之間傳送封包的頻寬被占用,藍牙發聲裝置13便可能無法維持播放類比音頻訊號14的品質。 Through the above transmission method, although the Bluetooth sounding device 13 can be simultaneously provided It has the advantages of good playback quality and low power consumption. However, when the connection quality between the Bluetooth sounding device 13 and the electronic device 11 is not good, for example, the bandwidth of the transmission packet between the two is occupied, the Bluetooth sounding device 13 It may not be possible to maintain the quality of the playback analog audio signal 14.

為此本發明進一步改良上述的方法,藍牙發聲裝置13透過藍牙由主機裝置11接收音頻串流資料封包12的過程中,藍牙發聲裝置13同樣會在會不斷在主動狀態與閒置狀態之間切換。請配合參閱第1圖及第2圖所示,藍牙發聲裝置13會暫存接收的音頻串流資料封包12,並統計暫存的音頻串流資料封包12的數量,例如藍牙發聲裝置13可將音頻串流資料封包12暫存在暫存單元131內,並統計暫存在暫存單元131內的音頻串流資料封包12的數量,如步驟21。 To this end, the present invention further improves the above method. During the process in which the Bluetooth sounding device 13 receives the audio stream data packet 12 from the host device 11 via Bluetooth, the Bluetooth sounding device 13 will also switch between the active state and the idle state. Please refer to FIG. 1 and FIG. 2, the Bluetooth sounding device 13 temporarily stores the received audio stream data packet 12, and counts the number of the temporarily stored audio stream data packets 12, for example, the Bluetooth sounding device 13 can The audio stream data packet 12 is temporarily stored in the temporary storage unit 131, and the number of the audio stream data packets 12 temporarily stored in the temporary storage unit 131 is counted, as shown in step 21.

而後藍牙發聲裝置13會依據暫存的音頻串流資料封包12的數量,調整其進入主動狀態的時間間隔T1與進入閒置狀態的時間間隔T2的大小,如步驟23所示。在本發明一實施例中,可進一步比對藍牙發聲裝置13暫存的音頻串流資料封包12的數量與準位,如步驟22所示。當暫存的音頻串流資料封包12的數量小於準位時,表示藍牙發聲裝置13接收音頻串流資料封包12的速度過低,此時可增加藍牙發聲裝置13進入主動狀態的時間間隔T1,並減少進入閒置狀態的時間間隔T2。反之,當暫存的音頻串流資料封包12的數量大於準位時,則會減少或維持藍牙發聲裝置13進入主動狀態的時間間隔T1,並增加或維持進入閒置狀態的時間間隔T2。 Then, the Bluetooth sounding device 13 adjusts the time interval T1 between the active state and the time interval T2 to enter the idle state according to the number of the temporarily stored audio stream data packets 12, as shown in step 23. In an embodiment of the present invention, the number and level of the audio stream data packets 12 temporarily stored by the Bluetooth sounding device 13 may be further compared, as shown in step 22. When the number of the temporarily stored audio stream data packets 12 is less than the level, the speed at which the Bluetooth sounding device 13 receives the audio stream data packet 12 is too low, and the time interval T1 at which the Bluetooth sounding device 13 enters the active state can be increased. And reduce the time interval T2 into the idle state. On the other hand, when the number of the temporarily stored audio stream data packets 12 is greater than the level, the time interval T1 at which the Bluetooth sounding device 13 enters the active state is reduced or maintained, and the time interval T2 into which the idle state is entered is increased or maintained.

透過上述動態的方式調整藍牙發聲裝置13的進入主動狀態的時間間隔T1與進入閒置狀態的時間間隔T2的大小,將可維持藍牙發聲 裝置13接收及播放音頻串流資料封包12的品質,同時亦可降低藍牙發聲裝置13在傳輸音頻串流資料封包12時所消耗的能量。即使電子裝置11與藍牙發聲裝置13之間出現干擾或連線狀況不佳的情形,例如兩者傳輸資料的頻寬被占用,亦不會影響藍牙發聲裝置13接收及播放音頻串流資料封包12的品質。 By adjusting the time interval T1 of the active state of the Bluetooth sounding device 13 and the time interval T2 of entering the idle state through the above dynamic manner, the Bluetooth sound can be maintained. The device 13 receives and plays the quality of the audio stream data packet 12, and also reduces the energy consumed by the Bluetooth sounding device 13 when transmitting the audio stream data packet 12. Even if there is interference or poor connection between the electronic device 11 and the Bluetooth sounding device 13, for example, the bandwidth of the transmitted data is occupied, the Bluetooth sounding device 13 does not affect the receiving and playing of the audio stream data packet 12 Quality.

在本發明一實施例中,如第3圖所示,藍牙發聲裝置13處在主動狀態的所有時間約為所有連線時間T的50%至100%之間,例如在初始階段藍牙發聲裝置13進入主動狀態的時間間隔T1約與進入閒置狀態的時間間隔T2相同。當然上述的比例僅為本發明一實施方式,並不為本發明之權利範圍的限制,在實際應用時亦可使得藍牙發聲裝置13處在主動狀態的所有時間小於所有連線時間T的50%。 In an embodiment of the present invention, as shown in FIG. 3, all the time that the Bluetooth sounding device 13 is in the active state is between 50% and 100% of all the connection time T, for example, in the initial stage, the Bluetooth sounding device 13 The time interval T1 to enter the active state is about the same as the time interval T2 to enter the idle state. The above-mentioned ratio is only an embodiment of the present invention, and is not a limitation of the scope of the present invention. In practical applications, the Bluetooth sounding device 13 can be in an active state for less than 50% of all connection time Ts. .

請配合參閱第4圖及第5圖所示,其中第5圖的虛線為準位,而實線則是藍牙發聲裝置13暫存的音頻串流資料封包12的數量。當藍牙發聲裝置13與電子裝置11之間的連線品質下降,將可能會造成藍牙發聲裝置13暫存的音頻串流資料封包12的數量小於準位,如第4圖及第5圖的第一區間D1所示,其中代表封包數量的實線落在代表準位的虛線下方,則藍牙發聲裝置13將會延長進入主動狀態的時間間隔T1,並縮短進入閒置狀態的時間間隔T2,藉此以提高藍牙發聲裝置13接收音頻串流資料封包12的速度。 Please refer to FIG. 4 and FIG. 5 , wherein the dotted line of FIG. 5 is the level, and the solid line is the number of audio stream data packets 12 temporarily stored by the Bluetooth sounding device 13 . When the connection quality between the Bluetooth sounding device 13 and the electronic device 11 is degraded, the number of audio stream data packets 12 temporarily stored by the Bluetooth sounding device 13 may be less than the level, as shown in FIG. 4 and FIG. As shown in an interval D1, wherein the solid line representing the number of packets falls below the dotted line representing the level, the Bluetooth sounding device 13 will extend the time interval T1 into the active state and shorten the time interval T2 into the idle state, thereby shortening the time interval T2 into the idle state, thereby To increase the speed at which the Bluetooth sounding device 13 receives the audio stream data packet 12.

當藍牙發聲裝置13與電子裝置11之間的連線品質持續不佳時,如第4圖及第5圖的第二區間D2所示,藍牙發聲裝置13將會繼續延長進入主動狀態的時間間隔T1,並持續縮短進入閒置狀態的時間間隔 T2。在極端的狀況下,例如當連線品質非常不良時,藍牙發聲裝置13可以將進入閒置狀態的時間間隔T2調整為零,並使得藍牙發聲裝置13持續維持在主動狀態,以維持或提高傳送音頻串流資料封包12的數量。換句話說,本發明所揭露的方法中,藍牙發聲裝置13接收及播放音頻串流資料封包12的品質會優先於節省消耗的能量。 When the connection quality between the Bluetooth sounding device 13 and the electronic device 11 continues to be poor, as shown in the second interval D2 of FIGS. 4 and 5, the Bluetooth sounding device 13 will continue to extend the time interval to enter the active state. T1 and continue to shorten the time interval to enter idle state T2. In extreme cases, such as when the quality of the connection is very poor, the Bluetooth sounding device 13 can adjust the time interval T2 to enter the idle state to zero, and keep the Bluetooth sounding device 13 continuously in an active state to maintain or improve the transmitted audio. The number of streamed data packets 12. In other words, in the method disclosed by the present invention, the quality of the Bluetooth sounding device 13 receiving and playing the audio stream data packet 12 will take precedence over the energy saved.

當藍牙發聲裝置13與電子裝置11之間的連線品質逐漸改善後,如第4圖及第5圖的第三區間D3所示,藍牙發聲裝置13會縮短進入主動狀態的時間間隔T1,並增加進入閒置狀態的時間間隔T2。當藍牙發聲裝置13與電子裝置11之間的連線品質回到正常水平,使得藍牙發聲裝置13暫存的音頻串流資料封包12的數量大於或等於準位時,如第4圖及第5圖的第四區間D4所示,其中代表封包數量的實線等於或高於代表準位的虛線,藍牙發聲裝置13會持續縮短進入主動狀態的時間間隔T1,並增加進入閒置狀態的時間間隔T2,例如藍牙發聲裝置13可使得主動狀態的時間間隔T1與閒置狀態的時間間隔T2相似,以達到省電的目的。 When the connection quality between the Bluetooth sounding device 13 and the electronic device 11 is gradually improved, as shown in the third interval D3 of FIGS. 4 and 5, the Bluetooth sounding device 13 shortens the time interval T1 into the active state, and Increase the time interval T2 to enter the idle state. When the connection quality between the Bluetooth sounding device 13 and the electronic device 11 returns to the normal level, so that the number of the audio stream data packets 12 temporarily stored by the Bluetooth sounding device 13 is greater than or equal to the level, as shown in FIG. 4 and FIG. As shown in the fourth interval D4 of the figure, wherein the solid line representing the number of packets is equal to or higher than the dotted line representing the level, the Bluetooth sounding device 13 continues to shorten the time interval T1 into the active state and increases the time interval T2 into the idle state. For example, the Bluetooth sounding device 13 can make the time interval T1 of the active state similar to the time interval T2 of the idle state to achieve the purpose of power saving.

當然上述藍牙發聲裝置13進入主動狀態及閒置狀態的比例僅為本發明的一實施例,並不為本發明權利範圍的限制,對本發明所屬技術領域中具通常知識者可依據實際的狀況,調整主動狀態及閒置狀態的比例。 Of course, the ratio of the above-mentioned Bluetooth sounding device 13 to the active state and the idle state is only an embodiment of the present invention, and is not a limitation of the scope of the present invention. For those having ordinary knowledge in the technical field to which the present invention pertains, the actual situation can be adjusted. The ratio of the active state to the idle state.

雖然本發明之實施例揭露如上所述,然並非用以限定本發明,任何熟習相關技藝者,在不脫離本發明之精神和範圍內,舉凡依本發明申請範圍所述之形狀、構造、特徵及數量當可做些許之變更,因此本發明之專利保護範圍須視本說明書所附之申請專利範圍所界定者為準。 Although the embodiments of the present invention are disclosed above, it is not intended to limit the present invention, and those skilled in the art, regardless of the spirit and scope of the present invention, the shapes, structures, and features described in the scope of the present application. And the number of modifications may be made, and the scope of patent protection of the present invention shall be determined by the scope of the patent application attached to the specification.

Claims (10)

一種藍牙發聲裝置的動態調整方法,該藍牙發聲裝置適用於透過藍牙接收一音頻串流資料封包,且該藍牙發聲裝置在接收該音頻串流資料封包的過程中會在一主動狀態與一閒置狀態之間切換,包括以下步驟:統計該藍牙發聲裝置暫存的該音頻串流資料封包的數量;及依據該藍牙發聲裝置暫存的該音頻串流資料封包的數量,調整該藍牙發聲裝置進入該主動狀態的時間間隔與進入該閒置狀態的時間間隔的大小。 A method for dynamically adjusting a Bluetooth sounding device, wherein the Bluetooth sounding device is adapted to receive an audio stream data packet through Bluetooth, and the Bluetooth sounding device receives an active state and an idle state in the process of receiving the audio stream data packet. Switching between the two steps includes: counting the number of the audio stream data packets temporarily stored by the Bluetooth sounding device; and adjusting the Bluetooth sounding device to enter the number according to the number of the audio stream data packets temporarily stored by the Bluetooth sounding device The time interval of the active state and the time interval of entering the idle state. 如申請專利範圍第1項所述的動態調整方法,包括以下步驟:該藍牙發聲裝置進入該主動狀態,並接收及暫存該音頻串流資料封包。 The dynamic adjustment method of claim 1, comprising the steps of: the Bluetooth sounding device enters the active state, and receives and temporarily stores the audio stream data packet. 如申請專利範圍第2項所述的動態調整方法,其中該藍牙發聲裝置包括一暫存單元,用以暫存接收的音頻串流資料封包。 The dynamic adjustment method of claim 2, wherein the Bluetooth sounding device comprises a temporary storage unit for temporarily storing the received audio stream data packet. 如申請專利範圍第1項所述的動態調整方法,其中該藍牙發聲裝置進入該主動狀態的時間間隔大於或等於進入該閒置狀態的時間間隔。 The dynamic adjustment method of claim 1, wherein the time interval in which the Bluetooth sounding device enters the active state is greater than or equal to a time interval of entering the idle state. 如申請專利範圍第1項所述的動態調整方法,包括以下步驟:比對該藍牙發聲裝置暫存的該音頻串流資料封包的數量與一準位。 The dynamic adjustment method of claim 1, comprising the step of: comparing the number of the audio stream data packets temporarily stored to the Bluetooth sounding device with a level. 如申請專利範圍第5項所述的動態調整方法,包括以下步驟:當該藍牙發聲裝置暫存的該音頻串流資料封包的數量小於該準位時,增加該藍牙發聲裝置進入該主動狀態的時間間隔,並減少該藍牙發聲裝置進入該閒置狀態的時間間隔。 The dynamic adjustment method of claim 5, comprising the following steps: when the number of the audio stream data packets temporarily stored by the Bluetooth sounding device is less than the level, increasing the Bluetooth sounding device to enter the active state Time interval and reduce the time interval between the Bluetooth sounding device entering the idle state. 如申請專利範圍第5項所述的動態調整方法,包括以下步驟:當該藍牙發聲裝置暫存的該音頻串流資料封包的數量大於該準位時,減少或維持該藍牙發聲裝置進入該主動狀態的時間間隔,並增加或維持該藍牙發聲裝置進入該閒置狀態的時間間隔。 The dynamic adjustment method according to claim 5, comprising the following steps: when the number of the audio stream data packets temporarily stored by the Bluetooth sounding device is greater than the level, reducing or maintaining the Bluetooth sounding device to enter the initiative The time interval of the state and increase or maintain the time interval between the Bluetooth sounding device entering the idle state. 如申請專利範圍第1項所述的動態調整方法,包括以下步驟:該藍牙發聲裝置由一電子裝置接收並暫存該音頻串流資料封包。 The dynamic adjustment method according to claim 1, comprising the following steps: the Bluetooth sounding device receives and temporarily stores the audio stream data packet by an electronic device. 如申請專利範圍第8項所述的動態調整方法,其中該藍牙發聲裝置進 入該主動狀態的時間間隔大於或等於該電子裝置傳送該音頻串流資料封包的時間間隔。 The dynamic adjustment method according to claim 8, wherein the Bluetooth sounding device enters The time interval of entering the active state is greater than or equal to the time interval during which the electronic device transmits the audio stream data packet. 如申請專利範圍第9項所述的動態調整方法,包括以下步驟:該藍牙發聲裝置與該電子裝置配對,並取得該電子裝置傳送該音頻串流資料封包的時間間隔。 The dynamic adjustment method of claim 9, comprising the steps of: pairing the Bluetooth sounding device with the electronic device, and obtaining a time interval at which the electronic device transmits the audio stream data packet.
TW103136450A 2014-10-22 2014-10-22 Dynamic adjusting method of a bluetooth speaker TWI569598B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW103136450A TWI569598B (en) 2014-10-22 2014-10-22 Dynamic adjusting method of a bluetooth speaker

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW103136450A TWI569598B (en) 2014-10-22 2014-10-22 Dynamic adjusting method of a bluetooth speaker

Publications (2)

Publication Number Publication Date
TW201616820A TW201616820A (en) 2016-05-01
TWI569598B true TWI569598B (en) 2017-02-01

Family

ID=56508701

Family Applications (1)

Application Number Title Priority Date Filing Date
TW103136450A TWI569598B (en) 2014-10-22 2014-10-22 Dynamic adjusting method of a bluetooth speaker

Country Status (1)

Country Link
TW (1) TWI569598B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060353A (en) * 2006-04-17 2007-10-24 创杰科技股份有限公司 Blue tooth stereo chip with multiple sound source input / output
CN102035574B (en) * 2009-09-29 2013-06-19 原相科技股份有限公司 Transmission method capable of reducing radio resource consumption and related device thereof
CN103581930A (en) * 2012-07-18 2014-02-12 瑞昱半导体股份有限公司 Bluetooth service estimation device and Bluetooth service estimation method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060353A (en) * 2006-04-17 2007-10-24 创杰科技股份有限公司 Blue tooth stereo chip with multiple sound source input / output
CN102035574B (en) * 2009-09-29 2013-06-19 原相科技股份有限公司 Transmission method capable of reducing radio resource consumption and related device thereof
CN103581930A (en) * 2012-07-18 2014-02-12 瑞昱半导体股份有限公司 Bluetooth service estimation device and Bluetooth service estimation method thereof

Also Published As

Publication number Publication date
TW201616820A (en) 2016-05-01

Similar Documents

Publication Publication Date Title
CN104320699B (en) The dynamic adjusting method of bluetooth sound-producing device
CN107528614B (en) NFMI-based synchronization
TWI545971B (en) Audio synchronization method for bluetooth speaker
JP2021524210A (en) Two-stage roll switch
US20220263883A1 (en) Adaptive audio processing method, device, computer program, and recording medium thereof in wireless communication system
US8949115B2 (en) Terminal device, audio output method, and information processing system
US11374623B2 (en) Connected isochronous stream swapping
US9008580B2 (en) Configuring a codec for communicating audio data using a Bluetooth network connection
CN105955702A (en) Wireless audio equipment and method for playing music in same
CN112272375A (en) Bluetooth communication system and method and Bluetooth communication conversion device
JP2020120366A (en) Audio device control method and control circuit
US20220229628A1 (en) Method, device and computer program for controlling audio data in wireless communication system, and recording medium therefor
TWI569598B (en) Dynamic adjusting method of a bluetooth speaker
CN104066033A (en) Bluetooth sound box system and using method thereof
CN108882345B (en) Bluetooth device, sleep control method and device thereof, and computer-readable storage medium
TW202232926A (en) Bluetooth communication system capable of avoiding voice interruption, and related bluetooth device set
CN203912165U (en) Bluetooth loudspeaker box system
TWI715175B (en) Bluetooth device, method of operating bluetooth device, and non-transitory computer readable medium
JP3144831U (en) Wireless audio system with stereo output
TWI526816B (en) Power saving system and method for media play
TWI700953B (en) A wireless transmission system and method
US20240129699A1 (en) Physical layer improvements for short range wireless communications
US11381951B2 (en) Wireless Bluetooth (BT) audio output system and control method thereof
CN213754842U (en) Audio system based on 5G signal transmission
US20240155711A1 (en) Link margin improvements using a variable physical layer symbol rate