Bluetooth Serial Console

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.

  1. Add a serial port channel to the adapter

sdptool add SP

  1. Instruct RFCOMM to configure and to watch the port

sudo rfcomm watch hci0 1 getty rfcomm0 115200 vt100 -a root

  1. Bind the rfcomm port to the Bluetooth® device

sudo rfcomm bind rfcomm0 <Device-BT-MAC> 1

  1. Activate a client side service to send requests / commands

picocom -b 115200 -p n /dev/rfcomm0

For more complete information about compiler optimizations, see our Optimization Notice.