rfcomm Man page

Resume Wikipedia de BlueZ

BlueZ est un logiciel qui met en œuvre la technologie sans fil Bluetooth sur le système d’exploitation Linux. Il a été créé au départ par Max Krasnyansky de la société Qualcomm. En 2001, la société décide de le publier sous une licence GNU GPL. BlueZ est ensuite devenu la mise en œuvre Bluetooth de référence pour Linux et a été intégré au noyau Linux.
La première pile Open Source de Bluetooth pour Linux avait été développée par Axis Communication et s’appelait OpenBT, mais en 2005, ce projet fut arrêté.
En 2005, le projet BlueZ a gagné le TuxMobil GNU/Linux Award pour sa contribution à l’amélioration des connexions réseaux sur des machines portables munies de Linux.

RFCOMM(1) RFCOMM(1)

NAME

rfcomm – RFCOMM configuration utility

SYNOPSIS

rfcomm [ options ] < command > < dev >

DESCRIPTION

rfcomm is used to set up, maintain, and inspect the RFCOMM configura‐
tion of the Bluetooth subsystem in the Linux kernel. If no command is
given, or if the option -a is used, rfcomm prints information about the
configured RFCOMM devices.

OPTIONS

-h Gives a list of possible commands.

-a Prints information about all configured RFCOMM devices.

-r Switch TTY into raw mode (doesn’t work with “bind”).

-i |
The command is applied to device hciX, which must be the name or
the address of an installed Bluetooth device. If not specified,
the command will be use the first available Bluetooth device.

-A Enable authentification

-E Enable encryption

-S Secure connection

-M Become the master of a piconet

-L
Set linger timeout

COMMANDS
show
Display the information about the specified device.

connect [bdaddr] [channel] Connect the RFCOMM device to the remote Bluetooth device on the
specified channel. If no channel is specified, it will use the
channel number 1. This command can be terminated with the key
sequence CTRL-C.

listen [channel] [cmd] Listen on a specified RFCOMM channel for incoming connections.
If no channel is specified, it will use the channel number 1,
but a channel must be specified before cmd. If cmd is given, it
will be executed as soon as a client connects. When the child
process terminates or the client disconnect, the command will
terminate. Occurrences of {} in cmd will be replaced by the
name of the device used by the connection. This command can be
terminated with the key sequence CTRL-C.

watch [channel] [cmd] Watch is identical to listen except that when the child process
terminates or the client disconnect, the command will restart
listening with the same parameters.

bind [bdaddr] [channel] This binds the RFCOMM device to a remote Bluetooth device. The
command does not establish a connection to the remote device, it
only creates the binding. The connection will be established
right after an application tries to open the RFCOMM device. If
no channel number is specified, it uses the channel number 1.

release
This command releases a defined RFCOMM binding.

If all is specified for the RFCOMM device, then all bindings
will be removed.

AUTHOR

Written by Marcel Holtmann .

APRIL 28, 2002 RFCOMM(1)

Ils en parlent aussi

How to setup bluetooth in Linux with bluez and hcitool – FixMyNIX