Bluetooth Application Programming with the Java APIs Essentials Edition (eBook)
304 Seiten
Elsevier Science (Verlag)
978-0-08-056100-4 (ISBN)
'Bluetooth Application Programming Essentials: 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 developing the standards of JABWT, this book provides the authoritative explanations and concrete examples needed to get started right away.
This book provides embedded Java developers with to-the-point information on the APIs in the specification with detailed programmatic examples of the APIs in use. A NEW chapter on the Push Registry definition (a new feature in the 1.1 version of JSR-82) has been added. Finally, the new Essentials version of the book will update the remaining chapters to reflect changes in the latest Bluetooth spec (2.1) and the industry as a whole.
As a bonus, this edition of the book offers over 200 pages of added content on the website. This 'bonus material' includes complete source code from examples in the book, the javex.bluetooth code package, the java.obex code package, an enhanced set of 'Example Applications', and a tutorial on 'Implementing JABWT on a Device.' These code-heavy sections are actually more effective in electonic format where the application can be easily downloaded.
KEY FEATURES & BENEFITS
* By focusing only on the essentials, this concise resource enables software and hardware vendors to quickly develop Bluetooth applications for mobile devices in an increasingly competitive market.
* The updated material examines crucial programming areas (including RFCOMM, OBEX, device discovery, service discovery, and L2CAP), which allows developers to not only successfully design, but master and build Java APIs for Bluetooth Wireless Technology.
* Includes a new and valuable chapter that delineates the pivotal Push Registry feature ? a recent development that will help programmers avoid the common problem of connection collision.
* By providing real-world issues and problems involved in implementing the Java APIs specification, the book allows developers to identify with the text and encourages repeated reference.
Adoption of Bluetooth wireless technology has become ubiquitous in the last few years. One of the biggest steps forward is the standardization of Java APIs for Bluetooth wireless technology (JABWT). The latest updates to this standard is explained in detail in this book. The JABWT standard, defined by the JSR-82 Java Specification Request, supports rapid development of Bluetooth applications that are portable, secure, and highly-usable. Wireless device manufacturers have responded overwhelmingly to the JABWT specification by implementing JABWT applications in mobile phones and other personal wireless communications products. Bluetooth Application Programming Essentials: 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 developing the standards of JABWT, this book provides the authoritative explanations and concrete examples needed to get started right away.This book provides embedded Java developers with to-the-point information on the APIs in the specification with detailed programmatic examples of the APIs in use. A NEW chapter on the Push Registry definition (a new feature in the 1.1 version of JSR-82) has been added. Finally, the new Essentials version of the book will update the remaining chapters to reflect changes in the latest Bluetooth spec (2.1) and the industry as a whole. - By focusing only on the essentials, this concise resource enables software and hardware vendors to quickly develop Bluetooth applications for mobile devices in an increasingly competitive market- The updated material examines crucial programming areas (including RFCOMM, OBEX, device discovery, service discovery, and L2CAP), which allows developers to not only successfully design, but master and build Java APIs for Bluetooth Wireless Technology- Includes a new and valuable chapter that delineates the pivotal Push Registry feature - a recent development that will help programmers avoid the common problem of connection collision- By providing real-world issues and problems involved in implementing the Java APIs specification, the book allows developers to identify with the text and encourages repeated reference
Front Cover 1
Bluetooth® Application Programming With the Java™ APIs Essentials Edition 6
Copyright Page 7
Table of Contents 10
Preface 14
About the Authors 17
Acknowledgments 18
Chapter 1 Introduction 20
1.1 Wireless Connectivity 20
1.2 What Is Bluetooth Wireless Technology? 22
1.2.1 History of Bluetooth Wireless Technology 23
1.2.2 Bluetooth Vision 24
1.2.3 Bluetooth Specification 26
1.3 Overview of Bluetooth Stack Architecture 26
1.3.1 Bluetooth Protocols 28
1.3.2 Bluetooth Profiles 30
1.3.3 Bluetooth Qualification 32
1.4 What Is JAVA ME? 33
1.4.1 Configurations 34
1.4.2 Profiles 36
1.4.3 Optional Packages 37
1.5 Why JAVA Technology for Bluetooth Devices? 37
1.5.1 Java Community ProcessSM (JCP) and JSR-82 38
1.5.2 What about Java SE? 39
1.6 Summary 40
Chapter 2 An Overview of JABWT 42
2.1 Goals 42
2.1.1 Target Devices 43
2.1.2 Keeping up with the Bluetooth Profiles 43
2.1.3 JABWT Use Cases 45
2.2 API Characteristics and Hardware Requirements 46
2.2.1 JABWT Specification Characteristics 47
2.2.2 Java ME Device Requirements 48
2.2.3 Bluetooth System Requirements 48
2.3 Scope 49
2.4 Summary 53
Chapter 3 High-Level Architecture 54
3.1 Architecture of JABWT 54
3.1.1 CLDC, MIDP, and JABWT 55
3.1.2 Java Packages 56
3.1.3 Client and Server Model 57
3.1.4 Device Properties 60
3.2 Bluetooth Control Center 60
3.2.1 Conflict Resolution 62
3.2.2 Modifying Device Properties 62
3.2.3 User Interaction 62
3.2.4 BCC on Devices with No User Interface 63
3.3 Simple JABWT Application 63
3.3.1 Development Tools 63
3.3.2 Sample Application 64
3.4 Summary 72
Chapter 4 RFCOMM 74
4.1 Overview 74
4.2 API Capabilities 79
4.3 Programming with the API 81
4.3.1 Establishing a Server Connection 83
4.3.2 Establishing a Client Connection 89
4.4 Summary 100
Chapter 5 OBEX 104
5.1 Overview 104
5.1.1 Use Cases 105
5.1.2 Protocol Description 106
5.1.3 Example Session 108
5.2 API Capabilities 111
5.3 Programming with the API 114
5.3.1 Establishing a Connection 115
5.3.2 Manipulating OBEX Headers 117
5.3.3 Sending a Request to the Server 119
5.3.4 Receiving a Request from a Client 126
5.3.5 Using OBEX Authentication 130
5.4 Summary 135
Chapter 6 Device Discovery 138
6.1 Overview 138
6.2 API Capabilities 141
6.3 Programming with the API 143
6.3.1 Accessing the Local Device 143
6.3.2 Device Discovery via Inquiry 155
6.3.3 Retrieving Information from a Remote Device 161
6.3.4 Using the DeviceClass Class 165
6.4 Summary 168
Chapter 7 Service Discovery 170
7.1 Overview 170
7.1.1 Key Concepts 172
7.1.2 Services Defined by Bluetooth Profiles 173
7.1.3 Custom Services 173
7.2 API Capabilities 174
7.2.1 Run-before-Connect Services 174
7.2.2 Register a Service 176
7.2.3 Modifications to Service Records 188
7.2.4 Device Service Classes 190
7.3 Programming with the API 190
7.3.1 Automatic Generation of Service Records 191
7.3.2 Modifying a Service Record 196
7.3.3 Support for String Attributes in Several Languages 199
7.3.4 Service Records for Bluetooth Profiles 202
7.3.5 Service Discovery 210
7.3.6 Working with Service Records 221
7.3.7 Retrieving Additional Attributes after Service Discovery 226
7.3.8 Simple Device and Service Discovery 231
7.4 Summary 234
Chapter 8 L2CAP 236
8.1 Overview 236
8.1.1 L2CAP Channels and L2CAP Packets 238
8.1.2 Reasons for Using L2CAP 240
8.2 API Capabilities 241
8.2.1 JABWT for L2CAP 241
8.2.2 Open an L2CAP Connection 243
8.2.3 L2CAP Channel Configuration 245
8.2.4 No Flow Control in L2CAP 248
8.2.5 Types of Applications Using L2CAP 250
8.3 Programming with the API 251
8.3.1 Example: Echo L2CAP Packets 251
8.3.2 User Interface for MTU Values 260
8.3.3 L2CAP Clients and Servers Have the Same Capabilities 264
8.3.4 Flow Control 264
8.4 Summary 272
Chapter 9 Push Registry 274
9.1 Overview 274
9.2 API Capabilities 276
9.3 Programming with the API 279
9.3.1 Static Registration 281
9.3.2 Dynamic Registration 282
9.3.3 Retrieving the Connection 288
9.3.4 Lifetime of a Service Record 290
9.4 Conclusion 292
Chapter 10 Closing Remarks 294
References 298
Index 302
Erscheint lt. Verlag | 2.4.2008 |
---|---|
Sprache | englisch |
Themenwelt | Sachbuch/Ratgeber |
Mathematik / Informatik ► Informatik ► Netzwerke | |
Informatik ► Programmiersprachen / -werkzeuge ► Java | |
Mathematik / Informatik ► Informatik ► Theorie / Studium | |
ISBN-10 | 0-08-056100-4 / 0080561004 |
ISBN-13 | 978-0-08-056100-4 / 9780080561004 |
Haben Sie eine Frage zum Produkt? |
Kopierschutz: Adobe-DRM
Adobe-DRM ist ein Kopierschutz, der das eBook vor Mißbrauch schützen soll. Dabei wird das eBook bereits beim Download auf Ihre persönliche Adobe-ID autorisiert. Lesen können Sie das eBook dann nur auf den Geräten, welche ebenfalls auf Ihre Adobe-ID registriert sind.
Details zum Adobe-DRM
Dateiformat: PDF (Portable Document Format)
Mit einem festen Seitenlayout eignet sich die PDF besonders für Fachbücher mit Spalten, Tabellen und Abbildungen. Eine PDF kann auf fast allen Geräten angezeigt werden, ist aber für kleine Displays (Smartphone, eReader) nur eingeschränkt geeignet.
Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen eine
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen eine
Geräteliste und zusätzliche Hinweise
Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.
aus dem Bereich