Datasheet

“main” (Installation and Administration) 2004/6/25 13:29 page 351 #377
i
i
i
i
i
i
i
i
16
Linux on Mobile Devices
and sdpd (service discovery protocol), by means of which a device can find
out which services the host makes available. If they are not activated au-
tomatically when the system is started, both hcid and sdpd can be acti-
vated with the command rcbluetooth start. This command must be
executed as root.
Note
Other functionalities of the above-mentioned Bluetooth applica-
tions can be viewed with man <program_name>.
Note
The following paragraphs describe the main tools needed for working with
Bluetooth. Konqueror provides a Bluetooth extension. The URL sdp://
displays local Bluetooth devices (physically connected to the host) as well
as remote Bluetooth devices (accessible by way of a wireless connection).
Some of the commands can only be executed as root. This includes the
command l2ping <device_address> for testing the connection to a
remote device.
hcitool
hcitool can be used to determine whether local and remote devices are de-
tected. The command hcitool dev should list your devices. The output
generates a line in the form <interface_name> <device_address>
for every detected local device.
The command hcitool name <device_address> can be used to deter-
mine the device name of a remote device. If, for example, another computer
is detected, the displayed class and device name corresponds to the infor-
mation in the file /etc/bluetooth/hcid.conf on the remote computer.
Local device addresses generate an error output.
hciconfig
Get more information about the local device with /sbin/hciconfig.
Search for remote devices (those not connected physically to the host) with
the command hcitool inq. Three values are displayed for every detected
device: the device address, the clock offset, and the device class. The device
address is important, as other commands use it for identifying the target
device. The clock offset mainly serves technical purposes. In the class, the
device type and the service type are encoded as a hexadecimal value.
351SUSE LINUX Enterprise Server