BT connection fails


#1

Hi

Great tool, have tried to get my androide to connect with my raspberry 3+ - no succes
Then i trued your tool, still no succes.
Here is a printout from bluetoothctl just before a connection attemt is tried

sudo bluetoothctl
[NEW] Controller B8:27:EB:4D:F1:C3 raspberrypi [default]
[NEW] Device 41:04:F4:A8:7C:27 41-04-F4-A8-7C-27
[NEW] Primary Service
/org/bluez/hci0/dev_41_04_F4_A8_7C_27/service0001
00001801-0000-1000-8000-00805f9b34fb
Generic Attribute Profile
[NEW] Characteristic
/org/bluez/hci0/dev_41_04_F4_A8_7C_27/service0001/char0002
00002a05-0000-1000-8000-00805f9b34fb
Service Changed
[CHG] Device 41:04:F4:A8:7C:27 UUIDs: 00001800-0000-1000-8000-00805f9b34fb
[CHG] Device 41:04:F4:A8:7C:27 UUIDs: 00001801-0000-1000-8000-00805f9b34fb
[CHG] Device 41:04:F4:A8:7C:27 ServicesResolved: yes
[CHG] Device 41:04:F4:A8:7C:27 Name: HUAWEI P9
[CHG] Device 41:04:F4:A8:7C:27 Alias: HUAWEI P9
[CHG] Device 41:04:F4:A8:7C:27 ServicesResolved: no
[CHG] Device 41:04:F4:A8:7C:27 Connected: no
[DEL] Characteristic
/org/bluez/hci0/dev_41_04_F4_A8_7C_27/service0001/char0002
00002a05-0000-1000-8000-00805f9b34fb
Service Changed
[DEL] Primary Service
/org/bluez/hci0/dev_41_04_F4_A8_7C_27/service0001
00001801-0000-1000-8000-00805f9b34fb
Generic Attribute Profile
[DEL] Device 41:04:F4:A8:7C:27 HUAWEI P9

added:
more info here

pi@raspberrypi:~ $ systemctl status nymea-networkmanager
● nymea-networkmanager.service - Daemon for nymea to configure wifi network using a Bluetooth LE connection
Loaded: loaded (/lib/systemd/system/nymea-networkmanager.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2019-03-08 21:05:01 UTC; 33min ago
Docs: https://github.com/guh/nymea-networkmanager
Main PID: 390 (nymea-networkma)
CGroup: /system.slice/nymea-networkmanager.service
└─390 /usr/bin/nymea-networkmanager -d

Mar 08 21:06:12 raspberrypi nymea-networkmanager[390]: I | BluetoothServer: Stopping bluetooth server.
Mar 08 21:06:12 raspberrypi nymea-networkmanager[390]: I | BluetoothServer: -------------------------------------
Mar 08 21:06:12 raspberrypi nymea-networkmanager[390]: I | BluetoothServer: Delete network service
Mar 08 21:06:12 raspberrypi nymea-networkmanager[390]: I | BluetoothServer: Delete wireless service
Mar 08 21:06:12 raspberrypi nymea-networkmanager[390]: I | BluetoothServer: Stop advertising.
Mar 08 21:06:12 raspberrypi nymea-networkmanager[390]: I | BluetoothServer: Controller state disonnected.
Mar 08 21:06:12 raspberrypi nymea-networkmanager[390]: I | BluetoothServer: Set host mode to connectable.
Mar 08 21:06:12 raspberrypi nymea-networkmanager[390]: I | Application: Bluetooth server stopped
Mar 08 21:06:12 raspberrypi nymea-networkmanager[390]: W | NymeaService: Could not enable/disable bluetooth hardware resource. D-Bus interface not available.
Mar 08 21:06:12 raspberrypi nymea-networkmanager[390]: I | NetworkManager: Connectivity state changed: “Full”

for some reason the connection is dropped just after connection
Anyone have an idea on what can be wrong

Best regards
Ivan


#2

Hi Ivan,

thanks for the bug report and I’m glad you like the tool :slight_smile:
Could you send me the whole debug output from nymea-networkmanager while you try to connect?

systemctl restart nymea-networkmanager && journalctl -f -u nymea-networkmnagaer 

This gives me hopefully the information in order to understand what’s going on.

Best regards,
Simon