A serial console can be created across the Bluetooth® service to send commands and display system messages.
The following sequence outlines how to enable the Bluetooth® serial console.
- Add a serial port channel to the adapter
sdptool add SP
- Instruct RFCOMM to configure and to watch the port
sudo rfcomm watch hci0 1 getty rfcomm0 115200 vt100 -a root
- Bind the rfcomm port to the Bluetooth® device
sudo rfcomm bind rfcomm0 <Device-BT-MAC> 1
- Activate a client side service to send requests / commands
picocom -b 115200 -p n /dev/rfcomm0