TWI826951B - Data synchronization system and method for wireless communication system - Google Patents

Data synchronization system and method for wireless communication system Download PDF

Info

Publication number
TWI826951B
TWI826951B TW111109123A TW111109123A TWI826951B TW I826951 B TWI826951 B TW I826951B TW 111109123 A TW111109123 A TW 111109123A TW 111109123 A TW111109123 A TW 111109123A TW I826951 B TWI826951 B TW I826951B
Authority
TW
Taiwan
Prior art keywords
data
synchronization
wireless
receiving device
mark
Prior art date
Application number
TW111109123A
Other languages
Chinese (zh)
Other versions
TW202337167A (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 TW111109123A priority Critical patent/TWI826951B/en
Publication of TW202337167A publication Critical patent/TW202337167A/en
Application granted granted Critical
Publication of TWI826951B publication Critical patent/TWI826951B/en

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

一種無線通訊系統之資料同步系統,可使透過一無線連結的一第一無線資料接收裝置與一第二無線資料接收裝置分別從一無線資料發送源所接收的第一多媒體資料與第二多媒體資料同步,該系統包括一第一同步標記裝置以及一第二同步標記裝置,係分別位於該第一及該第二無線資料接收裝置中,且該第一同步標記裝置將該第一多媒體資料加入一第一同步標記,以產生一第一待同步資料,其係存入一第一同步緩衝記憶體中;該第二同步標記裝置將該第二多媒體資料加入一第二同步標記,以產生一第二待同步資料,其係存入一第二同步緩衝記憶體中。A data synchronization system of a wireless communication system can enable a first wireless data receiving device and a second wireless data receiving device to respectively receive first multimedia data and second data from a wireless data transmission source through a wireless connection. Multimedia data synchronization, the system includes a first synchronization mark device and a second synchronization mark device, which are respectively located in the first and the second wireless data receiving device, and the first synchronization mark device converts the first A first synchronization mark is added to the multimedia data to generate a first data to be synchronized, which is stored in a first synchronization buffer memory; the second synchronization mark device adds the second multimedia data to a first synchronization mark. Two synchronization marks are used to generate a second data to be synchronized, which is stored in a second synchronization buffer memory.

Description

無線通訊系統之資料同步系統與方法Data synchronization system and method for wireless communication system

本發明係有關於一種無線通訊系統中之資料同步,且特別有關於一種應用於無線通訊系統中以同步標記進行資料同步之資料同步方法。The present invention relates to data synchronization in a wireless communication system, and particularly to a data synchronization method using a synchronization mark for data synchronization in a wireless communication system.

近年來,隨著智慧型手機功能的提升與普及,智慧型手機已經成為現代人的必備品之一,現代人隨時隨地在生活中頻繁使用智慧型手機中的功能。在智慧型手機的眾多功能中,音訊資料的播放是一個特別重要的功能,無論是語音通話、來電鈴聲、音樂播放乃至於影片播放,音訊資料的播放都扮演極其重要的角色。In recent years, with the improvement and popularization of smart phone functions, smart phones have become one of the must-have items for modern people. Modern people frequently use the functions of smart phones anytime and anywhere in their lives. Among the many functions of a smartphone, the playback of audio data is a particularly important function. Whether it is voice calls, ringtones, music playback or even video playback, the playback of audio data plays an extremely important role.

傳統的智慧手機的音訊資料播放通常會搭配3.5毫米接頭的耳機來完成,然而,這幾年,隨著智慧型手機的3.5毫米插孔被C型通用序列匯流排(USB type-C)插孔取代,無線藍牙耳機也逐漸取代了3.5毫米接頭的耳機;此外,無線藍牙音箱也時常被用來與智慧型手機搭配,以完成音訊資料播放的功能。Traditional smartphone audio data playback is usually completed with headphones with a 3.5mm connector. However, in recent years, as the 3.5mm jack of smartphones has been replaced by the Type-C Universal Serial Bus (USB type-C) jack Instead, wireless Bluetooth headsets have gradually replaced headphones with 3.5mm connectors; in addition, wireless Bluetooth speakers are often used with smartphones to complete the function of playing audio data.

由於相較於有線連結的立體聲藍牙耳機,真無線立體聲耳機(如:無線連結的藍牙耳機)在外觀視覺上更為簡潔,也對使用者的拘束性更小,因此,真無線立體聲耳機的受歡迎度也急遽上升,然而,真無線立體聲耳機左右聲道的同步嚴重影響人們的聽覺感知,卻是一個難以從通訊協定層面去解決的問題,因此,一個左右聲道的同步機制是一個真無線立體聲耳機或真無線立體聲音箱所迫切需要的。Compared with wired stereo Bluetooth headsets, true wireless stereo headsets (such as wirelessly connected Bluetooth headsets) are visually simpler and less restrictive to users. Therefore, true wireless stereo headsets are more popular. The popularity of true wireless stereo headphones has also increased rapidly. However, the synchronization of the left and right channels of true wireless stereo headphones seriously affects people's auditory perception, and it is a problem that is difficult to solve from the communication protocol level. Therefore, a synchronization mechanism of left and right channels is a true wireless Stereo headphones or true wireless stereo speakers are desperately needed.

有鑑於此,本發明提供一以同步標記進行資料同步的資料同步機制,其中,可在不同資料接收裝置所收到的多媒體資料中分別加入同步標記,並利用同步標記來建立完整的同步機制。In view of this, the present invention provides a data synchronization mechanism that uses synchronization tags to synchronize data, in which synchronization tags can be added to the multimedia data received by different data receiving devices, and the synchronization tags can be used to establish a complete synchronization mechanism.

本發明實施例之應用於一無線通訊系統之資料同步系統。本發明提供一種無線通訊系統之資料同步系統,可使透過一無線連結連接的一第一無線資料接收裝置與一第二無線資料接收裝置分別從一無線資料發送源所接收的第一多媒體資料與第二多媒體資料同步,該無線通訊系統之資料同步系統包括一第一同步標記裝置以及一第二同步標記裝置,該第一同步標記裝置,位於該第一無線資料接收裝置中,且該第一同步標記裝置將該第一多媒體資料加入一第一同步標記,以產生一第一待同步資料,並將該第一待同步資料存入一第一同步緩衝記憶體中;該第二同步標記裝置,位於該第二無線資料接收裝置中,且該第二同步標記裝置將該第二多媒體資料加入一第二同步標記,以產生一第二待同步資料,並將該第二待同步資料存入一第二同步緩衝記憶體中。The embodiment of the present invention is applied to a data synchronization system of a wireless communication system. The present invention provides a data synchronization system for a wireless communication system, which enables a first wireless data receiving device and a second wireless data receiving device connected through a wireless connection to respectively receive the first multimedia data from a wireless data sending source. The data is synchronized with the second multimedia data. The data synchronization system of the wireless communication system includes a first synchronization mark device and a second synchronization mark device. The first synchronization mark device is located in the first wireless data receiving device. And the first synchronization mark device adds a first synchronization mark to the first multimedia data to generate a first data to be synchronized, and stores the first data to be synchronized in a first synchronization buffer memory; The second synchronization mark device is located in the second wireless data receiving device, and the second synchronization mark device adds a second synchronization mark to the second multimedia data to generate a second data to be synchronized, and The second data to be synchronized is stored in a second synchronization buffer memory.

本發明提供一種無線通訊系統之資料同步方法,該資料同步方法包括一第一無線資料接收裝置與一第二無線資料接收裝置分別接收一第一多媒體資料與一第二多媒體資料,一第一同步標記裝置與一第二同步標記裝置分別對該第一多媒體資料與該第二多媒體資料加入一第一同步標記與一第二同步標記,以產生一第一待同步資料與一第二待同步資料,將該第一待同步資料與該第二待同步資料分別存入一第一同步緩衝記憶體與一第二同步緩衝記憶體,以及該第一同步標記裝置與該第二同步標記裝置進行狀態交換以進行資料同步。The invention provides a data synchronization method in a wireless communication system. The data synchronization method includes a first wireless data receiving device and a second wireless data receiving device respectively receiving a first multimedia data and a second multimedia data. A first synchronization mark device and a second synchronization mark device respectively add a first synchronization mark and a second synchronization mark to the first multimedia data and the second multimedia data to generate a first synchronization to be synchronized data and a second data to be synchronized, the first data to be synchronized and the second data to be synchronized are respectively stored in a first synchronization buffer memory and a second synchronization buffer memory, and the first synchronization mark device and The second synchronization mark device performs status exchange for data synchronization.

第1圖為依據本發明一實施例之無線通訊系統的示意圖。如圖所示,依據本發明一實施例之無線通訊系統包括一無線資料發送源100、一第一無線資料接收裝置101與一第二無線資料接收裝置102,該第一無線資料接收裝置101透過一無線連結107從該無線資料發送源100接收一第一多媒體資料,該第二無線資料接收裝置102亦可透過一無線連結110從該無線資料發送源100接收一第二多媒體資料,其中,該第一無線資料接收裝置101與該第二無線資料接收裝置102是透過一無線連結108相互連接,較佳而言,無線連結皆為遵守藍牙協定的無線連結。Figure 1 is a schematic diagram of a wireless communication system according to an embodiment of the present invention. As shown in the figure, a wireless communication system according to an embodiment of the present invention includes a wireless data sending source 100, a first wireless data receiving device 101 and a second wireless data receiving device 102. The first wireless data receiving device 101 passes through A wireless link 107 receives a first multimedia data from the wireless data sending source 100, and the second wireless data receiving device 102 can also receive a second multimedia data from the wireless data sending source 100 through a wireless link 110. , wherein the first wireless data receiving device 101 and the second wireless data receiving device 102 are connected to each other through a wireless link 108. Preferably, the wireless links are wireless links that comply with the Bluetooth protocol.

於本發明之一具體實施例中,該無線資料發送源100可為一智慧型手機或一藍牙多媒體播放裝置,該第一無線資料接收裝置101與該第二無線資料接收裝置102分別為一對真無線藍牙立體聲耳機或一對藍牙立體聲音箱的左右聲道,並可分別透過藍牙連結該智慧型手機或該藍牙多媒體播放裝置接收音訊資料;而於本發明一實施例中,當該第二無線資料接收裝置102無法由該無線資料發送源100直接收到音訊資料時,該第二無線資料接收裝置102亦可由該第一無線資料接收裝置101間接收到該無線資料發送源100發送的音訊資料。In a specific embodiment of the present invention, the wireless data sending source 100 can be a smart phone or a Bluetooth multimedia player device, and the first wireless data receiving device 101 and the second wireless data receiving device 102 are respectively a pair. The left and right channels of a true wireless Bluetooth stereo headset or a pair of Bluetooth stereo speakers can be connected to the smartphone or the Bluetooth multimedia playback device via Bluetooth to receive audio data respectively; and in one embodiment of the present invention, when the second wireless When the data receiving device 102 cannot directly receive the audio data from the wireless data sending source 100, the second wireless data receiving device 102 can also indirectly receive the audio data sent by the wireless data sending source 100 through the first wireless data receiving device 101. .

在上述之具體實施例當中,一左右聲道之音訊資料的同步機制非常重要,因此本發明提供一利用同步標記來進行資料同步的資料同步系統,第2圖為依據本發明一實施例之資料同步系統的示意圖,於本發明一具體實施例中,該第一無線資料接收裝置101包括一第一同步標記裝置201與一第一同步緩衝記憶體203,該第一同步緩衝記憶體203耦接至該第一同步標記裝置201,且該第一同步標記裝置201將該第一多媒體資料加入一第一同步標記,以產生一第一待同步資料,並將該第一待同步資料存入該第一同步緩衝記憶體203中;同理,該第二無線資料接收裝置102包括一第二同步標記裝置205與一第二同步緩衝記憶體207,該第二同步緩衝記憶體207耦接至該第二同步標記裝置205,且該第二同步標記裝置205將該第二多媒體資料加入一第二同步標記,以產生一第二待同步資料,並將該第二待同步資料存入該第二同步緩衝記憶體207中;由於在藍牙協定中,主時鐘(master clock)與從屬時鐘(slave clock)在藍牙連結建立後具有同步的特性,因此,於本發明一實施例中,序列時鐘數(sequential clock count)便可作為同步標記使用,此外,本發明另一實施例中,時間標記(timestamp)亦可被用來作為同步標記使用,但使用前必須先將時間標記同步。In the above-mentioned specific embodiments, the synchronization mechanism of the audio data of the left and right channels is very important. Therefore, the present invention provides a data synchronization system that uses synchronization marks to synchronize data. Figure 2 shows the data according to an embodiment of the present invention. Schematic diagram of a synchronization system. In a specific embodiment of the present invention, the first wireless data receiving device 101 includes a first synchronization mark device 201 and a first synchronization buffer memory 203. The first synchronization buffer memory 203 is coupled to to the first synchronization mark device 201, and the first synchronization mark device 201 adds a first synchronization mark to the first multimedia data to generate a first data to be synchronized, and stores the first data to be synchronized. into the first synchronization buffer memory 203; similarly, the second wireless data receiving device 102 includes a second synchronization mark device 205 and a second synchronization buffer memory 207, the second synchronization buffer memory 207 is coupled to the second synchronization mark device 205, and the second synchronization mark device 205 adds a second synchronization mark to the second multimedia data to generate a second data to be synchronized, and stores the second data to be synchronized. into the second synchronization buffer memory 207; since in the Bluetooth protocol, the master clock and the slave clock have synchronization characteristics after the Bluetooth connection is established, therefore, in an embodiment of the present invention, The sequential clock count can be used as a synchronization mark. In addition, in another embodiment of the present invention, a time stamp (timestamp) can also be used as a synchronization mark, but the time stamp must be synchronized before use.

第3圖顯示一遵守藍牙協定之傳輸裝置的示意圖。如圖所示,一遵守藍牙協定之傳輸裝置300包括一藍牙主機(Bluetooth host)301與一藍牙控制器(Bluetooth controller)303。Figure 3 shows a schematic diagram of a transmission device complying with the Bluetooth protocol. As shown in the figure, a transmission device 300 that complies with the Bluetooth protocol includes a Bluetooth host 301 and a Bluetooth controller 303 .

於本發明一具體實施例中,第2圖中的該第一同步標記裝置201與該第二同步標記裝置205皆為藍牙主機301;於本發明另一具體實施例中,第2圖中的該第一同步標記裝置201與該第二同步標記裝置205皆為藍牙控制器303;於本發明又一具體實施例中,第2圖中的該第一同步標記裝置201與該第二同步標記裝置205皆為藍牙主機301與藍牙控制器303的組合,具體而言,可由藍牙控制器對接收的多媒體資料加入同步標記,再由藍牙主機存入同步緩衝記憶體中。In a specific embodiment of the present invention, the first synchronization mark device 201 and the second synchronization mark device 205 in Figure 2 are both Bluetooth hosts 301; in another specific embodiment of the present invention, the first synchronization mark device 201 and the second synchronization mark device 205 in Figure 2 are Bluetooth hosts. The first synchronization mark device 201 and the second synchronization mark device 205 are both Bluetooth controllers 303; in another specific embodiment of the present invention, the first synchronization mark device 201 and the second synchronization mark in Figure 2 The device 205 is a combination of the Bluetooth host 301 and the Bluetooth controller 303. Specifically, the Bluetooth controller can add a synchronization mark to the received multimedia data, and then the Bluetooth host stores it in the synchronization buffer memory.

請再一併參考第4圖,第4圖為存放於該第一同步緩衝記憶體203或該第二同步緩衝記憶體207中的多媒體資料示意圖,如圖所示,存在同步緩衝記憶體中的多媒體資料包括一資料酬載(data payload)401、一同步標記403以及一有效旗標(valid flag)405,該資料酬載401為自該無線資料發送源接收的多媒體資料,當該第一無線資料接收裝置101與該第二無線資料接收裝置102收到多媒體資料後,該第一同步標記裝置201與該第二同步資料裝置205會將第一同步標記與第二同步標記分別加入該第一無線資料接收裝置101與該第二無線資料接收裝置102所收到的多媒體資料中,當同步標記被加入到多媒體資料後,該有效旗標405會被設成FALSE,而當該第一同步緩衝記憶體203與該第二同步緩衝記憶體207中的多媒體資料同步後,該有效旗標405會被設成TRUE。Please refer to Figure 4 again. Figure 4 is a schematic diagram of multimedia data stored in the first synchronization buffer memory 203 or the second synchronization buffer memory 207. As shown in the figure, the multimedia data stored in the synchronization buffer memory is The multimedia data includes a data payload 401, a synchronization mark 403 and a valid flag 405. The data payload 401 is multimedia data received from the wireless data transmission source. When the first wireless After the data receiving device 101 and the second wireless data receiving device 102 receive the multimedia data, the first synchronization mark device 201 and the second synchronization data device 205 will respectively add the first synchronization mark and the second synchronization mark to the first synchronization mark. In the multimedia data received by the wireless data receiving device 101 and the second wireless data receiving device 102, when the synchronization mark is added to the multimedia data, the valid flag 405 will be set to FALSE, and when the first synchronization buffer After the memory 203 is synchronized with the multimedia data in the second synchronization buffer memory 207, the valid flag 405 will be set to TRUE.

當多媒體資料寫入同步緩衝記憶體時,該第一同步緩衝記憶體203與該第二同步緩衝記憶體207之間的同步就開始進行,基本上有兩個階段,第一個階段是兩者之間的狀態交換(status exchange),第二個階段是在有必要時,進行資料補償(data compensation)的動作,請再一併參考第5A圖,第5A圖顯示依據本發明實施例之以同步標記正常進行資料同步之示意圖,方塊501代表該無線資料發送源100發送出多媒體資料,方塊502代表該第一無線資料接收裝置101中的該第一同步緩衝記憶體203中所收到的多媒體資料,而方塊503代表該第二無線資料接收裝置102中的該第二同步緩衝記憶體207中所收到的多媒體資料,該方塊502與該方塊503代表該第一無線資料接收裝置101與該第二無線資料接收裝置102都正常接收到多媒體資料,而方塊504,即步驟504代表該第一無線資料接收裝置101會傳送一同步請求,且方塊505,即步驟505代表該第二無線資料接收裝置102接收到該同步請求,該同步請求中包括該第一同步標記,該第二無線資料接收裝置102會比較該第一同步標記與該第二同步標記來確認是否同步,該第二無線資料接收裝置102會發送同步結果的回覆(方塊507,即步驟507),而方塊506,即步驟506則代表該第一無線資料接收裝置101接收到該同步結果的回覆,而至此,若確認同步已完成,該第一無線資料接收裝置101與該第二無線資料接收裝置102便知道相同的多媒體資料存在於該第一同步緩衝記憶體203與該第二同步緩衝記憶體207中,則該第一同步緩衝記憶體203與該第二同步緩衝記憶體207中的有效旗標便會被設成TRUE,然後開始正常的多媒體資料播放。When multimedia data is written into the synchronization buffer memory, the synchronization between the first synchronization buffer memory 203 and the second synchronization buffer memory 207 begins. There are basically two stages. The first stage is between both The second stage is to perform data compensation when necessary. Please refer to Figure 5A again. Figure 5A shows how to perform data compensation according to an embodiment of the present invention. A schematic diagram of the normal data synchronization of the synchronization mark. Block 501 represents the wireless data sending source 100 sending multimedia data, and block 502 represents the multimedia received in the first synchronization buffer memory 203 in the first wireless data receiving device 101 data, and block 503 represents the multimedia data received in the second synchronization buffer memory 207 in the second wireless data receiving device 102, and the blocks 502 and 503 represent the first wireless data receiving device 101 and the The second wireless data receiving device 102 receives multimedia data normally, and block 504, that is, step 504, represents that the first wireless data receiving device 101 will send a synchronization request, and block 505, that is, step 505, represents that the second wireless data receiving device 102 receives The device 102 receives the synchronization request, which includes the first synchronization mark. The second wireless data receiving device 102 compares the first synchronization mark with the second synchronization mark to confirm whether the second wireless data is synchronized. The receiving device 102 will send a reply of the synchronization result (block 507, step 507), and block 506, that is, step 506, represents that the first wireless data receiving device 101 has received the reply of the synchronization result. At this point, if the synchronization is confirmed After completion, the first wireless data receiving device 101 and the second wireless data receiving device 102 know that the same multimedia data exists in the first synchronization buffer memory 203 and the second synchronization buffer memory 207, then the first The valid flags in the synchronization buffer memory 203 and the second synchronization buffer memory 207 will be set to TRUE, and then normal multimedia data playback will begin.

請再參考第5B圖,第5B圖顯示依據本發明實施例之以同步標記進行資料同步之示意圖,在此狀況下,方塊510代表該無線資料發送源100發送出多媒體資料,方塊511代表該第一無線資料接收裝置101中的該第一同步緩衝記憶體203中所收到的多媒體資料,而該第二無線資料接收裝置102並未收到多媒體資料,該第一無線資料接收裝置101會開始與該第二無線資料接收裝置102狀態交換的機制,從而得知該第二無線資料接收裝置102並未收到多媒體資料,然後,方塊512,即步驟512代表該第一無線資料接收裝置101會將方塊511的多媒體資料透過一無線連結傳送給該第二無線資料接收裝置102,方塊513,即步驟513代表該第二無線資料接收裝置102收到了多媒體資料,然後,該第一同步緩衝記憶體203與該第二同步緩衝記憶體207中的有效旗標可被設為TRUE,並進入下一階段(如:多媒體資料播放)。Please refer to Figure 5B again. Figure 5B shows a schematic diagram of data synchronization using a synchronization mark according to an embodiment of the present invention. In this case, block 510 represents the wireless data sending source 100 sending multimedia data, and block 511 represents the third The multimedia data received in the first synchronization buffer memory 203 in a wireless data receiving device 101, and the second wireless data receiving device 102 has not received the multimedia data, the first wireless data receiving device 101 will start The mechanism of status exchange with the second wireless data receiving device 102, thereby knowing that the second wireless data receiving device 102 has not received the multimedia data. Then, block 512, that is, step 512 represents that the first wireless data receiving device 101 will The multimedia data in block 511 is transmitted to the second wireless data receiving device 102 through a wireless connection. Block 513, that is, step 513, represents that the second wireless data receiving device 102 has received the multimedia data. Then, the first synchronization buffer memory 203 and the valid flag in the second synchronization buffer memory 207 can be set to TRUE and enter the next stage (such as multimedia data playback).

請再參考第5C圖,第5C圖顯示依據本發明實施例之以同步標記進行資料同步之示意圖,在此狀況下,方塊520代表該無線資料發送源100發送出多媒體資料,方塊521代表該第二無線資料接收裝置102中的該第二同步緩衝記憶體207中所收到的多媒體資料,而該第一無線資料接收裝置101並未收到多媒體資料,在此狀況下,方塊521的多媒體資料會先暫時被保留著,而由於該無線資料發送源100從該第一無線資料接收裝置101沒有接收到代表收到多媒體資料的回覆信號ACK,因此會再次傳送出多媒體資料(方塊522), 方塊523與524分別代表該第一無線資料接收裝置101中的該第一同步緩衝記憶體203中所收到的多媒體資料與該第二無線資料接收裝置102中的該第二同步緩衝記憶體207中所收到的多媒體資料, 該第一無線資料接收裝置101會開始與該第二無線資料接收裝置102狀態交換的機制,從而得知該第二無線資料接收裝置102有收到多媒體資料,然後,該第一同步緩衝記憶體203與該第二同步緩衝記憶體207中的多媒體資料523與524的有效旗標可被設為TRUE,在第二同步緩衝記憶體207中的多媒體資料521則被丟棄,並進入下一階段(如:多媒體資料播放)。Please refer to Figure 5C again. Figure 5C shows a schematic diagram of data synchronization using a synchronization mark according to an embodiment of the present invention. In this case, block 520 represents the wireless data sending source 100 sending multimedia data, and block 521 represents the third The multimedia data received in the second synchronization buffer memory 207 in the second wireless data receiving device 102, and the first wireless data receiving device 101 has not received the multimedia data. In this situation, the multimedia data in block 521 It will be temporarily retained first, and because the wireless data sending source 100 does not receive the reply signal ACK representing the receipt of the multimedia data from the first wireless data receiving device 101, the multimedia data will be sent out again (block 522). 523 and 524 respectively represent the multimedia data received in the first synchronization buffer memory 203 in the first wireless data receiving device 101 and the second synchronization buffer memory 207 in the second wireless data receiving device 102. Upon receiving the multimedia data, the first wireless data receiving device 101 will start a status exchange mechanism with the second wireless data receiving device 102, thereby knowing that the second wireless data receiving device 102 has received the multimedia data, and then, The valid flags of the multimedia data 523 and 524 in the first synchronization buffer memory 203 and the second synchronization buffer memory 207 can be set to TRUE, and the multimedia data 521 in the second synchronization buffer memory 207 is discarded. , and enter the next stage (such as: multimedia data playback).

由以上敘述,可得知本發明亦提供無線通訊系統的資料同步方法,請再一併參考第6圖,第6圖為依據本發明一實施例之無線通訊系統的資料同步方法示意圖,該資料同步方法之步驟說明如下。From the above description, it can be seen that the present invention also provides a data synchronization method for a wireless communication system. Please refer to Figure 6 again. Figure 6 is a schematic diagram of a data synchronization method for a wireless communication system according to an embodiment of the present invention. This data The steps of the synchronization method are described below.

步驟610:一第一無線資料接收裝置101與一第二無線資料接收裝置102分別接收一第一多媒體資料與一第二多媒體資料。Step 610: A first wireless data receiving device 101 and a second wireless data receiving device 102 receive a first multimedia data and a second multimedia data respectively.

步驟620:一第一同步標記裝置201與一第二同步標記裝置205分別對該第一多媒體資料與該第二多媒體資料加入一第一同步標記與一第二同步標記,以產生一第一待同步資料與一第二待同步資料。於本發明一實施例中,本步驟更包括分別對該第一多媒體資料與該第二多媒體資料加入一第一有效旗標與一第二有效旗標。Step 620: A first synchronization mark device 201 and a second synchronization mark device 205 respectively add a first synchronization mark and a second synchronization mark to the first multimedia data and the second multimedia data to generate A first data to be synchronized and a second data to be synchronized. In an embodiment of the present invention, this step further includes adding a first valid flag and a second valid flag to the first multimedia data and the second multimedia data respectively.

步驟630:將該第一待同步資料與該第二待同步資料分別存入一第一同步緩衝記憶體203與一第二同步緩衝記憶體207。Step 630: Store the first data to be synchronized and the second data to be synchronized into a first synchronization buffer memory 203 and a second synchronization buffer memory 207 respectively.

步驟640:第一同步標記裝置201與第二同步標記裝置205進行狀態交換。Step 640: The first synchronization marking device 201 and the second synchronization marking device 205 perform status exchange.

步驟650: 該第一無線資料接收裝置101與該第二無線資料接收裝置102之一者進行資料補償。Step 650: Either the first wireless data receiving device 101 or the second wireless data receiving device 102 performs data compensation.

雖然本發明已以較佳實施例揭露如上,然其並非用以限定本發明,任何熟悉此項技藝者,在不脫離本發明之精神和範圍內,當可做些許更動與潤飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。Although the present invention has been disclosed above in terms of preferred embodiments, they are not intended to limit the present invention. Anyone familiar with this art can make some changes and modifications without departing from the spirit and scope of the present invention. Therefore, the present invention The scope of protection shall be subject to the scope of the patent application attached.

100無線資料發送源 101第一無線資料接收裝置 102 第二無線資料接收裝置 107、108、110無線連結 201第一同步標記裝置 203第一同步緩衝記憶體 205第二同步標記裝置 207 第二同步緩衝記憶體 300 遵守藍牙協定之傳輸裝置 301藍牙主機 303藍牙控制器 401資料酬載 403同步標記 405 有效旗標 501、502、503、510、511、520、521、522、523、524多媒體資料 504、505、506、507、512、513 步驟 610、620、630、640、650無線通訊系統之資料同步方法步驟 100 wireless data sending sources 101 First wireless data receiving device 102 Second wireless data receiving device 107, 108, 110 wireless connection 201 First Synchronous Marking Device 203 first synchronization buffer memory 205 second synchronization marking device 207 Second synchronization buffer memory 300 Transmission device that complies with the Bluetooth protocol 301 Bluetooth host 303 bluetooth controller 401 data payload 403 sync flag 405 valid flag 501, 502, 503, 510, 511, 520, 521, 522, 523, 524 multimedia materials 504, 505, 506, 507, 512, 513 steps Data synchronization methods and steps for 610, 620, 630, 640, and 650 wireless communication systems

第1圖為依據本發明一實施例之無線通訊系統的示意圖。Figure 1 is a schematic diagram of a wireless communication system according to an embodiment of the present invention.

第2圖為依據本發明一實施例之資料同步系統的示意圖。Figure 2 is a schematic diagram of a data synchronization system according to an embodiment of the present invention.

第3圖顯示一遵守藍牙協定之傳輸裝置的示意圖。Figure 3 shows a schematic diagram of a transmission device complying with the Bluetooth protocol.

第4圖為存放於該第一同步緩衝記憶體或該第二同步緩衝記憶體中的多媒體資料示意圖。Figure 4 is a schematic diagram of multimedia data stored in the first synchronization buffer memory or the second synchronization buffer memory.

第5A圖顯示依據本發明實施例之以同步標記正常進行資料同步之示意圖。FIG. 5A shows a schematic diagram of normal data synchronization using a synchronization mark according to an embodiment of the present invention.

第5B圖顯示依據本發明實施例之以同步標記進行資料同步之示意圖。FIG. 5B shows a schematic diagram of data synchronization using synchronization marks according to an embodiment of the present invention.

第5C圖顯示依據本發明實施例之以同步標記進行資料同步之示意圖。FIG. 5C shows a schematic diagram of data synchronization using synchronization marks according to an embodiment of the present invention.

第6圖為依據本發明一實施例之無線通訊系統的資料同步方法示意圖。Figure 6 is a schematic diagram of a data synchronization method of a wireless communication system according to an embodiment of the present invention.

610、620、630、640、650無線通訊系統之資料同步方法步驟Data synchronization methods and steps for 610, 620, 630, 640, and 650 wireless communication systems

Claims (13)

一種無線通訊系統之資料同步系統,可使透過一無線連結連接的一第一無線資料接收裝置與一第二無線資料接收裝置分別從一無線資料發送源所接收的第一多媒體資料與第二多媒體資料同步,該無線通訊系統之資料同步系統包括: 一第一同步標記裝置,位於該第一無線資料接收裝置中,且該第一同步標記裝置將該第一多媒體資料加入一第一同步標記,以產生一第一待同步資料,並將該第一待同步資料存入一第一同步緩衝記憶體中;以及 一第二同步標記裝置,位於該第二無線資料接收裝置中,且該第二同步標記裝置將該第二多媒體資料加入一第二同步標記,以產生一第二待同步資料,並將該第二待同步資料存入一第二同步緩衝記憶體中。 A data synchronization system of a wireless communication system can enable a first wireless data receiving device and a second wireless data receiving device connected through a wireless connection to respectively receive first multimedia data and third multimedia data from a wireless data sending source. 2. Multimedia data synchronization. The data synchronization system of the wireless communication system includes: A first synchronization mark device is located in the first wireless data receiving device, and the first synchronization mark device adds a first synchronization mark to the first multimedia data to generate a first data to be synchronized, and The first data to be synchronized is stored in a first synchronization buffer memory; and A second synchronization mark device is located in the second wireless data receiving device, and the second synchronization mark device adds a second synchronization mark to the second multimedia data to generate a second data to be synchronized, and The second data to be synchronized is stored in a second synchronization buffer memory. 如申請專利範圍第1項所述之無線通訊系統之資料同步系統,其中至少該第一同步標記裝置與該第二同步標記裝置之一者為一藍牙主機。In the data synchronization system of the wireless communication system described in item 1 of the patent application, at least one of the first synchronization mark device and the second synchronization mark device is a Bluetooth host. 如申請專利範圍第1項所述之無線通訊系統之資料同步系統,其中至少該第一同步標記裝置與該第二同步標記裝置之一者為一藍牙控制器。In the data synchronization system of the wireless communication system described in item 1 of the patent application, at least one of the first synchronization marking device and the second synchronization marking device is a Bluetooth controller. 如申請專利範圍第1項所述之無線通訊系統之資料同步系統,其中至少該第一同步標記裝置與該第二同步標記裝置之一者為一藍牙主機與一藍牙控制器的組合。In the data synchronization system of the wireless communication system described in item 1 of the patent application, at least one of the first synchronization marking device and the second synchronization marking device is a combination of a Bluetooth host and a Bluetooth controller. 如申請專利範圍第1項所述之無線通訊系統之資料同步系統,其中該第一多媒體資料與該第二多媒體資料為音訊資料。In the data synchronization system of the wireless communication system described in item 1 of the patent application, the first multimedia data and the second multimedia data are audio data. 如申請專利範圍第1項所述之無線通訊系統之資料同步系統,其中該無線連結遵守一藍牙協定。A data synchronization system for a wireless communication system as described in item 1 of the patent application, wherein the wireless link complies with a Bluetooth protocol. 如申請專利範圍第1項所述之無線通訊系統之資料同步系統,其中該無線發送源為一智慧型手機。The data synchronization system of the wireless communication system described in item 1 of the patent application scope, wherein the wireless transmission source is a smart phone. 如申請專利範圍第1項所述之無線通訊系統之資料同步系統,其中該第一無線資料接收裝置與該第二無線資料接收裝置為耳機或音箱。In the data synchronization system of the wireless communication system described in item 1 of the patent application, the first wireless data receiving device and the second wireless data receiving device are headphones or speakers. 一種無線通訊系統之資料同步方法,包括: 一第一無線資料接收裝置與一第二無線資料接收裝置分別接收一第一多媒體資料與一第二多媒體資料; 一第一同步標記裝置與一第二同步標記裝置分別對該第一多媒體資料與該第二多媒體資料加入一第一同步標記與一第二同步標記,以產生一第一待同步資料與一第二待同步資料; 將該第一待同步資料與該第二代同步資料分別存入一第一同步緩衝記憶體與一第二同步緩衝記憶體;以及 該第一同步標記裝置與該第二同步標記裝置進行狀態交換。 A data synchronization method for a wireless communication system, including: A first wireless data receiving device and a second wireless data receiving device respectively receive a first multimedia data and a second multimedia data; A first synchronization mark device and a second synchronization mark device respectively add a first synchronization mark and a second synchronization mark to the first multimedia data and the second multimedia data to generate a first synchronization to be synchronized Data and data to be synchronized with one and two; Store the first data to be synchronized and the second-generation synchronized data into a first synchronization buffer memory and a second synchronization buffer memory respectively; and The first synchronization mark device and the second synchronization mark device perform status exchange. 如申請專利範圍第9項所述之無線通訊系統之資料同步方法,其中該第一同步標記與該第二同步標記為一時間標記。In the data synchronization method of the wireless communication system described in item 9 of the patent application, the first synchronization mark and the second synchronization mark are a time mark. 如申請專利範圍第9項所述之無線通訊系統之資料同步方法,其中該第一同步標記與該第二同步標記為藍牙協定中的時鐘數。In the data synchronization method of a wireless communication system described in item 9 of the patent application, the first synchronization mark and the second synchronization mark are clock numbers in the Bluetooth protocol. 如申請專利範圍第9項所述之無線通訊系統之資料同步方法,更包含: 該第一無線資料接收裝置與該第二無線資料接收裝置之一者進行資料補償。 The data synchronization method of the wireless communication system described in item 9 of the patent application further includes: One of the first wireless data receiving device and the second wireless data receiving device performs data compensation. 如申請專利範圍第9項所述之無線通訊系統之資料同步方法,分別對該第一多媒體資料與該第二多媒體資料加入一第一同步標記與一第二同步標記更包括:分別將對該第一多媒體資料與該第二多媒體資料加入一第一有效旗標與一第二有效旗標。According to the data synchronization method of the wireless communication system described in item 9 of the patent application scope, adding a first synchronization mark and a second synchronization mark to the first multimedia data and the second multimedia data respectively further includes: A first valid flag and a second valid flag will be added to the first multimedia data and the second multimedia data respectively.
TW111109123A 2022-03-11 2022-03-11 Data synchronization system and method for wireless communication system TWI826951B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW111109123A TWI826951B (en) 2022-03-11 2022-03-11 Data synchronization system and method for wireless communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW111109123A TWI826951B (en) 2022-03-11 2022-03-11 Data synchronization system and method for wireless communication system

Publications (2)

Publication Number Publication Date
TW202337167A TW202337167A (en) 2023-09-16
TWI826951B true TWI826951B (en) 2023-12-21

Family

ID=88927381

Family Applications (1)

Application Number Title Priority Date Filing Date
TW111109123A TWI826951B (en) 2022-03-11 2022-03-11 Data synchronization system and method for wireless communication system

Country Status (1)

Country Link
TW (1) TWI826951B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200830767A (en) * 2006-07-28 2008-07-16 Gct Semiconductor Inc Method and system for transmitting voice data by using wireless LAN and bluetooth
WO2019168931A1 (en) * 2018-03-01 2019-09-06 Sony Corporation Dynamic lip-sync compensation for truly wireless bluetooth devices
CN110249302A (en) * 2017-02-06 2019-09-17 微软技术许可有限责任公司 Multiple programs are performed simultaneously on processor core

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200830767A (en) * 2006-07-28 2008-07-16 Gct Semiconductor Inc Method and system for transmitting voice data by using wireless LAN and bluetooth
CN110249302A (en) * 2017-02-06 2019-09-17 微软技术许可有限责任公司 Multiple programs are performed simultaneously on processor core
WO2019168931A1 (en) * 2018-03-01 2019-09-06 Sony Corporation Dynamic lip-sync compensation for truly wireless bluetooth devices

Also Published As

Publication number Publication date
TW202337167A (en) 2023-09-16

Similar Documents

Publication Publication Date Title
JP7174776B2 (en) 2 stage roll switch
CN109565662B (en) Multimedia device for controlling connection
US11735137B2 (en) Electronic devices, method of transmitting data block, method of determining contents of transmission signal, and transmission/reception system
CN111901730B (en) TWS earphone interaction method and system and TWS earphone
WO2018152908A1 (en) Method and device for identifying voice source from bluetooth headset
CN111436046A (en) Bluetooth-based audio data providing method and device, charging equipment and system
TWI826951B (en) Data synchronization system and method for wireless communication system
US20240168703A1 (en) Method, device, and computer program for audio routing in wireless communication system, and recording medium therefor
US11989485B2 (en) Method, device and computer program for controlling audio data in wireless communication system, and recording medium therefor
EP4057565A1 (en) Method, apparatus, and computer program for setting encryption key in wireless communication system, and recording medium for same
US20240022783A1 (en) Multimedia playback synchronization
US11513765B2 (en) Bluetooth audio device, Bluetooth audio system and operating method thereof
CN113115281B (en) Bluetooth audio device, bluetooth audio system and operation method thereof
CN115175159A (en) Bluetooth headset playing method and equipment
US20230186882A1 (en) Transmission device, transmission method, reception device and reception method
CN113329382A (en) Bluetooth-based time point synchronizing method, device and system
CN115776628B (en) Method for accurate synchronization of two-ear recording of TWS Bluetooth headset
JP2022533810A (en) COMMUNICATION METHOD, APPARATUS AND DEVICE
CN109246546A (en) A kind of music control system and its data transmission method
US11170820B1 (en) Method and apparatus for recording audio information
WO2023065881A1 (en) Bluetooth connection method and apparatus, electronic device, and storage medium
US20220417637A1 (en) Method and system for wireless transmission of audio data
CN113613125B (en) Audio synchronous control method, device, audio equipment and system
EP4106373A1 (en) Method, device and computer program for cloud-authenticated pairing in wireless communication system, and recording medium therefor
CN117012208A (en) Audio transmission method, equipment and system