Slideshare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our User Agreement and Privacy Policy. See our Privacy Policy and User Agreement for details. Published on Oct 13, SlideShare Explore Search You.

Author:Shakashakar Banos
Language:English (Spanish)
Published (Last):26 November 2012
PDF File Size:18.89 Mb
ePub File Size:12.8 Mb
Price:Free* [*Free Regsitration Required]

January Purpose of this document. Table of Contents. The Bluetooth Protocol Stack. The Protocol Stack. Bluetooth Devices and Network. Bluetooth System Requirements. The Bluetooth Control Center. Overview of the Connection APIs.

Bluetooth Connection Types. Creating a Connection. Waiting For a Connection. Sending and Receiving Data. Local Device. Remote Device.

Device Class. Gathering Bluetooth Properties. Registering a Service. The MIDlet. The DiscoveryAgent. The DiscoveryListener. The ServiceRecord. Further Information and Links. The Bluetooth Car Application. Bluepad - a Bluetooth shared sketch board for P phones.

Sun Wireless Toolkit version 2. Developed by the Bluetooth Special Interest Group SIG , Bluetooth is a low-cost, short-range radio technology intended to replace data cables connecting electronic devices.

Ideal for wireless personal networks it uses the unlicensed ISM frequency band of 2. The Bluetooth technology, currently in version 1.

The Bluetooth protocol stack is divided into two parts: the controller that is typically implemented in hardware, and the on-host stack with which applications and services interact. Figure 1 represents the Bluetooth protocol stack. Figure 1. The Bluetooth Stack. In this paper we are mainly concerned with the top layers of the implementation, which is the Bluetooth Host Software Protocol Stack.

This stack consists of the following layers:. It interfaces directly with. To ensure interoperability and consistency between devices, Bluetooth profiles define vendor-neutral device capabilities.

A profile describes specific functions and features that use Bluetooth as its transport mechanism. Profiles supply information that makes certain that Bluetooth devices that claim these capabilities can exchange data with devices from another vendor.

The Bluetooth SIG has defined a number of standard profiles:. All Bluetooth implementations implement the GAP. File Transfer Profile FTP — defines the user interface requirements, and the interoperability and use of. The Sony Ericsson P supports the following Bluetooth profiles:. Generic Access Profile. Serial Port Profile. Dialup Networking Profile. Generic Object Exchange Profile. Object Push Profile. Headset Profile. File Transfer Profile.

Bluetooth devices use a unique IEEE bit address. When two or more Bluetooth devices connect, they form what is referred to as a Piconet. This is a dynamic ad hoc network, where one device acts as a master while all others up to seven are slaves. Slaves can participate in different piconets, and two connecting masters form an overlapping piconet that is referred to as a Scatternet ; in Figure 2 a piconet master node becomes a slave node for the other piconet. Figure 2. The Bluetooth Piconet and Scatternet Networks.

Bluetooth supports one data channel and a maximum of three voice channels. Data can be exchanged at a rate of approximately kilobits per second using point-to-point or multipoint encrypted connections.

The theoretical range of Bluetooth is meters. All Bluetooth low-level implementations must satisfy a set of requirements with respect to the supported Bluetooth profiles and protocols, as follows:. Table 1. Bluetooth version 1. Service Discovery Protocol. Service Discovery Application Profile. In addition, Bluetooth devices must also support what is called the Bluetooth Control Center BCC , which is the central authority for local Bluetooth device settings.

This optional package provides a common API for Bluetooth development. Figure 3. Package Name. Support is optional. Note: The javax. The javax. These will be discussed in further detail in the sections that follow. Figure 4. Figure 5 illustrates the different Bluetooth operations your application can perform. Figure 5. Using the Bluetooth API. These aforementioned steps are done via what is referred to as the Bluetooth Control Center BCC , which typically are a set of control panels that serves as the central authority for local Bluetooth device settings.

Figure 6. The P Bluetooth Control Panels. Other features include scan for other Bluetooth devices in the neighborhood, specify connection permissions, and connect or disconnect i. Figure 7. Bluetooth and the Generic Connection Framework. The Connector class is the Connection factory. InputConnection and OutputConnection returns input and output streams with methods that allow you to read and write formatted data. The StreamConnectionNotifier is an interface that represents a server side stream connection.

StreamConnectionNotifier defines a single method, acceptAndOpen that waits for and opens returns incoming stream connections. For more information about these aforementioned interfaces, please refer to the MIDP 1. A MTU defines the maximum number of bytes that can be sent or received without loosing data. Creating Bluetooth server and client connections is done similarly to creating other types of GCF connections: by using the Connector connection factory class. To create a connection, use the Connector.

Three forms of the open method are defined:. The default is false. The simple form, open String url , is the most widely used. The connection URL, which is used to describe the connection type to create, has the following form:. See Table 3. It specifies the remote address to connect to, or localhost for server connections. It specifies the protocol service multiplexor. For server connections, it specifies the service UUID. Table 3.


Java Jsr 82 - 05.06.2020

January Purpose of this document. Table of Contents. The Bluetooth Protocol Stack.


Bluetooth Jsr 82 Training

What is JSR compatibility? Blucat and hands on with JSR Blucat javax. See javax. Javadocs for this packages are licensed under the Apache License, Version 2.

Related Articles