Skip to content

Automated Bluetooth configuration and pairing script for Serial over Bluetooth communication for Raspberry Pi

License

Notifications You must be signed in to change notification settings

ataberkylmz/RaspberryPi-Bluetooth-Serial-Config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Automated Bluetooth Serial Configuration for Pi

Automated shell script for configuring the internal Bluetooth of the Raspberry Pi to communicate with Serial. This script does not provide any RFCOMM server, if you are looking for a server, I'd suggest using Pybluez Library if your intention is to use Python, you can always use bluetooth-serial-port with Node/JavaScript.

Usage

Set the TARGET_DEVICE_NAME to the name of the device that you are going to pair and run with superuser privileges. This helps the script to find the MAC address of the device and pair with it. Otherwise the script will not work.

Issues

  • -Running the script multiple times inserts empty new lines after ExecStartPost key in /lib/systemd/system/bluetooth.service. You can manually edit the file to get rid of those new lines afterwards as a work around for now.
  • Script does not have any functionality to check if the device is already paired or not. Running the script multiple times might cause unexpected Bluetooth behavior.

About

Automated Bluetooth configuration and pairing script for Serial over Bluetooth communication for Raspberry Pi

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages