Java Reference
In-Depth Information
The Bluetooth Control Center
The Bluetooth Control Center (BCC) is an external utility (not part of the API) that must exist in
every JSR 82-compliant implementation. BCC allows the user to perform explicit configuration
on the local Bluetooth stack. Some of the configuration that you may be able to specify include
the following:
The set of preknown Bluetooth devices (for example, printers that you know about)
The text-based name used for your device during discovery
The PIN for authentication and encryption
The timeout period for device discovery
Default security settings
Turning on or off the discoverability of the device
Turning the radio hardware on or off, essentially enabling and disabling Bluetooth
The exact user interface and configurability of a BCC is dependent on the implementation.
Within the Wireless Toolkit 2.x, you can access the BCC via the KToolbar menu by selecting
Edit Preferences and then clicking the Bluetooth/OBEX tab.
ServiceRecord and Service Attributes
A ServiceRecord is an entry in the Service Discovery Database (SDDB), used by Bluetooth
during service discovery. This database is maintained by the Bluetooth manager on each
device. This is the database that will be searched when a client searches a RemoteDevice for
service matches. Underneath the hood, transparent to the API, service discovery is performed
via the Service Discovery Protocol.
The ServiceRecord entry is just a set of attributes. Each attributes has an ID and a value.
The ID is a 16-bit unsigned integer. The value can be various data types and is represented in
Java by a DataElement instance. Some frequently used attribute IDs are listed in Table 12-2.
Table 12-2. Common ServiceRecord Attribute IDs
ID
Description
0x0000
ServiceRecordHandle
0x0001
ServiceClassIDList
0x0002
ServiceRecordState
0x0003
ServiceID
0x0004
ProtocolDescriptorList
Search WWH ::




Custom Search