Closed Zelex closed 3 years ago
Instructions in the README.md need improvement it seems,
Does Bluetooth work in general? The logs says there would be no adapter available.
What does hciconfig -a
give?
yeah, works.
pi@raspberrypi:~ $ hciconfig -a hci0: Type: Primary Bus: UART BD Address: AA:AA:AA:AA:AA:AA ACL MTU: 1021:8 SCO MTU: 64:1 DOWN RX bytes:1476 acl:0 sco:0 events:84 errors:0 TX bytes:928 acl:0 sco:0 commands:84 errors:0 Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87 Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 Link policy: RSWITCH SNIFF Link mode: SLAVE ACCEPT
this is straight up raspbian buster install. no changes.
The berrylan image really is just a plain raspbian buster lite with nymea-networkmanager preinstalled too. This is the complete patch against the upstream raspbian image: https://github.com/nymea/pi-gen/commit/13413d90d292f4ddc7d366e43da3847dccd01982
So next guess would be a permission problem. Are you running it as a user or root?
The problem occurs when from a fresh install of buster you do apt update, apt upgrade - and after the upgrade bluetooth no longer works correctly.
this looks maybe related https://github.com/RPi-Distro/pi-bluetooth/issues/25
BerryLan works fine if you don't apt upgrade. Going to close this. not your problem!
Thanks for digging into this.
I've filed a pull request to update the README.
I | Application: Using configuration file from: "/etc/nymea/nymea-networkmanager.conf" I | Application: ===================================== I | Application: Starting nymea-networkmanager "0.5.7+202105191824~buster+rpi1" I | Application: ===================================== I | Application: Advertising name: "BT WLAN setup" I | Application: Platform name: "nymea-box" I | Application: Mode: Core::ModeOffline I | Application: Timeout: 60 I | Application: DBus interface: "system" W | NymeaService: Invalid D-Bus HardwareManager interface. W | NymeaService: Could not init nymea D-Bus services W | DBus: Failed to register D-Bus service. I | Application: Not starting the service yet because the networkmanager is not available. I | Application: Networkmanager is now available. I | Application: Start the bluetooth service because of "offline" mode. W | NymeaService: Could not enable/disable bluetooth hardware resource. D-Bus interface not available. W | NetworkManagerBluetoothServer: Local bluetooth device is not valid. W | NetworkManager: Scan error: "org.freedesktop.NetworkManager.Device.NotAllowed" "Scanning not allowed while unavailable or activating" ^C I | Application: Cought SIGINT quit signal... I | Application: ===================================== I | Application: Shutting down nymea-networkmanager I | Application: ===================================== I | Application: Shutting down nymea service W | NymeaService: Could not enable/disable bluetooth hardware resource. D-Bus interface not available. I | Application: Shutting down bluetooth service I | Application: Shutting down network-manager service