For my first Nerves project, I would like to create a Phoenix application that would be available only via Bluetooth Personal Area Network (PAN).
I’ve never done this before, but from what I could understand it would be feasible.
During my researches, I came across this stackoverflow post explaining in detail how to setup a Bluetooth PAN on Raspbian.
So I tried to reproduce the steps for Nerves :
- First, I created a new system based on
- On this system I installed
- I’ve also activated the
Bluetooth subsystem supportin
Once the firmware burn on my SD card and the Raspberry started, I executed the following commands :
# Run D-Bus & Bluetoothd daemons mkdir -p /var/run/dbus /usr/bin/dbus-daemon --system /usr/libexec/bluetooth/bluetoothd & # Create PAN interface ip link add pan0 type bridge # Configure interface ifconfig pan0 192.168.50.1 netmask 255.255.255.0 up
Until then, no problem.
But when I tried to execute
bt-agent -c NoInputNoOutput or
bt-network -s nap pan0, I got the following error:
bt-agent: bluez service is not found Did you forget to run bluetoothd?
However, when I display the list of processes, I can see
I would like to know if anyone has ever had this problem or if anyone has ever succeeded in setting up a Bluetooth PAN.
Thanks in advance.