Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BerryLan cannot access Bluetooth when installing on Plain Raspbian #60

Closed
Zelex opened this issue Aug 18, 2021 · 10 comments
Closed

BerryLan cannot access Bluetooth when installing on Plain Raspbian #60

Zelex opened this issue Aug 18, 2021 · 10 comments

Comments

@Zelex
Copy link

Zelex commented Aug 18, 2021

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

@Zelex
Copy link
Author

Zelex commented Aug 18, 2021

Instructions in the README.md need improvement it seems,

@mzanetti
Copy link
Member

Does Bluetooth work in general? The logs says there would be no adapter available.

What does hciconfig -a give?

@Zelex
Copy link
Author

Zelex commented Aug 18, 2021

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

@Zelex
Copy link
Author

Zelex commented Aug 18, 2021

this is straight up raspbian buster install. no changes.

@mzanetti
Copy link
Member

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: nymea/pi-gen@13413d9

So next guess would be a permission problem. Are you running it as a user or root?

@Zelex
Copy link
Author

Zelex commented Aug 18, 2021

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.

@Zelex
Copy link
Author

Zelex commented Aug 18, 2021

this looks maybe related RPi-Distro/pi-bluetooth#25

@Zelex
Copy link
Author

Zelex commented Aug 18, 2021

also RPi-Distro/pi-bluetooth#26

@Zelex
Copy link
Author

Zelex commented Aug 18, 2021

BerryLan works fine if you don't apt upgrade. Going to close this. not your problem!

@Zelex Zelex closed this as completed Aug 18, 2021
@mzanetti
Copy link
Member

Thanks for digging into this.

I've filed a pull request to update the README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants