zephyr/samples/bluetooth
Szymon Janc 985b411455 Bluetooth: Add tester application
This application is intended for automated testing. It used binary
protocol for communication over UART and can be used for driving
Bluetooth stack by external tester.

Currently only single command registering (init) GAP service is
implemented.

Change-Id: I62e151baa2badc0f1297e65591b5f494ff7b841e
Signed-off-by: Szymon Janc <szymon.janc@tieto.com>
2016-02-05 20:14:19 -05:00
..
beacon Rename TIMO -> ZEPHYR 2016-02-05 20:14:16 -05:00
central Bluetooth: Update simple LE scan app 2016-02-05 20:14:18 -05:00
init Rename TIMO -> ZEPHYR 2016-02-05 20:14:16 -05:00
peripheral Bluetooth: Fix vxmicro.h include 2016-02-05 20:14:18 -05:00
shell Rename TIMO -> ZEPHYR 2016-02-05 20:14:16 -05:00
test_bluetooth Use ccflags-y and asflags-y instead of EXTRA_CFLAGS 2016-02-05 20:14:14 -05:00
tester Bluetooth: Add tester application 2016-02-05 20:14:19 -05:00
bt_regression.sh Bluetooth: Remove quark target from regression test 2016-02-05 20:14:18 -05:00
README Bluetooth: Update samples README 2016-02-05 20:14:19 -05:00

Bluetooth subsystem

= Building =

Build samples

$ make -C samples/bluetooth/<app>

= Testing =

Host Bluetooth controler is connected to the second qemu serial line
through a UNIX socket (qemu option -serial unix:/tmp/bt-server-bredr).

On the host side BlueZ allows to "connect" Bluetooth controller through
a so-called user channel. Use the btproxy tool for that:

$ sudo tools/btproxy -u
Listening on /tmp/bt-server-bredr

Now qemu can connect serial line to the 'bt-server-bredr' UNIX socket
with following command:

$ make qemu

Extra parameter to qemu might be added through QEMU_EXTRA_FLAGS.

There is smoke test application in nanokernel and microkernel test
directories which gets run in sanity check script:

$ scripts/sanity_chk/sanity_chk -T gcc [-B <BSP>]

For quick regression test use bt_regression, it only check Bluetooth test

$ samples/bluetooth/bt_regression.sh