Movatterモバイル変換


[0]ホーム

URL:


CN102821086A - Data transmission method and device and data receiving method and device - Google Patents

Data transmission method and device and data receiving method and device
Download PDF

Info

Publication number
CN102821086A
CN102821086ACN201210109356XACN201210109356ACN102821086ACN 102821086 ACN102821086 ACN 102821086ACN 201210109356X ACN201210109356X ACN 201210109356XACN 201210109356 ACN201210109356 ACN 201210109356ACN 102821086 ACN102821086 ACN 102821086A
Authority
CN
China
Prior art keywords
data
communication protocol
communication
protocol
agreement
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201210109356XA
Other languages
Chinese (zh)
Inventor
杨琳豪
黄仲贤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
MediaTek Inc
Original Assignee
MediaTek Inc
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 MediaTek IncfiledCriticalMediaTek Inc
Priority to DE102012011232ApriorityCriticalpatent/DE102012011232A1/en
Priority to US13/491,592prioritypatent/US20120314631A1/en
Priority to TW101120924Aprioritypatent/TWI484806B/en
Publication of CN102821086ApublicationCriticalpatent/CN102821086A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Landscapes

Abstract

The invention provides a data transmission method and device and a data receiving method and device. The data transmission method comprises the following steps: receiving first data for an application of a first communication protocol; converting the first data into second data corresponding to a second communication protocol, wherein the second communication protocol is different from the first communication protocol; and transmitting the second data to the communication element, wherein the communication element is configured to transmit the second data via a second communication protocol, and the first communication protocol does not control the transmission of the second data. The data transmission method and the data receiving method provided by the invention can expand the application layer applied to one communication protocol application to other communication protocols or increase the service range or throughput of the communication protocol application.

Description

Translated fromChinese
数据传输方法、装置以及数据接收方法、装置Data transmission method, device and data receiving method, device

技术领域technical field

本发明有关于不同装置之间的数据处理(data transaction),尤其有关于一种利用通信协议来传输/接收另一种通信协议的应用的数据的方法及其装置。The present invention relates to data processing (data transaction) between different devices, and in particular relates to a method for transmitting/receiving application data of another communication protocol using a communication protocol and a device thereof.

背景技术Background technique

随着无线通信(wireless communication)技术的进步,一个装置得以透过无线通信协议(wireless communication protocol)来与另一个装置进行数据传输通信。其中,无线通信协议可例如蓝牙(Bluetooth)、无线兼容认证(wireless fidelity,Wi-Fi)等等。因为蓝牙技术发展得相当早,故已有许多蓝牙应用(Bluetoothapplication)问世,举例来说,点对点通信应用(peer-to-peer communicationapplication)普遍为许多蓝牙装置(例如,移动电话)所支持。对于无线兼容认证技术来说,由于其提出的比蓝牙技术晚,故可用的应用相当少,举例来说,无线兼容认证点对点模式(Wi-Fi ad-hoc mode)为最常使用的应用。由于无线兼容认证直连(Wi-Fi Direct)标准的发展,可允许无线兼容认证装置彼此之间无需无线接入点(access point)即可进行通信,换言之,无线兼容认证直连应用的操作相似于蓝牙应用的操作,举例来说,无线兼容认证直连应用可支持文件/档案共享、打印以及两个无线兼容认证装置之间的同步处理(synchronization),然而,由于无线兼容认证直连标准是近期所发表,并没有许多无线兼容认证直连应用可供用户来使用。With the advancement of wireless communication technology, a device can communicate with another device for data transmission through a wireless communication protocol. Wherein, the wireless communication protocol may be, for example, Bluetooth (Bluetooth), wireless compatibility certification (wireless fidelity, Wi-Fi) and the like. Because the Bluetooth technology has been developed quite early, many Bluetooth applications have come out. For example, peer-to-peer communication applications are generally supported by many Bluetooth devices (eg, mobile phones). For the wireless compatible authentication technology, since it was proposed later than the Bluetooth technology, there are quite few available applications. For example, the wireless compatible authentication point-to-point mode (Wi-Fi ad-hoc mode) is the most commonly used application. Due to the development of the Wi-Fi Direct standard, it allows Wi-Fi devices to communicate with each other without a wireless access point (access point), in other words, the operation of the Wi-Fi Direct application is similar In the operation of Bluetooth applications, for example, the Wi-Fi Direct application can support file/file sharing, printing, and synchronization between two Wi-Fi devices. However, since the Wi-Fi Direct standard is As recently announced, there are not many Wi-Fi Certified Direct applications available to users.

再者,由于不同的协议对不同的应用可具有不同的优点,因此,人们也许会想利用多种协议来达到相对应的应用的最佳效能。Furthermore, since different protocols have different advantages for different applications, people may want to use multiple protocols to achieve the best performance for corresponding applications.

因此,需要一种可透过一种通信协议(例如,无线兼容认证直连协议)来支持用于另一种通信协议(例如,蓝牙协议)的应用的新颖设计。Therefore, there is a need for a novel design that can support applications for another communication protocol (eg, Bluetooth protocol) through one communication protocol (eg, Wi-Fi Direct).

发明内容Contents of the invention

有鉴于此,本发明提供一种数据传输方法、装置以及数据接收方法、装置。In view of this, the present invention provides a data transmission method and device as well as a data receiving method and device.

本发明提供一种数据传输方法,包含:接收用于第一通信协议的应用的第一数据;将该第一数据转换为对应于第二通信协议的第二数据,其中该第二通信协议不同于该第一通信协议;以及将该第二数据传递至通信元件,其中该通信元件是用于透过该第二通信协议来传输该第二数据,以及该第一通信协议并不会控制该第二数据的传输。The present invention provides a data transmission method, comprising: receiving first data for an application of a first communication protocol; converting the first data into second data corresponding to a second communication protocol, wherein the second communication protocol is different from in the first communication protocol; and delivering the second data to a communication element, wherein the communication element is used to transmit the second data through the second communication protocol, and the first communication protocol does not control the Transmission of the second data.

本发明另提供一种数据接收方法,包含:自通信元件取得第一数据,其中该通信元件是用于透过不同于第二通信协议的第一通信协议来接收该第一数据,以及该第二通信协议并不会控制该第一数据的接收;将该第一数据转换为对应于该第二通信协议的第二数据;以及发送该第二数据至用于该第二通信协议的应用。The present invention further provides a data receiving method, comprising: obtaining first data from a communication element, wherein the communication element is used to receive the first data through a first communication protocol different from the second communication protocol, and the first data A second communication protocol does not control the reception of the first data; converting the first data into second data corresponding to the second communication protocol; and sending the second data to an application for the second communication protocol.

本发明再提供一种数据传输装置,包括:接收模块,用于接收第一通信协议的应用的第一数据;转换模块,用于将该第一数据转换为对应于第二通信协议的第二数据,其中该第二通信协议不同于该第一通信协议;以及传输模块,用于将该第二数据传递至通信元件,其中该通信元件是用于透过该第二通信协议来传输该第二数据,以及该第一通信协议并不会控制该第二数据的传输。The present invention further provides a data transmission device, including: a receiving module, used to receive the first data of the application of the first communication protocol; a conversion module, used to convert the first data into the second data corresponding to the second communication protocol data, wherein the second communication protocol is different from the first communication protocol; and a transmission module, configured to transfer the second data to a communication element, wherein the communication element is used to transmit the first communication protocol through the second communication protocol The second data, and the first communication protocol does not control the transmission of the second data.

本发明还提供一种数据接收装置,包括:接收模块,用于自通信元件取得第一数据,其中该通信元件是用于透过不同于第二通信协议的第一通信协议来取得该第一数据,以及该第二通信协议并不会控制该第一数据的接收;转换模块,用于将该第一数据转换为对应于该第二通信协议的第二数据;以及发送模块,用于发送该第二数据至用于该第二通信协议的应用。The present invention also provides a data receiving device, including: a receiving module for obtaining first data from a communication element, wherein the communication element is used to obtain the first data through a first communication protocol different from the second communication protocol data, and the second communication protocol does not control the reception of the first data; the conversion module is used to convert the first data into second data corresponding to the second communication protocol; and the sending module is used to send The second data is sent to an application for the second communication protocol.

本发明提供的数据传输方法、装置以及数据接收方法、装置可将用于一种通信协议应用的应用层面拓展至其他通信协议或增加通信协议应用的服务范围或吞吐量。The data transmission method, device, and data receiving method and device provided by the present invention can extend the application level for one communication protocol application to other communication protocols or increase the service range or throughput of the communication protocol application.

附图说明Description of drawings

图1为本发明通信系统的一个实施例的功能方块图;Fig. 1 is a functional block diagram of an embodiment of the communication system of the present invention;

图2为本发明数据传输方法的一个实施例的流程图;Fig. 2 is a flowchart of an embodiment of the data transmission method of the present invention;

图3为本发明数据接收方法的一个实施例的流程图;Fig. 3 is a flowchart of an embodiment of the data receiving method of the present invention;

图4为改良的蓝牙堆栈架构的实例示意图;FIG. 4 is a schematic diagram of an example of an improved bluetooth stack architecture;

图5为本发明基于无线相容认证/无线兼容认证直连协议的一个蓝牙应用的实例的示意图。FIG. 5 is a schematic diagram of an example of a Bluetooth application based on the wireless compatibility authentication/wireless authentication direct connection protocol of the present invention.

具体实施方式Detailed ways

在说明书及后续的权利要求当中使用了某些词汇来指称特定的元件。所属领域技术人员应可理解,电子装置制造商可能会用不同的名词来称呼同一个元件。本说明书及后续的权利要求并不以名称的差异来作为区分元件的方式,而是以元件在功能上的差异来作为区分的准则。在通篇说明书及后续的请求项当中所提及的「包含」为开放式的用语,故应解释成「包含但不限定于」。以外,「耦接」一词在此包含任何直接及间接的电气连接手段。因此,若文中描述一第一装置耦接到一第二装置,则代表该第一装置可直接电气连接于该第二装置,或透过其他装置或连接手段间接地电气连接至该第二装置。Certain terms are used in the specification and following claims to refer to particular elements. Those skilled in the art should understand that electronic device manufacturers may use different terms to refer to the same component. This description and the subsequent claims do not use the difference in name as the way to distinguish components, but use the difference in function of the components as the criterion for distinguishing. The "comprising" mentioned in the entire specification and subsequent claims is an open term, so it should be interpreted as "including but not limited to". Otherwise, the term "coupled" includes any direct and indirect means of electrical connection. Therefore, if it is described that a first device is coupled to a second device, it means that the first device may be directly electrically connected to the second device, or indirectly electrically connected to the second device through other devices or connection means. .

图1为本发明通信系统的一个实施例的功能方块图。通信系统100包含第一装置102以及第二装置104,上述两装置的其中一个为传输端,而其中的另一个则为接收端,其中该接收端用于接收自该传输端产生的控制信息及数据。对于第一装置102来说,其包含处理器(processor)112、机器可读介质(machinereadable medium)以及多个通信元件(communication device)116_1及116_2,其中机器可读介质耦接于处理器112,且机器可读介质可例如存储系统(storagesystem)114,存储系统114可利用一个或多个内存元件(memory device)来实现,且通信元件116_1及116_2均耦接于处理器112。对于第二装置104来说,其包含处理器122、机器可读介质以及多个通信元件126_1及126_2,其中,机器可读介质耦接于处理器122,且机器可读介质可例如存储系统124,存储系统124可利用一个或多个内存元件来实现,且通信元件126_1及126_2均耦接于处理器122。为使说明能简单明了,第一装置102及第二装置104之中的每一个装置均仅显示了两个设置于其中的通信元件,然而,以上并非用于做为本发明的限制。FIG. 1 is a functional block diagram of an embodiment of the communication system of the present invention. Thecommunication system 100 includes afirst device 102 and asecond device 104, one of the above two devices is a transmitting end, and the other is a receiving end, wherein the receiving end is used for receiving control information generated from the transmitting end and data. For thefirst device 102, it includes a processor (processor) 112, a machine readable medium (machine readable medium) and a plurality of communication elements (communication device) 116_1 and 116_2, wherein the machine readable medium is coupled to theprocessor 112, And the machine-readable medium can be, for example, a storage system (storage system) 114 , thestorage system 114 can be implemented by one or more memory devices (memory device), and the communication devices 116_1 and 116_2 are both coupled to theprocessor 112 . For thesecond device 104, it includes aprocessor 122, a machine-readable medium, and a plurality of communication elements 126_1 and 126_2, wherein the machine-readable medium is coupled to theprocessor 122, and the machine-readable medium can be, for example, astorage system 124 Thestorage system 124 can be implemented by using one or more memory elements, and the communication elements 126_1 and 126_2 are both coupled to theprocessor 122 . To simplify the description, each of thefirst device 102 and thesecond device 104 only shows two communication elements disposed therein, however, the above is not intended to limit the present invention.

由图1可知,存储系统114及124之中的每个存储系统均具有应用软件(application software)APP1/APP2及程序代码(program code)PROG1/PROG2存储于其中。当处理器112/122执行应用软件APP1/APP2时,会使能一个用于通信协议(communication protocol)P1的应用。请注意,通信元件116_1及126_1是透过通信协议P1来传输/接收数据,而通信元件116_2及126_2则是透过不同于通信协议P1的通信协议P2来传输/接收数据。It can be seen from FIG. 1 that each of thestorage systems 114 and 124 has application software (application software) APP1/APP2 and program code (program code) PROG1/PROG2 stored therein. When theprocessor 112/122 executes the application software APP1/APP2, an application for the communication protocol (communication protocol) P1 will be enabled. Please note that the communication elements 116_1 and 126_1 transmit/receive data through the communication protocol P1, while the communication elements 116_2 and 126_2 transmit/receive data through the communication protocol P2 different from the communication protocol P1.

当处理器112/122执行程序代码PROG1/PROG2时,因为处理器112/122也执行应用软件APP1/APP2,故程序代码PROG1/PROG2可用于控制所使能的应用的数据传输及接收,更具体地说,当选择了第一数据处理模式(datatransaction mode)(亦即,常用模式)Mode_1时,用于通信协议P1的该应用的数据传输及接收会通过通信元件116_1/126_1来执行,然而,当选择了第二数据处理模式(亦即,本发明所提出的新模式)Mode_2时,用于通信协议P1的该应用的数据传输及接收会通过通信元件116_2/126_2来执行。When theprocessor 112/122 executes the program code PROG1/PROG2, because theprocessor 112/122 also executes the application software APP1/APP2, the program code PROG1/PROG2 can be used to control the data transmission and reception of the enabled application, more specifically In other words, when the first data transaction mode (datatransaction mode) (that is, the common mode) Mode_1 is selected, the data transmission and reception for the application of the communication protocol P1 will be performed by the communication element 116_1/126_1, however, When the second data processing mode (ie, the new mode proposed by the present invention) Mode_2 is selected, the data transmission and reception for the application of the communication protocol P1 will be performed through the communication element 116_2/126_2.

假定第一装置102作为传输端以及第二装置104作为接收端,处理器112所执行的程序代码PROG1因而可采用本发明所提出的数据传输方法,以控制自同一处理器112所执行的应用软件APP1产生的数据的传输,以及处理器122所执行的程序代码PROG2因而可采用本发明所提出的数据接收方法,以控制自同一处理器122所执行的应用软件APP2产生的数据的接收。进一步的说明详述如下。Assuming that thefirst device 102 is used as the transmitting end and thesecond device 104 is used as the receiving end, the program code PROG1 executed by theprocessor 112 can thus adopt the data transmission method proposed by the present invention to control the application software executed from thesame processor 112 The transmission of data generated by APP1 and the program code PROG2 executed by theprocessor 122 can thus adopt the data receiving method proposed by the present invention to control the receiving of data generated by the application software APP2 executed by thesame processor 122 . Further instructions are detailed below.

请结合图1来参考图2。图2为本发明数据传输方法的一个实施例的流程图。可透过处理器112执行程序代码PROG1来实现该数据传输方法,并可简单归纳如下。Please refer to FIG. 2 in conjunction with FIG. 1 . Fig. 2 is a flowchart of an embodiment of the data transmission method of the present invention. The data transmission method can be implemented by theprocessor 112 executing the program code PROG1, and can be briefly summarized as follows.

步骤200:开始。Step 200: start.

步骤202:检查是否有选择第一数据处理模式(亦即,常用模式)Mode_1?若是,执行步骤210;反之,执行步骤204。Step 202: Check whether the first data processing mode (ie, common mode) Mode_1 is selected? If yes, go tostep 210; otherwise, go tostep 204.

步骤204:接收用于通信协议P1的该应用的数据D1,其中因为处理器112执行应用软件APP1的缘故,该应用会被使能。Step 204: Receive the application data D1 for the communication protocol P1, wherein the application is enabled because theprocessor 112 executes the application software APP1.

步骤206:将对应于通信协议P1的数据D1转换为对应于通信协议P2的数据D2。Step 206: Convert the data D1 corresponding to the communication protocol P1 into data D2 corresponding to the communication protocol P2.

步骤208:将数据D2传递至透过通信协议P2来传输数据D2的通信元件116_2。执行步骤214。Step 208: Transmit the data D2 to the communication element 116_2 that transmits the data D2 through the communication protocol P2. Executestep 214.

步骤210:接收用于通信协议P1的该应用的数据D1,其中因为处理器112执行应用软件APP1的缘故,该应用会被使能。Step 210: Receive the application data D1 for the communication protocol P1, wherein the application is enabled because theprocessor 112 executes the application software APP1.

步骤212:将数据D1传递至透过通信协议P1来传输数据D1的通信元件116_1。执行步骤214。Step 212: Deliver the data D1 to the communication element 116_1 that transmits the data D1 through the communication protocol P1. Executestep 214.

步骤214:结束。Step 214: end.

在步骤202中,处理器112所执行的程序代码PROG1会检查目前所选择的为哪个数据处理模式,举例来说,用户可手动设定数据处理模式。当选择第一交易模式Mode_1时(亦即,并没有选择第二交易模式Mode_2),其意味着自用于通信协议P1的该应用产生的数据D1,应会透过通信协议P1来从该传输端(亦即,第一装置102)被传输至该接收端(亦即,第二装置104),因此,数据D1会被传递至通信元件116_1以供后续传输之用(如步骤210及212所示)。在接收到数据D1之后,通信元件116_1会将所接收到的数据D1传输至设置于该接收端的通信元件126_1。Instep 202, the program code PROG1 executed by theprocessor 112 checks which data processing mode is currently selected. For example, the user can manually set the data processing mode. When the first transaction mode Mode_1 is selected (that is, the second transaction mode Mode_2 is not selected), it means that the data D1 generated from the application for the communication protocol P1 should be transmitted from the transmission terminal through the communication protocol P1 (that is, the first device 102) is transmitted to the receiving end (that is, the second device 104), therefore, the data D1 will be delivered to the communication element 116_1 for subsequent transmission (as shown insteps 210 and 212 ). After receiving the data D1, the communication element 116_1 transmits the received data D1 to the communication element 126_1 disposed at the receiving end.

当选择第二交易模式Mode_2时(亦即,并没有选择第一交易模式Mode_1),其意味着自用于通信协议P1的该应用产生的数据D1,应会透过通信协议P2来从该传输端(亦即,第一装置102)被传输至该接收端(亦即,第二装置104)。由于通信协议P1及通信协议P2两者之间会存在差异,对应于通信协议P1的数据D1会被转换为对应于通信协议P2的数据D2(如步骤204及206所示),接下来,数据D2会被传递至通信元件116_2以供后续传输之用(如步骤208所示)。请注意,在通信元件116_2及通信元件126_2在建立彼此之间连结(link)的交握程序(hand-shaking procedure)的期间,通信元件116_2及通信元件126_2会分别记录(register)(从数据D1获得)对数据D2进行交易的特定服务。在接收到数据D2之后,通信元件116_2会将所接收到的数据D2传输至设置于该接收端的通信元件126_2。When the second transaction mode Mode_2 is selected (that is, the first transaction mode Mode_1 is not selected), it means that the data D1 generated from the application for the communication protocol P1 should be transmitted from the transmission terminal through the communication protocol P2 (ie, the first device 102 ) is transmitted to the receiving end (ie, the second device 104 ). Since there will be differences between the communication protocol P1 and the communication protocol P2, the data D1 corresponding to the communication protocol P1 will be converted into the data D2 corresponding to the communication protocol P2 (as shown insteps 204 and 206), and then the data D2 will be delivered to the communication element 116_2 for subsequent transmission (as shown in step 208 ). Please note that during the hand-shaking procedure (hand-shaking procedure) between the communication element 116_2 and the communication element 126_2, the communication element 116_2 and the communication element 126_2 will respectively record (register) (from the data D1 Obtain) specific services for transactions on data D2. After receiving the data D2, the communication element 116_2 transmits the received data D2 to the communication element 126_2 disposed at the receiving end.

在此实施例中,除了将数据D2传输至通信元件126_2之外,通信元件116_2用于控制在该传输端与该接收端之间数据D2的传输,例如,建立第一装置102与第二装置104之间需要的连结,换言之,通信协议P1并不会控制数据D2的传输,因此,在传输数据D2的期间,可停用或关闭通信元件116_1,也就是说,当选择第二数据处理模式Mode_2时,可允许停用或关闭通信元件116_1。In this embodiment, in addition to transmitting the data D2 to the communication element 126_2, the communication element 116_2 is used to control the transmission of the data D2 between the transmitting end and the receiving end, for example, establishing thefirst device 102 and thesecond device 104, in other words, the communication protocol P1 does not control the transmission of the data D2, therefore, during the transmission of the data D2, the communication element 116_1 can be disabled or closed, that is, when the second data processing mode is selected In Mode_2, the communication element 116_1 may be disabled or turned off.

在另一实施例中,本发明提供一种数据传输装置,包括:接收模块,用于第一通信协议的应用的第一数据;转换模块,用于将该第一数据转换为对应于第二通信协议的第二数据,其中该第二通信协议不同于该第一通信协议;以及传输模块,用于将该第二数据传递至通信元件,其中该通信元件是用于透过该第二通信协议来传输该第二数据,以及该第一通信协议并不会控制该第二数据的传输。In another embodiment, the present invention provides a data transmission device, including: a receiving module, used for the first data of the application of the first communication protocol; second data of a communication protocol, wherein the second communication protocol is different from the first communication protocol; and a transmission module, configured to transfer the second data to a communication element, wherein the communication element is used to communicate through the second protocol to transmit the second data, and the first communication protocol does not control the transmission of the second data.

请结合图1来参考图3,图3为本发明数据接收方法的一个实施例的流程图。可透过处理器122执行程序代码PROG2来实现该数据接收方法,并可简单归纳如下。Please refer to FIG. 3 in conjunction with FIG. 1 . FIG. 3 is a flow chart of an embodiment of the data receiving method of the present invention. The data receiving method can be implemented by theprocessor 122 executing the program code PROG2, and can be briefly summarized as follows.

步骤300:开始。Step 300: start.

步骤302:检查是否有选择第一数据处理模式(亦即,常用模式)Mode_1?若是,执行步骤310;反之,执行步骤304。Step 302: Check whether the first data processing mode (ie, common mode) Mode_1 is selected? If yes, go to step 310; otherwise, go to step 304.

步骤304:自通信元件126_2取得数据D2,其中通信元件126_2透过通信协议P2来接收数据D2。Step 304: Get the data D2 from the communication element 126_2, wherein the communication element 126_2 receives the data D2 through the communication protocol P2.

步骤306:将对应于通信协议P2的数据D2转换为对应于通信协议P1的数据D1。Step 306: Convert the data D2 corresponding to the communication protocol P2 into data D1 corresponding to the communication protocol P1.

步骤308:发送数据D1至用于通信协议P1的该应用,其中因为处理器122执行应用软件APP2的缘故,该应用会被使能。执行步骤314。Step 308: Send the data D1 to the application for the communication protocol P1, wherein the application is enabled because theprocessor 122 executes the application software APP2. Executestep 314 .

步骤310:自通信元件126_1取得数据D1,其中通信元件126_1透过通信协议P1来接收数据D1。Step 310: Get the data D1 from the communication element 126_1, wherein the communication element 126_1 receives the data D1 through the communication protocol P1.

步骤312:发送数据D1至用于通信协议P1的该应用,其中因为处理器122执行应用软件APP2的缘故,该应用会被使能。执行步骤314。Step 312: Send the data D1 to the application for the communication protocol P1, wherein the application is enabled because theprocessor 122 executes the application software APP2. Executestep 314 .

步骤314:结束。Step 314: end.

在步骤302中,处理器122所执行的程序代码PROG2会检查目前所选择的为哪个数据处理模式,举例来说,用户可手动设定数据处理模式。当选择第一交易模式Mode_1时(亦即,并没有选择第二交易模式Mode_2),其意味着要被提供至该接收端的用于通信协议P1的应用的数据,应会透过通信协议P1而从该传输端(亦即,第一装置102)被接收,因此,将从通信元件126_1获得的数据D1发送至用于通信协议P1的该应用(步骤310及312)。Instep 302, the program code PROG2 executed by theprocessor 122 checks which data processing mode is currently selected. For example, the user can manually set the data processing mode. When the first transaction mode Mode_1 is selected (that is, the second transaction mode Mode_2 is not selected), it means that the data for the application of the communication protocol P1 to be provided to the receiving end should be transmitted through the communication protocol P1 Received from the transmitting end (ie, the first device 102 ), therefore, the data D1 obtained from the communication element 126_1 is sent to the application for the communication protocol P1 (steps 310 and 312 ).

当选择第二交易模式Mode_2时(亦即,并没有选择第一交易模式Mode_1),其意味着要被提供至该接收端的用于通信协议P1的应用的数据,应会透过通信协议P2而从该传输端(亦即,第一装置102)被接收,请注意,在通信元件116_2及通信元件126_2在建立彼此之间连结的交握程序的期间,通信元件116_2及通信元件126_2可分别记录(从数据D1获得)对数据D2进行交易的特定服务,因此,在接收到数据D2之后,该接收端(亦即,第二装置104)可轻易地得知透过通信协议P2所传输的数据D2是提供给用于通信协议P1的该应用。由于通信协议P1及通信协议P2两者之间会存在差异,从通信元件126_2获得的数据D2会被转换为对应于通信协议P1的数据D1(如步骤304及306所示),接下来,将数据D1发送至用于通信协议P1的该应用(步骤308)。在此实施例中,除了接收数据D2之外,通信元件126_2用于控制在该传输端与该接收端之间数据D2的接收,例如,建立第一装置102与第二装置104之间需要的连结,换言之,通信协议P1并不会控制数据D2的接收,因此,在接收数据D2的期间,可停用或关闭通信元件126_1,也就是说,当选择第二数据处理模式Mode_2时,可允许停用或关闭通信元件126_1。When the second transaction mode Mode_2 is selected (that is, the first transaction mode Mode_1 is not selected), it means that the data for the application of the communication protocol P1 to be provided to the receiving end should be transmitted through the communication protocol P2 Received from the transmitting end (i.e., the first device 102), please note that during the handshake procedure between the communication element 116_2 and the communication element 126_2 to establish a connection between each other, the communication element 116_2 and the communication element 126_2 can respectively record (Obtained from data D1) Specific services for transactions on data D2, therefore, after receiving data D2, the receiving end (ie, the second device 104) can easily know the data transmitted through the communication protocol P2 D2 is provided to the application for communication protocol P1. Since there will be differences between the communication protocol P1 and the communication protocol P2, the data D2 obtained from the communication element 126_2 will be converted into data D1 corresponding to the communication protocol P1 (as shown insteps 304 and 306), and then, the Data D1 is sent to the application for communication protocol P1 (step 308). In this embodiment, in addition to receiving the data D2, the communication element 126_2 is used to control the reception of the data D2 between the transmitting end and the receiving end, for example, establishing the required communication between thefirst device 102 and thesecond device 104. In other words, the communication protocol P1 does not control the reception of the data D2, therefore, during the period of receiving the data D2, the communication element 126_1 can be deactivated or closed, that is, when the second data processing mode Mode_2 is selected, it can allow The communication element 126_1 is deactivated or turned off.

在另一实施例中,本发明提供一种数据接收装置,包括:接收模块,用于自通信元件取得第一数据,其中该通信元件是用于透过不同于第二通信协议的第一通信协议来取得该第一数据,以及该第二通信协议并不会控制该第一数据的接收;转换模块,用于将该第一数据转换为对应于该第二通信协议的第二数据;以及发送模块,用于发送该第二数据至用于该第二通信协议的应用。In another embodiment, the present invention provides a data receiving device, including: a receiving module, configured to obtain first data from a communication element, wherein the communication element is used to communicate via a first communication protocol different from a second communication protocol protocol to obtain the first data, and the second communication protocol does not control the reception of the first data; a converting module, configured to convert the first data into second data corresponding to the second communication protocol; and A sending module, configured to send the second data to an application for the second communication protocol.

上述的通信协议P1及P2之中的每个通信协议均可为任何的有线或无线通信协议。在一个设计实例中,通信协议P1可为无线通信协议(例如,蓝牙协议),以及另一个通信协议P2可为无线兼容认证协议或无线相容认证直连协议。在另一个设计实例中,通信协议P1可为蓝牙协议,以及另一个通信协议P2可为通用串行总线(universal serial bus,USB)协议或串行端口(serial-port)协议。如上所述,由于蓝牙技术已经过了长时间的发展,已提出了用于蓝牙协议的多种不同应用,因此,通过传输端采用本发明所提出的数据传输方法以及接收端采用本发明所提出的数据接收方法,可轻易地将蓝牙应用的应用层面拓展至其他具有几乎无支持的应用的通信协议。再者,在通信协议P2为无线通信协议(例如,无线兼容认证协议/无线兼容认证直连协议),以及其所支持的最大无线传输距离(maximum wireless transmission distance)长于蓝牙协议所支持的最大无线传输距离的情形下,蓝牙应用的服务范围会因而增加。再者,在通信协议P2为无线通信协议(例如,无线兼容认证协议/无线兼容认证直连协议),以及其所支持的最大数据传输速率(maximum data transfer rate)高于蓝牙协议所支持的最大数据传输速率的情形下,蓝牙应用的吞吐量(throughput)会因而增加。Each of the aforementioned communication protocols P1 and P2 may be any wired or wireless communication protocol. In one design example, the communication protocol P1 may be a wireless communication protocol (eg, Bluetooth protocol), and the other communication protocol P2 may be a wireless compatible authentication protocol or a wireless compatible authentication direct connection protocol. In another design example, the communication protocol P1 may be a Bluetooth protocol, and another communication protocol P2 may be a universal serial bus (universal serial bus, USB) protocol or a serial-port protocol. As mentioned above, since the bluetooth technology has been developed for a long time, many different applications for the bluetooth protocol have been proposed. The data receiving method of the Bluetooth application can easily extend the application level of the Bluetooth application to other communication protocols with almost no supported applications. Furthermore, the communication protocol P2 is a wireless communication protocol (for example, a wireless compatible authentication protocol/a wireless compatible authentication direct connection protocol), and the maximum wireless transmission distance (maximum wireless transmission distance) supported by it is longer than the maximum wireless transmission distance supported by the Bluetooth protocol. In the case of transmission distance, the service range of Bluetooth applications will thus increase. Furthermore, when the communication protocol P2 is a wireless communication protocol (for example, wireless compatible authentication protocol/wireless compatible authentication direct connection protocol), and the maximum data transfer rate (maximum data transfer rate) supported by it is higher than the maximum supported by the Bluetooth protocol. In the case of lower data transfer rates, the throughput of Bluetooth applications will thus increase.

为了能够对本发明的技术特征有更清楚的了解,进一步说明如下。图4为改良的蓝牙堆栈架构(modified Bluetooth stack architecture)的实例示意图。该改良后蓝牙堆栈架构具有无线兼容认证/无线兼容认证直连作为传输层(transportlayer)。由图4可知,用于控制无线兼容认证/无线兼容认证直连通信的虚拟控制器(virtual controller)401被增加至现有的蓝牙堆栈架构402之中,如此一来,当选择上述的第二数据处理模式Mode_2时,可允许透过建立在传输端与接收端之间的无线兼容认证/无线兼容认证直连连结来传输/接收蓝牙数据,因此,可将用于蓝牙协议的蓝牙应用的应用层面拓展至无线兼容认证/无线兼容认证直连协议。In order to have a clearer understanding of the technical features of the present invention, further descriptions are as follows. FIG. 4 is a schematic diagram of an example of a modified Bluetooth stack architecture. The improved Bluetooth stack architecture has Wi-Fi/Wi-Fi Direct as a transport layer. As can be seen from FIG. 4, a virtual controller (virtual controller) 401 for controlling wireless compatibility certification/wireless compatibility certification direct communication is added to the existingBluetooth stack architecture 402. In this way, when the above-mentioned second When the data processing mode is Mode_2, it is allowed to transmit/receive Bluetooth data through the wireless compatible authentication/wireless compatible authentication direct link established between the transmitting end and the receiving end. Therefore, the application of the Bluetooth application for the Bluetooth protocol can be used The level is extended to wireless compatibility authentication/wireless compatibility authentication direct connection protocol.

请参考图5,图5为本发明基于无线相容认证/无线兼容认证直连协议的一个蓝牙应用的实例的示意图。由图5可知,当采用上述数据传输方法及数据接收方法时,蓝牙装置502可在无线相容认证/无线兼容认证直连连结上透过蓝牙对象交换规范/协议(object push profile/protocol,OPP)来将任一个对象(例如,壁纸(wallpaper)、铃声(ringtone)或视频剪辑(video clip))与另一个蓝牙装置504进行交换,举例来说,可利用处理器112执行程序代码PROG1来实作出传输分配器(transmission dispatcher)511、蓝牙传输层(Bluetooth transport layer)512、无线相容认证/无线相容认证直连传输层(Wi-Fi/Wi-Fi Direct transport layer)513以及蓝牙堆栈(Bluetooth stack)514,其中,蓝牙传输层512可例如用于驱动通信元件116_1的蓝牙驱动器(driver),无线相容认证/无线兼容认证直连传输层513可例如用于驱动通信元件116_2的无线兼容认证/无线兼容认证直连驱动器。此外,可利用处理器122执行程序代码PROG2来实作出传输分配器521、蓝牙传输层522、无线相容认证/无线兼容认证直连传输层523,以及蓝牙堆栈524,其中,蓝牙传输层522可例如用于驱动通信元件126_1的蓝牙驱动器,无线兼容认证/无线兼容认证直连传输层523可例如用于驱动通信元件126_2的无线兼容认证/无线兼容认证直连驱动器。对于蓝牙装置502来说,其可采用图2所示的数据传输方法来在该无线兼容认证/无线兼容认证直连连结上传输多个蓝牙数据封包(Bluetooth data packet)。对于蓝牙装置504来说,其可采用图3所示的数据接收方法来在该无线兼容认证/无线兼容认证直连连结上接收多个蓝牙数据封包,更具体地说,在传输端的传输分配器511用于接收自上层(upper layer)(亦即,蓝牙堆栈514)产生的多个蓝牙数据封包、将所接收的多个蓝牙数据封包转换为多个无线相容认证/无线兼容认证直连数据封包,以及提供所产生的多个无线兼容认证/无线兼容认证直连数据封包给下层(lower layer)(亦即,无线相容认证/无线兼容认证直连传输层513),其中,蓝牙堆栈514根据要被交换至蓝牙装置504的对象的数据透过传输端的蓝牙交换对象规范来产生多个蓝牙数据封包。接下来,无线兼容认证/无线兼容认证直连传输层513会控制传输硬件(transmission hardware)在该无线兼容认证/无线兼容认证直连连结(建立在蓝牙装置502及504之间)上传输所接收的多个无线兼容认证/无线相容认证直连数据封包。当位于接收端的下层(无线相容认证/无线兼容认证直连传输层523)控制接收硬件(reception hardware)接收在该无线兼容认证/无线相容认证直连连结上传输的多个无线相容认证/无线相容认证直连数据封包时,将所接收的多个无线相容认证/无线相容认证直连数据封包传输至传输分配器521以供进一步的处理。传输分配器521用于将所接收的多个无线相容认证/无线相容认证直连数据封包转换为多个蓝牙数据封包,以及提供所产生的多个蓝牙数据封包给上层(亦即,蓝牙堆栈524),其中,蓝牙堆栈524自该多个蓝牙数据封包提取被交换至蓝牙装置504的对象的数据,并在接收端发送所提取的数据至蓝牙OPP。如上所述,当第二无线通信协议支持较长的最大无线传输距离及/或较高的最大数据传输速率时,用于第一通信协议的应用的服务范围及/或吞吐量可透过该第二通信协议的协助而增加。对于图5所示的蓝牙对象交换规范的应用来说,其可受益于所采用的无线兼容认证/无线兼容认证直连协议提供的高速数据传输速率以及长程无线传输距离。Please refer to FIG. 5 , which is a schematic diagram of an example of a Bluetooth application based on the wireless compatibility authentication/wireless authentication direct connection protocol of the present invention. It can be seen from FIG. 5 that when the above data transmission method and data receiving method are adopted, theBluetooth device 502 can pass the Bluetooth object exchange specification/protocol (object push profile/protocol, OPP) on the wireless compatibility authentication/wireless compatibility authentication direct link. ) to exchange any object (for example, wallpaper (wallpaper), ringtone (ringtone) or video clip (video clip)) with anotherBluetooth device 504, for example, theprocessor 112 can be used to execute the program code PROG1 to realize Make a transmission distributor (transmission dispatcher) 511, a Bluetooth transport layer (Bluetooth transport layer) 512, a wireless compatibility authentication/wireless compatibility authentication direct connection transport layer (Wi-Fi/Wi-Fi Direct transport layer) 513 and a Bluetooth stack ( Bluetooth stack) 514, wherein, theBluetooth transport layer 512 can for example be used to drive the Bluetooth driver (driver) of the communication element 116_1, and the wireless compatibility authentication/wireless compatibility authentication directconnection transport layer 513 can for example be used to drive the wireless compatibility of the communication element 116_2 Certified/Wireless Compatible certified direct-attach drive. In addition, theprocessor 122 can be used to execute the program code PROG2 to implement thetransmission distributor 521, theBluetooth transmission layer 522, the wireless compatibility certification/wireless compatibility certification directconnection transmission layer 523, and theBluetooth stack 524, wherein theBluetooth transmission layer 522 can be For example, it is used to drive the Bluetooth driver of the communication element 126_1 , and the CWC/CWC directconnection transport layer 523 can be used to drive the CWC/CWC direct connection driver of the communication component 126_2 , for example. For theBluetooth device 502, it can use the data transmission method shown in FIG. 2 to transmit a plurality of Bluetooth data packets (Bluetooth data packets) on the wireless compatibility authentication/wireless compatibility authentication direct connection. For thebluetooth device 504, it can adopt the data receiving method shown in FIG. 511 is used to receive multiple Bluetooth data packets generated from the upper layer (that is, the Bluetooth stack 514), and convert the multiple received Bluetooth data packets into multiple wireless compatibility authentication/wireless compatibility authentication direct connection data package, and provide a plurality of wireless compatibility authentication/wireless compatibility authentication direct connection data packets to the lower layer (lower layer) (that is, wireless compatibility authentication/wireless compatibility authentication direct connection transport layer 513), wherein the bluetooth stack 514 A plurality of Bluetooth data packets are generated according to the data of the object to be exchanged to theBluetooth device 504 through the Bluetooth exchange object specification of the transmitting end. Next, the WCA/WCAD transport layer 513 will control the transmission hardware (transmission hardware) to transmit the received data on the WCA/WCAD link (established between theBluetooth devices 502 and 504). multiple WCA/WCA direct data packets. When the lower layer (WCA/WCAD transport layer 523) at the receiving end controls the receiving hardware (reception hardware) to receive multiple WCAs transmitted on the WCA/WCAD link When the wireless compatible authentication direct connection data packets are received, the received multiple wireless compatible authentication/wireless compatible authentication direct connection data packets are transmitted to thetransmission distributor 521 for further processing. Thetransmission distributor 521 is used to convert the received multiple wireless compatibility authentication/wireless compatibility authentication direct connection data packets into multiple bluetooth data packets, and provide the generated multiple bluetooth data packets to the upper layer (that is, Bluetooth stack 524), wherein theBluetooth stack 524 extracts the data of the object exchanged to theBluetooth device 504 from the plurality of Bluetooth data packets, and sends the extracted data to the Bluetooth OPP at the receiving end. As mentioned above, when the second wireless communication protocol supports a longer maximum wireless transmission distance and/or a higher maximum data transmission rate, the service range and/or throughput of the application for the first communication protocol can be achieved through this The assistance of the second communication protocol is added. For the application of the Bluetooth object exchange specification shown in FIG. 5 , it can benefit from the high-speed data transmission rate and long-distance wireless transmission distance provided by the adopted Wi-Fi/Wi-Fi Direct Protocol.

以上所述仅为本发明之较佳实施例,凡依本发明权利要求所做之均等变化与修饰,皆应属本发明之涵盖范围。The above descriptions are only preferred embodiments of the present invention, and all equivalent changes and modifications made according to the claims of the present invention shall fall within the scope of the present invention.

Claims (22)

CN201210109356XA2011-06-102012-04-13Data transmission method and device and data receiving method and devicePendingCN102821086A (en)

Priority Applications (3)

Application NumberPriority DateFiling DateTitle
DE102012011232ADE102012011232A1 (en)2011-06-102012-06-06 A method of transmitting and receiving data of an application for a communication protocol by another communication protocol and associated non-transitory machine-readable medium
US13/491,592US20120314631A1 (en)2011-06-102012-06-07Method for transmitting/receiving data of application for one communication protocol by another communication protocol, and related non-transitory machine readable medium thereof
TW101120924ATWI484806B (en)2011-06-102012-06-11Data transmission method, data reception method, and non-transitory machine readable medium

Applications Claiming Priority (2)

Application NumberPriority DateFiling DateTitle
US201161495387P2011-06-102011-06-10
US61/495,3872011-06-10

Publications (1)

Publication NumberPublication Date
CN102821086Atrue CN102821086A (en)2012-12-12

Family

ID=47304945

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201210109356XAPendingCN102821086A (en)2011-06-102012-04-13Data transmission method and device and data receiving method and device

Country Status (2)

CountryLink
CN (1)CN102821086A (en)
TW (1)TWI484806B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104168260A (en)*2013-05-152014-11-26约翰内斯·海德汉博士有限公司Method for transferring data between a position measuring device and an associated processing unit
CN105227533A (en)*2014-07-012016-01-06青岛海尔智能家电科技有限公司The method of information transmission and device between a kind of custom system
CN105245527A (en)*2015-10-202016-01-13努比亚技术有限公司Information transfer device and method
CN109347802A (en)*2016-03-152019-02-15深圳迈瑞生物医疗电子股份有限公司Communications protocol switching method, data transmission method, wireless sensor and system
CN110035421A (en)*2013-04-172019-07-19英特尔公司The WI-FI of 2 service of layer is direct-connected to be served by service platform
CN111010208A (en)*2018-10-042020-04-14赛普拉斯半导体公司Device, system and method for transmitting protocol configuration information between multi-protocol devices

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1452343A (en)*2002-04-152003-10-29威盛电子股份有限公司Radio local network signal transmission method and related apparatus
CN1472935A (en)*2002-07-022004-02-04���ǵ�����ʽ���� Device and method for connecting bluetooth and wireless LAN
CN1578314A (en)*2003-07-112005-02-09三星电子株式会社Apparatus and method for enabling communications between terminals having different protocols
US20090034498A1 (en)*2007-07-302009-02-05Raja BanerjeaSimultaneously Maintaining Bluetooth and 802.11 Connections to Increase Data Throughput

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20060004935A1 (en)*2004-06-302006-01-05Pak-Lung SetoMulti-protocol bridge
US7873384B2 (en)*2005-09-012011-01-18Broadcom CorporationMultimode mobile communication device with configuration update capability
US8199709B2 (en)*2008-12-312012-06-12Mediatek, Inc.Method and apparatus for wireless communication

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1452343A (en)*2002-04-152003-10-29威盛电子股份有限公司Radio local network signal transmission method and related apparatus
CN1472935A (en)*2002-07-022004-02-04���ǵ�����ʽ���� Device and method for connecting bluetooth and wireless LAN
CN1578314A (en)*2003-07-112005-02-09三星电子株式会社Apparatus and method for enabling communications between terminals having different protocols
US20090034498A1 (en)*2007-07-302009-02-05Raja BanerjeaSimultaneously Maintaining Bluetooth and 802.11 Connections to Increase Data Throughput

Cited By (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110035421A (en)*2013-04-172019-07-19英特尔公司The WI-FI of 2 service of layer is direct-connected to be served by service platform
CN110035421B (en)*2013-04-172022-06-21英特尔公司 Layer 2 service WI-FI direct connection service application service platform
CN104168260A (en)*2013-05-152014-11-26约翰内斯·海德汉博士有限公司Method for transferring data between a position measuring device and an associated processing unit
CN105227533A (en)*2014-07-012016-01-06青岛海尔智能家电科技有限公司The method of information transmission and device between a kind of custom system
CN105227533B (en)*2014-07-012019-04-19青岛海尔智能家电科技有限公司 A method and device for information transmission between user systems
CN105245527A (en)*2015-10-202016-01-13努比亚技术有限公司Information transfer device and method
CN109347802A (en)*2016-03-152019-02-15深圳迈瑞生物医疗电子股份有限公司Communications protocol switching method, data transmission method, wireless sensor and system
CN111010208A (en)*2018-10-042020-04-14赛普拉斯半导体公司Device, system and method for transmitting protocol configuration information between multi-protocol devices
US10951262B2 (en)2018-10-042021-03-16Cypress Semiconductor CorporationDevices, systems and methods for transmitting protocol configuration information between multi-protocol devices
CN111010208B (en)*2018-10-042022-11-04赛普拉斯半导体公司Device, system and method for transmitting protocol configuration information between multi-protocol devices

Also Published As

Publication numberPublication date
TWI484806B (en)2015-05-11
TW201251407A (en)2012-12-16

Similar Documents

PublicationPublication DateTitle
US8738820B2 (en)Method and apparatus for wireless network communication wherein a universal serial bus request block (URB) is generated that will vary parameters that controls wireless transmission commands between devices
US8983384B2 (en)Apparatus and method for extending Bluetooth device range
US9220054B2 (en)Enhanced service discovery mechanism in wireless communication system
CN1989723B (en)System and method for increasing data throughout using a block acknowledgement
JP4917036B2 (en) System and method for communicating with a general purpose integrated circuit card in a mobile device using an internet protocol
US8537762B2 (en)System and method for optimally transferring data traffic on networks
CN114221869B (en)Application data transmission method and system and electronic equipment
CN109510695B (en) Wireless communication device and wireless communication method
CN102821086A (en)Data transmission method and device and data receiving method and device
US20080016248A1 (en)Method and apparatus for time synchronization of parameters
WO2017045276A1 (en)Terminal interconnecting method, device, and storage medium
TW200806053A (en)Techniques to enable direct link discovery in a wireless local area network
CN114208234A (en)Method for supporting multilink in bluetooth network environment and electronic device thereof
CN111447678A (en) Communication method and communication device
JP4869259B2 (en) System and method for data communication allowing a slave device to become a network peer
JP2016206940A (en)Information processor and control thereof, and program
CN114124310B (en) First user equipment, its wireless communication method, and storage medium
JP2019036910A (en)Radio communication device and radio communication method
WO2020054364A1 (en)Communication device, communication method, and program
WO2016187821A1 (en)Method, device, and system for adjusting packet length in near field communication (nfc)
US8144733B2 (en)Partitioned medium access control implementation
WO2012119543A1 (en)Communication method for wireless terminal and host device, and wireless terminal and host device
US20120314631A1 (en)Method for transmitting/receiving data of application for one communication protocol by another communication protocol, and related non-transitory machine readable medium thereof
CN100464547C (en)A method for implementing information transmission between equipments of different communication protocols
KR101434339B1 (en)A method and system for optimizing power consumption and reducing mips requirements for wireless communication

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C02Deemed withdrawal of patent application after publication (patent law 2001)
WD01Invention patent application deemed withdrawn after publication

Application publication date:20121212


[8]ページ先頭

©2009-2025 Movatter.jp