跳到主要內容

臺灣博碩士論文加值系統

(44.200.171.74) 您好!臺灣時間:2022/08/12 07:51
字體大小: 字級放大   字級縮小   預設字形  
回查詢結果 :::

詳目顯示

: 
twitterline
研究生:魏溥辰
研究生(外文):Pu-Chen Wey
論文名稱:在藍牙無線網路環境上支援爪哇遠端程序呼叫
論文名稱(外文):Supporting Java RMI over Bluetooth Environments
指導教授:李政崑
指導教授(外文):Jenq Kuen Lee
學位類別:碩士
校院名稱:國立清華大學
系所名稱:資訊工程學系
學門:工程學門
學類:電資工程學類
論文種類:學術論文
論文出版年:2002
畢業學年度:90
語文別:英文
論文頁數:50
中文關鍵詞:爪哇藍芽遠端程序呼叫通訊協定普及運算
外文關鍵詞:JavaBluetoothRemote Method Invocationprotocol driverpervasive computing
相關次數:
  • 被引用被引用:1
  • 點閱點閱:308
  • 評分評分:
  • 下載下載:52
  • 收藏至我的研究室書目清單書目收藏:0
在這篇論文中,我們使用爪哇程式語言建立一個藍芽無線網路的通訊協定驅動程式(Protocol Driver)。這個通訊協定驅動程式包含了兩個層次,主控制器介面層(Host Controller Interface,HCI)以及邏輯鏈路控制和適配協議層(Logical Link Control Adaptation Protocol,L2CAP)。這些通訊協定驅動程式可以提供於爪哇環境上撰寫藍芽應用程式的功能。我們也定義了一個傳輸層來支援通訊協定驅動程式以及藍芽硬體間的各種不同種類連線方式。基於此一通訊協定驅動程式,我們建立了一組相容於爪哇Socket的程式庫。此一程式庫可以幫助程式設計者使用爪哇Socket的方式撰寫藍芽應用程式,或是較輕易的轉移使用原來爪哇Socket程式庫的程式到藍芽無線網路上。之後,我們利用此一相容於爪哇Socket的程式庫將爪哇的遠端程序呼叫(Remote Method Invocation,RMI)透過藍芽無線網路運行。
在我們的實驗中,我們使用我們所發展的藍芽通訊協定驅動程式,透過四個不同的通訊協定層將不同大小的資料,經由藍芽無線網路傳輸到遠端的電腦,取得各個通訊協定層之頻寬以及額外傳輸成本。我們也使用爪哇遠端程序呼叫建立於藍芽無線網路上運作之工作分配系統。實驗運行於包含額外的爪哇遠端程序呼叫程式庫以及爪哇通訊應用程式介面(Java Communications API)的爪哇1.1.8版本平台上。從這些實驗中,顯示了我們所建立的健全軟體環境,並且說明應用程式的架構。

In this thesis, we build a Bluetooth protocol driver in the Java programming language. This Bluetooth protocol driver includes two layer, one is Host Controller Interface layer and another is Logical Link Control Adaptation Protocol layer. These layers provide the abilities as writing Bluetooth applications in the Java environment. We also define a transport layer for supporting the di®erent physical bus between Bluetooth protocol driver and Bluetooth device. Based on our Bluetooth protocol driver, we build a set of classes that are compatible to the Java socket classes. These Bluetooth socket classes can help programmers who want port the original Java socket programs to Bluetooth or write the communication programs in the Java socket style. Then we make it possible to run the Java RMI over Bluetooth on these Java Bluetooth Socket classes.
In our first experiment, we write test programs based on our Bluetooth protocol driver to transmit data of di®erent size through the four di®erent layers in the several times to measure the bandwidth of the Bluetooth protocol driver and the overhead of these layers. In additional, we build a task dispatching system that dispatches tasks to the remote computer and collects results by the Bluetooth RMI. The experiment is done with a pair of EBDK systems on the Java 1.1.8 compatible runtime environment with additional RMI and Java Communications API supports. The experiments show that we have a robust software environments and illustrate application scenarios.

Acknowledgements i
Abstract ii
Contents iv
List of Figures vii
List of Tables ix
1 Introduction 1
1.1 Background ......................................... 1
1.2 Bluetooth Overview ................................. 2
1.3 Thesis Overview .................................... 3
1.4 Related Work ....................................... 3
2 Experimental environment 5
3 Host Controller Interface Layer 7
3.1 The Bluetooth Device Address ....................... 7
3.2 The Packets of HCI layer ........................... 8
3.3 HCI Command Packet ................................. 9
3.4 HCI Event Packet ................................... 10
3.5 ACL Data Packet and SCO Data Packet ................ 11
3.6 Transmitting and Receiving Packet .................. 12
3.7 HCILayer Class ..................................... 12
3.8 HCICommandController Class ......................... 13
3.9 HCIChannel Class ................................... 14
4 Host Control Transport Layer 15
4.1 Creating a Custom HCI Transport Layer .............. 15
4.2 Create a TransportBaseLayer class .................. 16
4.3 Create a class that extends TransportLayerFactory .. 19
5 Logical Link Control and Adaptation Protocol Layer 21
5.1 The Channel of L2CAP ............................... 21
5.2 L2CAP Data Packet .................................. 22
5.3 L2CAP Signalling Commands .......................... 22
5.4 L2CAPService Class ................................. 23
5.5 L2CAPtoHCIChannel Class ............................ 24
5.6 L2CAPChannel Class ................................. 24
6 Socket over Bluetooth 26
6.1 The BluetoothServerSocket Class .................... 27
6.2 The BluetoothSocket Class .......................... 28
6.3 The BluetoothInputStream Class ..................... 29
6.4 The BluetoothOutputStream Class .................... 29
6.5 The BluetoothInetAddress Class ..................... 30
7 RMI over Bluetooth 31
7.1 Create the BluetoothRMISocketFactory ............... 31
7.2 Install the BluetoothRMISocketFactory .............. 32
8 Experimental Results 33
8.1 The Experimental Platform I ........................ 33
8.2 The Experimental Result I .......................... 33
8.3 The Experimental Platform II ....................... 34
8.4 The Experimental Result II ......................... 35
9 Conclusion and Future Work 37
9.1 Conclusion ......................................... 37
9.2 Future Work ........................................ 38
Bibliography 39

[1] Axis Communications. An open source Bluetooth protocol stack for Linux. this package is made available at http://java.sun.com/products/javacomm/.
[2] Bluetooth Special Interest Group. Specification of the Bluetooth System, version 1.1, volumes 1, 2, and profiles, Feb 2001.
[3] Brent A. Miller and Chatschik Bidsdikian, Bluetooth Revealed, Prentice Hall, 2001.
[4] D. Kammer, G. McNutt, B. Senese, and J. Bray, Bluetooth Application Developer's Guide, Syngress Publishing, 2002.
[5] IBM. A Bluetooth protocol stack for Linux. the information about this package is available at http://www.alphaworks.ibm.com/tech/bluedrekar/.
[6] James Gosling, Bill Joy, Guy L., Jr. Steele The Java Language Specification, Addison-Wesley Pub Co, 1996.
[7] Jennifer Bray and Charles F. Sturman, Bluetooth Connect Without Cables, Prentice Hall, 2001.
[8] Ken Arnold, Jim Waldo, The Jini Team The Jini Specifications, 2nd Edition, Addison-Wesley Pub Co, 2000.
[9] Nitya Narasimhan, L. E. Moser and P. M. Melliar-Smith ”Interceptors for Java Remote Mehtod Invocation” Concurrency and Computation: Practice and Experience 13, 2001.
[10] Patrick Chan, Rosanna Lee, Doug Kramer The Java(TM) Class Libraries, Voume I, 2nd Edition, Addison-Wesley Pub Co, 1998.
[11] Sheng Liang Java(TM) Native Interface: Programmer’s Guide and Specification, Addison-Wesley Pub Co, 1999.
[12] Sun Microsystems Inc. Java Communications API, this package is made available at http://java.sun.com/products/javacomm/.
[13] Sun Microsystems Inc. Java Remote Method Invocation Specification, this package is made available at http://java.sun.com/products/jdk/rmi/.
[14] W. Keith Edwards Core Jini, 2nd Edition, Prentice Hall PTR, 2000.
[15] Zucotto Wireless Corp. XJB 100 Bluetooth Host Stack. the informattion about it is available at http://www.zucotto.com/.

QRCODE
 
 
 
 
 
                                                                                                                                                                                                                                                                                                                                                                                                               
第一頁 上一頁 下一頁 最後一頁 top