Chapter 7. Using Affix utilities

These instructions apply to Affix version 3.0.0.

7.1. btclt

Use this to get information Bluetooth devices around you. Use discovery command (see below) to search devices. All the available devices are cached. To get list of cached devices give btclt command without any 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.

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

7.1.1. General commands

help <command> name Show quick help for this command

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

flush Clears the device cache.

7.1.2. HCI commands

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] The same as above but tries also to sort out device names. Found devices are cached.

7.1.3. 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.

7.1.4. 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]

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

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

disconnect [line]

status