bluetoothctl
agent on
default-agent
power on
scan on
[ get device MAC address ]
scan off
pair <addr>
connect <addr>
sudo bluetoothctl 2>&1 | tee /tmp/bluetooth.out
connect DC:2A:9C:FB:8C:D3
select-attribute /org/bluez/hci0/dev_DC_2A_9C_FB_8C_D3/service0021/char0022
notify on
./parse.pl sample_input/bluetooth.out
awk -F ":" '{print $3}' bluetooth.out > bt.values
Archlinux Wiki - Bluetooth
Bluetooth LE on Raspberry Pi
Bluetooth LE Quick Start
Bluetooth Low Energy Introduction
PerlMonks hex2ascii