Both seem to be paired and trusted happily.
Deb has BlueZ version 5.23 running on Debian 8.2 Jessie, kernel 3.16.0-4-686-pae with bnep module present
After a lot of googling, I've produced the following script to start the NAP server:
Code: Select all
echo "setting up bridge"
brctl addbr pan0
brctl setfd pan0 0
brctl stp pan0 off
echo "setting pan0 local IP address"
ifconfig pan0 192.168.3.1
ip link set pan0 up
echo "starting bt-network server"
bt-network -s nap pan0 &
sleep 1
echo "starting dhcp server"
/etc/init.d/dnsmasq start &
sleep 1
echo " "
But when the pi tries to connect, the LED on the USB bluetooth dongle blinks as the syslog reports the following happening over and over:setting up bridge
setting pan0 local IP address
starting bt-network server
NAP server registered
starting dhcp server
[ ok ] Starting dnsmasq (via systemctl): dnsmasq.service.
Pi has BlueZ version 4.99 running on Raspbian 7.8, kernel 4.1.7-v7+ with bnep module present.deb... bluetoothd[477]: brige pan0: interface bnep0 added
.deb... kernel: [ 476.931277] device bnep0 entered promiscuous mode
.deb... kernel: [ 476.931458] pan0: port 1(bnep0) entered forwarding state
.deb... kernel: [ 476.931468] pan0: port 1(bnep0) entered forwarding state
.deb... NetworkManager[482]: <info> (pan0): link connected
.deb... kernel: [ 476.946896] pan0: port 1(bnep0) entered disabled state
.deb... NetworkManager[482]: <info> devices added (path: **S**, iface: bnep0)
.deb... NetworkManager[482]: <info> device added (path: **S**, iface: bnep0): no ifupdown configuration found.d
.deb... avahi-daemon[494]: Withdrawing workstation service for bnep0.
.deb... kernel: [ 476.949243] device bnep0 left promiscuous mode
.deb... kernel: [ 476.949264] pan0: port 1(bnep0) entered disabled state
.deb... ModemManager[485]: <info> (net/bnep0): released by modem **T**
.deb... rsyslogd-2007: action 'action 17' suspended, next retry is Thu Dec 3 09:54:56 2015 [try http://www.rsyslog.com/e/2007 ]
.deb... NetworkManager[482]: <info> devices removed (path: **S**, iface: bnep0)
.deb... NetworkManager[482]: <info> (pan0): link disconnected (deferring action for 4 seconds)
.deb... ModemManager[485]: <warn> Couldn't find support for device at '**T**': not supported by any plugin
.deb... NetworkManager[482]: <info> (pan0): link disconnected (calling deferred action)
(all lines repeat ad infinitum)
N.B. edited these text shortcuts for readability:
N.B. **S**="/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/bluetooth/hci0/hci0:11/net/bnep0"
N.B. **T**="/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2"
Pand is started with
Code: Select all
sudo pand --connect 00:00:00:00:00:EC --role PANU --persist
Anyone have any thoughts why the two computers aren't talking to each other happily?.pi... pand[2717]: Bluetooth PAN daemon version 4.99
.pi... pand[2717]: Connecting to 00:00:00:00:00:EC
.pi... pand[2717]: Connect to 00:00:00:00:00:EC failed. Invalid argument(22)
(last two lines repeat ad infinitum)
Ta