btclt

Name

btclt -- Get information about Bluetooth devices around you

Synopsis

btclt [-i <name>] <command> [parameters..]>

Description

Search for available Bluetooth devices. All the devices are stored to a device cache. To get the list of cached devices give btclt command without parameters. It will list cached devices, their names and cache entry number.

Later when you use other Affix commands you can use the cache entry number instead of writing the long Bluetooth device address. In general you can always replace the Bluetooth address with the cache entry number.

-i The interface name where your bluetooth device is attached. E.g. "bt0"

General Commands

help <command name>

Show quick help for the command given as a parameter.

list

Shows list of known devices (cached). This is default command and the result is the same if you run btclt without parameters.

flush

Clears the device cache.

HCI Commands

Host Controller Interface is used to manage the Bluetooth device. These command use the HCI to inquiry surrounding Bluetooth devices.

inquiry [length]

Search for surrounding Bluetooth devices. The parameter given is the time used to look devices up in seconds. Default is eight seconds. Found devices are cached.

discovery [length]

he same as above but tries also to sort out device names. Found devices are cached.

SDP Commands

Service discovery protocol (SDP) is used to find out services that a Bluetooth device can provide. SDP is sometimes also used to establishing the requested connection but this is invisible to the end user.

browse <address>

Sort out services on a remote Bluetooth device. This command returns you a list of commands that given remote device is able to provide you. Note that the address can be replaced with cache entity number.

search <address>

Almost the same as browse. Some devices does not support browsing. In this case use search method instead.

RFCOMM Commands

Serial ports can be used to transfer data. RFCOMM emulates RS-232 serial line settings. RFCOMM provides multiple serial connections that are multiplexed on L2CAP to single connection. RFCOMM connections can be used for example together with some legacy applications that requires RS-232 connection.

port <address> [channel | service]

Make a SDP request to get RFCOMM server channel for a service.

connect <address> [channel | service] [line number]

Connect to remote Bluetooth device. Channel number is mapped to device as /dev/bty<line>.

bind <address> [channel | service] [line number]

Bind a remote address to a given channel and line. Yet, connection is not established. When the channel is written the connection is established automatically.

disconnect [line]

Close the connection and unbind the channel.

status

Print the status of connections.