Eski bir Pi 3'te Stretch ile "No default controller available" hatası; BLE soğuk oda etiketleri için gerekli
Yapay zekâ tarafından English dilinden çevrildi ·
İlaç sahasında çalıştığımız için yalnızca onaylı olanla yetinmek zorundayım: validasyon ekibimizin yıllar önce onayladığı bir Raspbian Stretch imajı çalıştıran bir Pi 3B. İşletim sistemini yükseltmek yeniden validasyon gerektirir, bu da aylar demek.Yeni gereksinim: bir soğuk odadaki sekiz BLE sıcaklık etiketini okuyup Hermetry’ye iletmek. Aynı Pi, seri porttan Modbus RTU üzerinden bir soğutucuyu zaten okuyor. Ama Bluetooth yok:
$ 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
Hiç hci0 yok. Eksik bir paket mi var, yoksa donanım arızası mı?
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?
Yapay zekâ tarafından English dilinden çevrildi ·
Sadece yeniden başlatma değil, tam bir kapatıp açma denediniz mi? Benim Pi’mi bir kez böyle düzeltmişti.
Have you tried a full power off, not just reboot? Fixed my Pi once.
Yapay zekâ tarafından English dilinden çevrildi ·
pi-bluetooth kurulu mu? Bazı minimal imajlarda bu paket bulunmuyor.
Is pi-bluetooth installed? Some minimal images leave it out.
Yapay zekâ tarafından English dilinden çevrildi ·
Güç döngüsü yapıldı, evet. pi-bluetooth kurulu. systemctl status hciuart komutu failed diyor, “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”.
Yapay zekâ tarafından English dilinden çevrildi ·
Seri header üzerinde Modbus da çalıştıran bir Pi 3’te hciuart başarısız oluyor: Modbus’u kuran kişinin GPIO14/15’teki iyi UART’ı kullanmak için /boot/config.txt dosyasına dtoverlay=pi3-disable-bt eklediğine bahse girerim. Bu overlay BT çipini tamamen kapatır, bu yüzden hciuart konuşacak hiçbir şey bulamaz.İkisini birden kullanabilirsiniz. Stretch’te diğer overlay’i kullanın; bu, BT’ye mini UART verir ve header üzerindeki PL011’i korur:
# /boot/config.txt
#dtoverlay=pi3-disable-bt
dtoverlay=pi3-miniuart-bt
core_freq=250
core_freq=250 mini UART’ın saatini kararlı tutar, bu olmadan BT dengesiz çalışır. Ayrıca console=serial0,115200 ifadesinin cmdline.txt içinde olmadığından emin olun. Yeniden başlatın, ardından sudo systemctl restart hciuart komutunu çalıştırın ve hciconfig hci0 göstermelidir.Modbus tarafınız /dev/ttyAMA0 kullanmaya devam eder, bu yüzden chiller kodu bunu fark etmemelidir.
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.
Yapay zekâ tarafından English dilinden çevrildi ·
Tam olarak öyle, pi3-disable-bt 2019’dan kalma “for chiller” yorumuyla orada duruyordu. pi3-miniuart-bt + core_freq=250 ile değiştirdim, hci0 çalışıyor, taramada sekiz etiketin tamamı görünüyor ve soğutucu sorgulaması hiç aksamadı. Yalnızca yapılandırma değişikliği olduğu için doğrulama bunu küçük bir değişiklik olarak değerlendiriyor.
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.
- Bu konuyu yanıtlamak için giriş yapmış olmalısınız.
Sohbete katılın
Soru sormak ve yanıtlamak, yararlı gönderileri beğenmek ve sorununuzu çözen yanıtı işaretlemek için oturum açın. Her katkı puan ve seviye kazandırır.

