Adoption of Bluetooth wireless technology has made great strides in the last few years. One of the biggest steps forward-the standardization of Java APIs for Bluetooth wireless technology (JABWT)-is explained in detail in this book. The JABWT standard, defined by the JSR-82 specification, supports rapid development of Bluetooth applications that are portable, secure, and highly-usable. Wireless device manufacturers have responded to the JABWT specification by announcing mobile phones and other products that will run JABWT applications. Bluetooth Application Programming with the Java APIs explains in detail how to write Bluetooth applications using the Java APIs to exploit the power of both technologies. Written by the specification lead for JSR-82 and two other key participants in the definition of JABWT, this book provides the authoritative explanations and concrete examples you need to get started right away. About the AuthorsC Bala Kumar is a Distinguished Member of the Technical Staff at Motorola. He chaired the industry expert group that defined the Java APIs for Bluetooth wireless technology. He currently leads the systems software team for wireless platforms in Motorola's Semiconductor Products Sector. Paul J. Kline is a Distinguished Member of the Technical Staff at Motorola and the maintenance lead for the JABWT specification. He currently works on the System Software Architecture team in Motorola's Semiconductor Products Sector. Timothy J. Thompson is a Senior Software Engineer on the System Software Architecture team in Motorola's Semiconductor Products Sector. He was the OBEX architect on the JABWT specification team at Motorola.
- Written by experts-the authors led the industry team that defined the JABWT standard and the Motorola team that developed the first JABWT implementation
- Covers JABWT in depth and goes beyond the specification to explain how to use the standard effectively
- A helpful resource both to Java programmers interested in Bluetooth wireless technology and to business managers interested in its potential for creating new business opportunities
- Digs deeply into the programming areas you must master to successfully design and build JABWT applications, including RFCOMM, OBEX, device discovery, service discovery, and L2CAP
- Details the real-world issues involved in programming Bluetooth devices and implementing the JABWT specification
- Organized into sections that explicitly address the different needs of programmers, business managers, and project managers
Inhaltsverzeichnis
1;Cover;1 2;Copyright Page;5 3;Contents;8 4;List of Tables;14 5;List of Figures;16 6;Preface;18 7;Acknowledgments;22 8;Chapter 1. Introduction;26 8.1;1.1 Wireless Connectivity;26 8.2;1.2 What Is Bluetooth Wireless Technology?;28 8.3;1.3 Overview of the Bluetooth Stack Architecture;33 8.4;1.4 What is J2ME?;39 8.5;1.5 Why Java Technology for Bluetooth Devices?;43 8.6;1.6 Summary;47 9;Chapter 2. An Overview of JABWT;48 9.1;2.1 Goals;48 9.2;2.2 API Characteristics and Hardware Requirements;52 9.3;2.3 Scope;55 9.4;2.4 Summary;58 10;Chapter 3. High-Level Architecture;60 10.1;3.1 Architecture of JABWT;60 10.2;3.2 Bluetooth Control Center;66 10.3;3.3 Simple JABWT Application;68 10.4;3.4 Summary;75 11;Chapter 4. RFCOMM;76 11.1;4.1 Overview;76 11.2;4.2 API Capabilities;81 11.3;4.3 Programming with the API;83 11.4;4.4 Summary;100 12;Chapter 5. OBEX;102 12.1;5.1 Overview;102 12.2;5.2 API Capabilities;109 12.3;5.3 Programming with the API;112 12.4;5.4 Summary;132 13;Chapter 6. Device Discovery;134 13.1;6.1 Overview;134 13.2;6.2 API capabilities;136 13.3;6.3 Programming with the API;138 13.4;6.4 Summary;163 14;Chapter 7. Service Discovery;164 14.1;7.1 Overview;164 14.2;7.2 API capabilities;167 14.3;7.3 Programming with the API;186 14.4;7.4 Summary;229 15;Chapter 8. L2CAP;230 15.1;8.1 Overview;230 15.2;8.2 API Capabilities;236 15.3;8.3 Programming with the API;246 15.4;8.4 Summary;267 16;Chapter 9. Example Applications;268 16.1;9.1 Overview;268 16.2;9.2 Tic-Tac-Toe MIDlet;269 16.3;9.3 OBEX Application Download;313 16.4;9.4 Summary;343 17;Chapter 10. Implementing JABWT on a Device;344 17.1;10.1 Porting Process;345 17.2;10.2 Steps 1 and 2: Adding J2ME and Bluetooth Support;347 17.3;10.3 Step 3: Implementing JABWT;350 17.4;10.4 Step 4: TCK Compliance;357 17.5;10.5 Summary;359 18;Chapter 11. Closing Remarks;362 19;Appendix A. Complete Code Examples;366 20;Appendix B. javax.bluetooth API;416 21;Appendix C. javax.obex API;478 22;References;516 23;Index;518