Skip to content

Instantly share code, notes, and snippets.

@tomvdb
Last active December 4, 2023 10:05
Show Gist options
  • Save tomvdb/8ced01dc3287298b90cd to your computer and use it in GitHub Desktop.
Save tomvdb/8ced01dc3287298b90cd to your computer and use it in GitHub Desktop.
Bluetooth Raspberry PI 3 - Serial Port Service Setup
# open bluetooth service config
sudo nano -w /etc/systemd/system/bluetooth.target.wants/bluetooth.service
# add compatibility mode
# add sp profile
# these lines need to be edited/added to above bluetooth.service
ExecStart=/usr/lib/bluetooth/bluetoothd -C
ExecStartPost=/usr/bin/sdptool add SP
# start this to listen to for incoming serial port
sudo rfcomm listen hci0
# on incoming connecting the port will be on
#/dev/rfcomm0
@jasvinder1079
Copy link

ExecStart=/usr/lib/bluetooth/bluetoothd -C
ExecStartPost=/usr/bin/sdptool add SP
why we are modifying these two lines ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment