Using a bluetooth serial console with linux
Contents
Recently I bought a bluetooth RS232 serial convertor. I wasn’t sure whether it would work with my Linux laptop. But it turned out to be quite simple to setup.
Pre-requisites
The following packages are required:
- bluez
- bluez-utils
- byobu (optional)
Bluez provides the bluetooth protocol stack (most likely shipped with the OS), bluez-utils provides the bluetoothctl utility and byobu is a wrapper around screen terminal emulator. You can also use ‘screen’ directly. Install these using your distributions recommended procedure.
Steps
- Start daemon:
|
|
- Discover using bluetoothctl:
|
|
- Once you can see your device, turn off the scan and pair
|
|
- Exit blutoothctl and create serial device (Note that root privileges are required):
|
|
- You should now have /dev/rfcomm0. Connect to it using byobu-screen utility:
|
|
Enjoy your wireless console connection!
Author tmzh
LastMod 2017-08-24