systemctl stop ModemManager systemctl disable MomdemManager
/etc/bluetooth/main.conf
:[Policy] AutoEnable=true
systemctl enable bluetooth systemctl start bluetooth
/etc/systemd/system/rfcomm.service
[Unit] Description=RFCOMM service After=bluetooth.service Requires=bluetooth.service [Service] ExecStart=/usr/bin/rfcomm watch hci0 1 setsid /sbin/agetty --8bits --noclear -L rfcomm0 115200 linux [Install] WantedBy=multi-user.target
systemctl enable rfcomm systemctl start rfcomm
systemctl stop ModemManager systemctl disable MomdemManager
dialout
group.bluetoothctl discoverable on pairable on
bluetoothctl scan on -wait to discover server- scan off pair <mac>
bluetoothctl discoverable off pairable off trust <BT-MAC of client>
# There should be a rfcomm0 device crw-rw----. 1 root dialout 216, 0 11 jun 08:14 /dev/rfcomm0 # If device is nonexistent, create one sudo rfcomm connect /dev/rfcomm0 <BT server-MAC-address> 1 & Connected /dev/rfcomm0 to <MAC> on channel 1 Press CTRL-C for hangup # Connect to the serial console: screen /dev/rfcomm0 115200
resize
.rfkill list