Table of Contents

This Page is deprecated please visit our Bluetooth low energy page

LXC Bluetooth Image

This article decribes the usage of the Bluetooth BLE 4.2 interface on a NB800 router insinde of a LXC virtualisation container.

Requirements

Beside of a NB800 Router, you will need the correct LXC Container file to run Bluetooth on your router. This file can be downloaded here (debian-jessie-bluetooth.tar.xz; Size 54.6MB; Checksum b3907135c41721a70cfbd72cc2873cda).

Beside that, you will need a virtualization licence to run LXC container. You can Contact support for further informations.

Configuration

cd /mnt/storage0/lxc
mkdir guest0

to create a new guest0 folder for your new LXC container.

tar -xJvf debian-jessie-bluetooth.tar.gz -C /mnt/storage0/lxc/guest0

Container

lxc-info -n guest0

USER
~ $ lxc-info -n guest0 Name: guest0 State: RUNNING PID: 3072 IP: 192.168.240.1 CPU use: 48.65 seconds Memory use: 8.51 MiB Link: virt0 TX bytes: 1.42 KiB RX bytes: 1.37 KiB Total bytes: 2.79 KiB ~ $

/etc/init.d/virt start

to start it manually.

lxc-attach -n guest0

USER
~ $ lxc-attach -n guest0 root@jessie:~#

Testing

cd

to change to the containers root folder and

./start-bluetooth.sh

USER
root@jessie:~# ./start-bluetooth.sh Found a Texas Instruments' chip! Firmware file : /lib/firmware/ti-connectivity/TIInit_11.8.32.bts Loaded BTS script version 1 texas: changing baud rate to 3000000, flow control to 1 Device setup complete

to start the bluetooth starting script. If everything works correctly, you will get a confirmation like in the picture.

hcitool scan

USER
root@jessie:~# hcitool scan Scanning …

      6C:4D:73:E3:31:AA       Phone
    

to scan your surrounding for active bluetooth devices.