Last active
December 4, 2023 10:05
-
-
Save tomvdb/8ced01dc3287298b90cd to your computer and use it in GitHub Desktop.
Bluetooth Raspberry PI 3 - Serial Port Service Setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ExecStart=/usr/lib/bluetooth/bluetoothd -C
ExecStartPost=/usr/bin/sdptool add SP
why we are modifying these two lines ?