"No default controller available" auf einem alten Pi 3 mit Stretch, benötigt für BLE-Temperatursensoren im Kühlraum
Von English mit KI übersetzt ·
Pharmaunternehmen, daher bin ich an das gebunden, was validiert ist: ein Pi 3B mit einem Raspbian-Stretch-Image, das unsere Validierungsgruppe vor Jahren freigegeben hat. Ein OS-Upgrade bedeutet Revalidierung, und das dauert Monate.Neue Anforderung: acht BLE-Temperatur-Tags in einem Kühlraum auslesen und an Hermetry weiterleiten. Derselbe Pi liest bereits einen Kühler über Modbus RTU an der seriellen Schnittstelle aus. Bluetooth ist einfach nicht vorhanden:
$ bluetoothctl
No default controller available
$ hciconfig
$ dmesg | grep -i blue
[ 6.112] Bluetooth: Core ver 2.22
[ 6.118] Bluetooth: HCI device and connection manager initialized
hci0 fehlt komplett. Fehlt mir ein Paket oder liegt ein Hardwaredefekt vor?
Pharma site, so I’m stuck with what’s validated: a Pi 3B running a Raspbian Stretch image our validation group signed off years ago. Upgrading the OS means re-validation, which means months.
New requirement: read eight BLE temperature tags in a cold room and forward them to Hermetry. Same Pi already reads a chiller over Modbus RTU on the serial header. Bluetooth simply isn’t there:
$ bluetoothctl
No default controller available
$ hciconfig
$ dmesg | grep -i blue
[ 6.112] Bluetooth: Core ver 2.22
[ 6.118] Bluetooth: HCI device and connection manager initialized
No hci0 at all. Am I missing a package or is this a hardware fault?
Von English mit KI übersetzt ·
Hast du schon einmal ein komplettes Ausschalten versucht, nicht nur einen Neustart? Hat bei meinem Pi einmal geholfen.
Have you tried a full power off, not just reboot? Fixed my Pi once.
Von English mit KI übersetzt ·
Ist pi-bluetooth installiert? Manche Minimal-Images lassen es weg.
Is pi-bluetooth installed? Some minimal images leave it out.
Von English mit KI übersetzt ·
Stromversorgung aus- und wieder eingeschaltet, ja. pi-bluetooth ist installiert. systemctl status hciuart meldet failed, „Failed to start Configure Bluetooth Modems connected by UART“.
Power cycled, yes. pi-bluetooth is installed. systemctl status hciuart says failed, „Failed to start Configure Bluetooth Modems connected by UART“.
Von English mit KI übersetzt ·
hciuart schlägt auf einem Pi 3 fehl, der über die serielle Schnittstelle auch Modbus bedient: Ich wette, wer das Modbus eingerichtet hat, hat dtoverlay=pi3-disable-bt in /boot/config.txt eingetragen, um die gute UART an GPIO14/15 zu bekommen. Dieses Overlay schaltet den BT-Chip komplett ab, daher hat hciuart nichts, womit es sprechen könnte.Beides ist möglich. Verwenden Sie auf Stretch das andere Overlay, das BT die Mini-UART gibt und den PL011 an der Schnittstelle belässt:
# /boot/config.txt
#dtoverlay=pi3-disable-bt
dtoverlay=pi3-miniuart-bt
core_freq=250
core_freq=250 hält den Takt der Mini-UART stabil, ohne diesen Wert wird BT unzuverlässig. Achten Sie außerdem darauf, dass console=serial0,115200 nicht in cmdline.txt steht. Starten Sie neu, führen Sie dann sudo systemctl restart hciuart aus, und hciconfig sollte hci0 anzeigen.Ihre Modbus-Seite verwendet weiterhin /dev/ttyAMA0, daher sollte der Chiller-Code nichts davon bemerken.
hciuart failing on a Pi 3 that also does Modbus on the serial header: I’d bet whoever set up the Modbus put dtoverlay=pi3-disable-bt in /boot/config.txt to get the good UART on GPIO14/15. That overlay switches the BT chip off completely, so hciuart has nothing to talk to.
You can have both. On Stretch use the other overlay, which gives BT the mini UART and keeps the PL011 on the header:
# /boot/config.txt
#dtoverlay=pi3-disable-bt
dtoverlay=pi3-miniuart-bt
core_freq=250
core_freq=250 keeps the mini UART’s clock stable, BT gets flaky without it. Also make sure console=serial0,115200 is not in cmdline.txt. Reboot, then sudo systemctl restart hciuart and hciconfig should show hci0.
Your Modbus side keeps /dev/ttyAMA0, so the chiller code shouldn’t notice.
Von English mit KI übersetzt ·
Genau das: pi3-disable-bt war mit dem Kommentar „for chiller“ aus dem Jahr 2019 vorhanden. Umgestellt auf pi3-miniuart-bt + core_freq=250, hci0 ist aktiv, alle acht Tags erscheinen bei einem Scan und die Abfrage des Kühlers hat keinen Takt verpasst. Nur eine Konfigurationsänderung, daher stuft die Validierung sie als geringfügige Änderung ein.
Exactly that, pi3-disable-bt was there with a comment „for chiller“ from 2019. Swapped to pi3-miniuart-bt + core_freq=250, hci0 is up, all eight tags show in a scan and the chiller polling didn’t miss a beat. Config change only, so validation treats it as a minor change.
- Du musst angemeldet sein, um auf dieses Thema antworten zu können.
Mitdiskutieren
Melde dich an, um Fragen zu stellen und zu beantworten, hilfreiche Beiträge mit „Gefällt mir“ zu markieren und die Antwort zu kennzeichnen, die dein Problem gelöst hat. Jeder Beitrag bringt Punkte und Stufen.

