Monthly Archives: June 2014

How To: Set Bluez into BLE or LE only mode (IBeacon)

By default a bluetooth device driven by bluez will appear as a “BLE and ER/EDR” or “Both” device. If you want it to be an LE only device this is what you need to do:

btmgmt le on
btmgmt bredr off

Info: the btmgmt command is not in the set of tools that are installed by default. Also your kernel version must be at least least version 3.13

To install btmgmt (bluez) go the the folder with the source code and run:

./configure --prefix=/usr    \
        --sysconfdir=/etc    \
        --localstatedir=/var \
        --enable-tools       \
        --disable-test       \
        --disable-systemd

you may need to add:
--with-systemdsystemunitdir=/lib/systemd/system --with-systemduserunitdir=/usr/lib/systemd

Next:

make

and:

sudo /usr/bin/install -c tools/btmgmt /usr/bin/btmgmt
Advertisements