EnOceanPi on ttyS0 for RaspberryPi 3

Begonnen von robert.heinze, 20 März 2016, 17:41:43

Vorheriges Thema - Nächstes Thema

robert.heinze

Ich versuche seit einigen Tagen den EnOceanPi via FHEM über ttyS0 zu adressieren, da es am Raspi 3 einen Konflikt mit Bluetooth gibt. Angeblich funktioniert es mit EnOceanPi via OpenHAB auf ttyS0 aber mit FHEM funkt's nicht ...

Irgendeine Idee für eine Lösung im FHEM????

Weitere Postings zu dem Thema:
https://www.element14.com/community/message/177510/l/re-raspberry-pi-3-und-enocean-pi-kompatibilitätsproblem?et=watches.email.thread#177510
oder
http://www.briandorey.com/post/Raspberry-Pi-3-UART-Boot-Overlay-Part-Two

Danke!

krikan

Habe Deine verlinkten Beiträge nicht durchgelesen, ins Blaue geraten, weil es mir bei einem ähnlichen Problem geholfen hat: https://forum.fhem.de/index.php/topic,50340.msg420835.html#msg420835

robert.heinze

Danke, hilft leider nichts, weil ich BT ja nicht "disablen" möchte. Das ist ja gerade der Pep des RPi3, dass er BT integriert hat  ;)

eiten

Hallo Robert,

versuch mal ein
core_freq=250

in der /boot/config.txt

Die Baudrate vom uart1 ist abhängig von der core-freq! Hab mich auch gerade mit dem SSC abgekämpft :)

Gruss, Edi

robert.heinze

Hallo Edi,

die core_freq=250 habe ich schon in der /boot/cmdline.txt eingefügt. Das hat bei mir leider nichts gebracht ....

Meine Settings:
/boot/config.txt
# Additional overlays and parameters are documented /boot/overlays/README
#dtoverlay=pi3-miniuart-bt-overlay
dtoverlay=pi3-miniuart-bt
force_turbo=1

# Enable audio (loads snd_bcm2835)
dtparam=audio=on
#using device_tree=bcm2709-rpi-2-b.dtb

/boot/cmdline.txt
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait core_freq=250

hciuart.service
[Unit]
Description=Configure Bluetooth Modems connected by UART
ConditionPathIsDirectory=/proc/device-tree/soc/gpio@7e200000/bt_pins
Before=bluetooth.service
After=dev-ttyS0.device

[Service]
Type=forking
ExecStart=/usr/bin/hciattach /dev/ttyS0 bcm43xx 115200 noflow -

[Install]
WantedBy=multi-user.target

Liebe Grüße Robert

eiten

#5
Ach so, du hast ja bluetooth auf ttyS0 umgebogen, dann musst Du in fhem ttyAMA0 wie bei den alten PI's nehmen. Das cpu_freq brauchst Du dann auch nicht mehr, da Bluetooth nun am Software-Serial hängt.

robert.heinze

Ja, das mache ich auch. habe im fhem in dieser form auch nicht das Problem, sondern leider mit Bluetooth. Kann leider nichts finden beim Scan. Denke, dass irgendwas auf tty0 nicht klappt und wollte es daher "zurückbiegen", klappt nur leider nicht, weil fhem den EnOceanPi nur auf ttyAMA0 akzeptiert ...  :'(

robert.heinze

hat es schon irgendjemand geschafft den EnoceanPi im FHEM auf ttyS0 anzusprechen (Default-serielles Interface am Raspberry 3!)???? Ich kriege es leider nicht hin, womit ich mich aktuell entscheiden muss. Bluetooth oder EnoceanPi.

So ein Sch...   >:(

klaus.schauer

Bitte mit ergänztem 98_autocreate  testen. Damit sollte EnOceanPI auch auf ttyS* per autocreate gefunden werden. Testen kann ich das leider nicht.

rudolfkoenig

Wenn es funktioniert, dann werde ich die Aenderung einchecken.

robert.heinze

perfekt, teste es morgen am Vormittag und gebe dir bescheid. Danke!  :)

rosenedi

Hi,

ja das wäre auch für mich interessant.

Hab endlich die ersten Gehversuche mit dem RPI 3 und Enocean PI + FUD61NPN gemacht.

Gruß

robert.heinze

Hallo,

also der Zugriff auf ttyS0 dürfte funktionieren, allerdings ist bei mir irgendwo noch immer der Haken drinnen ...
ein einziges Mal bei "masked Bluetooth und HCIUart" (obwohl HCIUART auf ttyAMA0 gesetzt), aber jetzt klappt es nicht einmal dann mehr ...

Fragt mich warum, ich habe keine Ahnung mehr ...


2016.03.31 22:51:27 3: Opening TCM_ESP3_0 device /dev/ttyS0
2016.03.31 22:51:27 3: Setting TCM_ESP3_0 serial parameters to 57600,8,N,1
2016.03.31 22:51:27 3: TCM_ESP3_0 device opened
2016.03.31 22:51:27 1: Including ./log/fhem.save
2016.03.31 22:51:30 3: TCM set TCM_ESP3_0 reset
2016.03.31 22:51:30 2: TCM TCM_ESP3_0 RESPONSE: OK
2016.03.31 22:51:30 3: TCM set TCM_ESP3_0 maturity 01
2016.03.31 22:51:33 2: TCM TCM_ESP3_0 Timeout reading answer for set maturity
2016.03.31 22:51:33 2: TCM TCM_ESP3_0 maturity 01 restored
2016.03.31 22:51:33 3: TCM set TCM_ESP3_0 mode 00
2016.03.31 22:51:33 2: TCM TCM_ESP3_0 RESPONSE: NOT_SUPPORTED
2016.03.31 22:51:33 3: TCM set TCM_ESP3_0 repeater 0000
2016.03.31 22:51:33 2: TCM TCM_ESP3_0 RESPONSE: OK
2016.03.31 22:51:33 2: TCM TCM_ESP3_0 repeater 0000 restored
2016.03.31 22:51:33 3: TCM get TCM_ESP3_0 baseID
2016.03.31 22:51:33 2: TCM TCM_ESP3_0 wrong data checksum: got 0A, computed B4
2016.03.31 22:51:33 3: TCM get TCM_ESP3_0 version
2016.03.31 22:51:33 2: TCM TCM_ESP3_0 get version: Bogus answer received: 33550021000226
2016.03.31 22:51:33 2: TCM TCM_ESP3_0 initialized
2016.03.31 22:51:33 0: Featurelevel: 5.7
2016.03.31 22:51:33 0: Server started with 7 defined entities (fhem.pl:11144/2016-03-29 perl:5.020002 os:linux user:fhem pid:633)
2016.03.31 22:52:07 3: TCM get TCM_ESP3_0 baseID
2016.03.31 22:52:07 2: TCM TCM_ESP3_0 wrong data checksum: got 0A, computed B4

klaus.schauer

Die Kommunikation mit dem EnOceanPi über ttyS0 scheint ja beim Start zu funktionieren.
Gibt es denn danach dauerhaft Fehlermeldungen wie "wrong data checksum"?
Wie verhält sich die Kommunikation nach Neustarts von Fhem und des Betriebssystems?

robert.heinze

Unverändert. Das Komische ist, dass die SET Kommandos durchgeführt werden und. Bei den GET Kommandos "Bogus" kommt ... Restart etc. beeinflussen es leider nicht

klaus.schauer

Gibt es die Kommunikationsprobleme auch mit EnoceanPi auf ttyAMA0, wenn Bluetooth und WLAN deaktiviert ist?

robert.heinze

nein, dann funktioniert es. WIFI funkt auch, aber BT auf ttyS0 eben nicht ...

robert.heinze

So noch einmal für all jene, die dieses Problem auch haben. Ich habe in meiner Config jetzt Bluetooth "umgebogen" auf ttyS0 und den Zugriff vom EnOceanPi via ttyAMA0 belassen.
Neben allen Overlay-Settings etc. ist eines ganz wichtig, damit es funktioniert. Es gibt ein offensichtliches Timing-Problem zwischen dem Bluetooth-Service und FHEM. Dies umgehe ich mit einem sleep 10 in /etc/init.d/fhem

Danach funkt bei mir integriertes Bluetooth & WiFi sowie der EnOceanPi via FHEM .... :)

klaus.schauer

Ich würde mich freuen, falls es zu der Installation von EnOceanPi auf einem RaspberryPi 3 ein kleines Wiki geben könnte.

krikan

Zitat von: klaus.schauer am 18 April 2016, 06:32:22
Ich würde mich freuen, falls es zu der Installation von EnOceanPi auf einem RaspberryPi 3 ein kleines Wiki geben könnte.

robert.heinze hat ein ausführliches HowTo zu "Verwendung von EnOceanPi in FHEM parallel zu Bluetooth mit Raspberry Pi 3" geschrieben und mir zur Verfügung gestellt. Ich habe das nach einem eigenen Einleitungstext in den Wiki-Artikel http://www.fhemwiki.de/wiki/Raspberry_Pi_3:_GPIO-Port_Module_und_Bluetooth per Copy/Paste übernommen.

Vielen Dank Robert für Deinen Beitrag zu FHEM.

Gruß, Christian

robert.heinze


outhouse

Zitat von: krikan am 19 April 2016, 09:05:56
Ich habe das nach einem eigenen Einleitungstext in den Wiki-Artikel http://www.fhemwiki.de/wiki/Raspberry_Pi_3:_GPIO-Port_Module_und_Bluetooth per Copy/Paste übernommen.

Die im WIKI beschriebene Methode funktioniert bei mir ausgezeichnet. Allerdings erhalte ich jetzt bei Bluetooth (bluetoothctl) folgende Fehlermeldung:

[bluetooth]# scan on
No default controller available

Gruss

Chris

Raspberry 4 B mit Raspberry Pi OS und FHEM-Image 6.3 von fhem.de
Cul CC 1101 V4 als CUL_HM
Cul V3.4 + V3.4 als RFR
enocean-pi

robert.heinze

Läuft der HCIUART-Service? Wenn ja, was ist das Ergebnis von
sudo systemctl status hciuart.service

Liebe Grüße Robert

outhouse

Zitat von: robert.heinze am 01 Januar 2017, 18:56:08
Läuft der HCIUART-Service? Wenn ja, was ist das Ergebnis von
sudo systemctl status hciuart.service

Liebe Grüße Robert

Hallo Robert

Wie es scheint, ist der HCIUART-Service nicht gelaufen. Nachdem ich deinen Code eingegeben habe, funktioniert es im Moment

Danke

Chris
Raspberry 4 B mit Raspberry Pi OS und FHEM-Image 6.3 von fhem.de
Cul CC 1101 V4 als CUL_HM
Cul V3.4 + V3.4 als RFR
enocean-pi

CrazyCreator

Ich hänge mich mal mit meinem Fehler mit ran:

Das ist die Ausgabe von status hciuart.service
pi@raspberrypi:~ $ sudo systemctl status hciuart.service
sudo: Hostname raspberrypi kann nicht aufgelöst werden
● hciuart.service - Configure Bluetooth Modems connected by UART
   Loaded: loaded (/lib/systemd/system/hciuart.service; enabled)
   Active: failed (Result: exit-code) since Sa 2017-01-07 12:15:44 CET; 3min 57s ago
  Process: 444 ExecStart=/usr/bin/hciattach /dev/ttyS0 bcm43xx 921600 noflow - (code=exited, status=1/FAILURE)

Jan 07 12:05:17 raspberrypi systemd[1]: Starting Configure Bluetooth Modems connected by UART...
Jan 07 12:15:44 raspberrypi hciattach[444]: Initialization timed out.
Jan 07 12:15:44 raspberrypi hciattach[444]: bcm43xx_init
Jan 07 12:15:44 raspberrypi systemd[1]: hciuart.service: control process exited, code=exited status=1
Jan 07 12:15:44 raspberrypi systemd[1]: Failed to start Configure Bluetooth Modems connected by UART.
Jan 07 12:15:44 raspberrypi systemd[1]: Unit hciuart.service entered failed state.
pi@raspberrypi:~ $

robert.heinze

Dein hciuart Service läuft nicht.
hast du schon sudo systemctl restart hciuart.service versucht?

Liebe Grüße Robert

CrazyCreator

Hab' jetzt einen Restart des Services gemacht, nun funktioniert es.

Wird der hciuart beim Systemstart mitgestartet?

robert.heinze

ja wird er ... manchmal scheitert es jedoch. ich habe einen watchdog laufen, der periodisch checkt und im Bedarfsfall einen restart service und in 2. Eskalation reboot macht

emilio_35

Hallo
ich habe mein Bloothos noch nicht zum laufen bekommen

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Feb  9 19:59:57 2017 from lenovo.fritz.box
pi@raspberrypi:~ $ sudo systemctl status hciuart.service
● hciuart.service - Configure Bluetooth Modems connected by UART
   Loaded: loaded (/lib/systemd/system/hciuart.service; enabled)
   Active: failed (Result: exit-code) since Thu 2017-02-09 00:26:27 CET; 19h ago
  Process: 406 ExecStart=/usr/bin/hciattach /dev/serial1 bcm43xx 921600 noflow -                                                        (code=exited, status=1/FAILURE)

Feb 09 00:26:27 raspberrypi hciattach[406]: Initialization timed out.
Feb 09 00:26:27 raspberrypi hciattach[406]: bcm43xx_init
Feb 09 00:26:27 raspberrypi systemd[1]: hciuart.service: control process exi...1
Feb 09 00:26:27 raspberrypi systemd[1]: Failed to start Configure Bluetooth ....
Feb 09 00:26:27 raspberrypi systemd[1]: Unit hciuart.service entered failed ....
Hint: Some lines were ellipsized, use -l to show in full.
pi@raspberrypi:~ $ sudo systemctl restart hciuart.service
Job for hciuart.service failed. See 'systemctl status hciuart.service' and 'journalctl -xn' for details.
pi@raspberrypi:~ $ sudo systemctl status hciuart.service
● hciuart.service - Configure Bluetooth Modems connected by UART
   Loaded: loaded (/lib/systemd/system/hciuart.service; enabled)
   Active: failed (Result: exit-code) since Thu 2017-02-09 20:15:38 CET; 11s ago
  Process: 2830 ExecStart=/usr/bin/hciattach /dev/serial1 bcm43xx 921600 noflow - (code=exited, status=1/FAILURE)

Feb 09 20:15:38 raspberrypi hciattach[2830]: Initialization timed out.
Feb 09 20:15:38 raspberrypi hciattach[2830]: bcm43xx_init
Feb 09 20:15:38 raspberrypi systemd[1]: hciuart.service: control process exited, code=exited status=1
Feb 09 20:15:38 raspberrypi systemd[1]: Failed to start Configure Bluetooth Modems connected by UART.
Feb 09 20:15:38 raspberrypi systemd[1]: Unit hciuart.service entered failed state.
pi@raspberrypi:~ $ sudo bluetoothctl
[bluetooth]# scan on
No default controller available
[bluetooth]#


Fhem Raspberry Pi, SPS, S7 315PN,VU+


emilio_35

#30
Ja bei mir war es etwas anders
siehe Bilder
Fhem Raspberry Pi, SPS, S7 315PN,VU+

robert.heinze


robert.heinze

Du kannst auch statt ttys0 serial1 in der hciuart.service versuchen. Hat zwar in der Vergangenheit aufs gleiche device geführt, aber wer weiß.

Otto123

#33
Die Verbindung kann man mit ls -l /dev/ser*überprüfen.

Für die richtige Einrichtung der Schnittstellen gibt es doch mittlerweile soviele Beschreibungen und beantwortete Fragen.  :-X

Eine falsche Grundeinrichtung würde ich nicht durch fummeln in der hciuart.service versuchen zu heilen.
Nur meine Meinung ;)

@emilio20 Die gleichen Fragen an mehreren Stellen stellen führt auch nicht zum Ziel   :o

Gruß Otto
Viele Grüße aus Leipzig  ⇉  nächster Stammtisch an der Lindennaundorfer Mühle
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7590,WRT3200ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266,MQTT,Zigbee,deconz

emilio_35

Hallo

ttys0 serial1 in der hciuart.servic


habe ich geändert, war am anfang auch so ich habe es nur zum test geändert.

Hier der auszug von Verbindungen
Fhem Raspberry Pi, SPS, S7 315PN,VU+

robert.heinze

Laufen die Bluetooth Services?

sudo systemctl status bluetooth.service
sudo systemctl status hciuart.service
sudo hciconfig


Du kannst mit sudo hciconfig hci0 up Bluetooth hochbringen, aber dazu müssen die Dienste laufen  ;)

emilio_35

Hallo
Bluetooth Services?
Schau dir mal die ausgabe an. da gibt es wohl einen Fehler.
Fhem Raspberry Pi, SPS, S7 315PN,VU+

robert.heinze

#37
Your hciuart service is the problem.
Two ideas:

1) did you already bring your RPi3 to the latest release
sudo rpi-update
sudo apt-get update
sudo apt-get upgrade


2) which power supply do you use? BT and/or WiFi can run into problems whenever you don't power the RPi3 with a strong enough PSU

Regards
Robert

PS: Sorry, dass ich dich englisch anspreche, kommt davon, wenn man den ganzen Tag ein englisches Dok schreibt ... ;)

emilio_35

Hallo
habe grade nur noch ????? im kopf.
Folgendes.

Raspberry an 2,5A Netzeil an LAN im Obergeschoss angeschlossen und BT geht.
Gleiches Netzteil, gleiches Kabel im EG an LAN angeschlossen BT geht nicht ?????????

Habe es jetzt mehrfach versuch und immer das gleiche. Ich bin ja nicht ganz bescheuert aber sowas hatte ich noch nicht.
Fhem Raspberry Pi, SPS, S7 315PN,VU+

robert.heinze

Hallo!

Tja, das klingt sehr strange .... Hast du WiFi aktiv? Würde versuchen diese weitere Stromverbrauchsquelle mal zu eliminieren, wenn du sie nicht unbedingt braucht. Zumindest zum Testen wäre es mal einen Versuch werd.

File /etc/modprobe.d/raspi-blacklist.conf
#wifi
blacklist brcmfmac
blacklist brcmutil
#bt
#blacklist btbcm
#blacklist hci_uart


einfach die raute bei den jeweiligen wifi oder bt blacklists weg und schon ist es nach einem reboot deaktiviert

Liebe Grüße Robert

emilio_35

#40
Hallo
habe folgendes herausgefunden.
An meinem PI ist ein Enocean Modul und ein USB Z-Wave Stick verbaut.
Starte ich da Pi neu und mach mehrfach einen  hciuart.service restart funktioniert BT siehe Bild raspberry pi ohne z-wave.
Allerdings muss ich dies nach jedem Neustart wiederholen.

Wenn der z-wave Stick angesteckt ist bekomme ich BT nicht zu laufen sieh CODE


login as: pi
pi@192.168.178.58's password:

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Feb 13 21:37:31 2017 from lenovo.fritz.box
pi@raspberrypi:~ $ sudo systemctl status hciuart.service
● hciuart.service - Configure Bluetooth Modems connected by UART
   Loaded: loaded (/lib/systemd/system/hciuart.service; enabled)
   Active: failed (Result: exit-code) since Mon 2017-02-13 21:42:31 CET; 2min 13                  s ago
  Process: 406 ExecStart=/usr/bin/hciattach /dev/serial1 bcm43xx 921600 noflow -                   (code=exited, status=1/FAILURE)

Feb 13 21:42:31 raspberrypi hciattach[406]: Initialization timed out.
Feb 13 21:42:31 raspberrypi hciattach[406]: bcm43xx_init
Feb 13 21:42:31 raspberrypi systemd[1]: hciuart.service: control process exi...1
Feb 13 21:42:31 raspberrypi systemd[1]: Failed to start Configure Bluetooth ....
Feb 13 21:42:31 raspberrypi systemd[1]: Unit hciuart.service entered failed ....
Hint: Some lines were ellipsized, use -l to show in full.
pi@raspberrypi:~ $ sudo systemctl restart hciuart.service
pi@raspberrypi:~ $ sudo systemctl status hciuart.service
● hciuart.service - Configure Bluetooth Modems connected by UART
   Loaded: loaded (/lib/systemd/system/hciuart.service; enabled)
   Active: active (running) since Mon 2017-02-13 21:44:58 CET; 4s ago
  Process: 819 ExecStart=/usr/bin/hciattach /dev/serial1 bcm43xx 921600 noflow -                   (code=exited, status=0/SUCCESS)
Main PID: 828 (hciattach)
   CGroup: /system.slice/hciuart.service
           └─828 /usr/bin/hciattach /dev/serial1 bcm43xx 921600 noflow -

Feb 13 21:44:58 raspberrypi hciattach[819]: bcm43xx_init
Feb 13 21:44:58 raspberrypi hciattach[819]: Flash firmware /lib/firmware/BCM...d
Feb 13 21:44:58 raspberrypi hciattach[819]: Set Controller UART speed to 921...s
Feb 13 21:44:58 raspberrypi hciattach[819]: Device setup complete
Feb 13 21:44:58 raspberrypi systemd[1]: Started Configure Bluetooth Modems c....
Hint: Some lines were ellipsized, use -l to show in full.
pi@raspberrypi:~ $ sudo bluetoothctl
[NEW] Controller B8:27:EB:12:B4:51 raspberrypi [default]
[bluetooth]# scan on
Discovery started
[bluetooth]# quit
[DEL] Controller B8:27:EB:12:B4:51 raspberrypi [default]
pi@raspberrypi:~ $ sudo systemctl restart hciuart.service
Job for hciuart.service failed. See 'systemctl status hciuart.service' and 'journalctl -xn' for details.
pi@raspberrypi:~ $ sudo systemctl status hciuart.service
● hciuart.service - Configure Bluetooth Modems connected by UART
   Loaded: loaded (/lib/systemd/system/hciuart.service; enabled)
   Active: failed (Result: exit-code) since Mon 2017-02-13 21:46:14 CET; 4s ago
  Process: 876 ExecStart=/usr/bin/hciattach /dev/serial1 bcm43xx 921600 noflow - (code=exited, status=1/FAILURE)
Main PID: 828 (code=exited, status=0/SUCCESS)

Feb 13 21:46:14 raspberrypi hciattach[876]: Initialization timed out.
Feb 13 21:46:14 raspberrypi hciattach[876]: bcm43xx_init
Feb 13 21:46:14 raspberrypi systemd[1]: hciuart.service: control process exited, code=exited...s=1
Feb 13 21:46:14 raspberrypi systemd[1]: Failed to start Configure Bluetooth Modems connected...RT.
Feb 13 21:46:14 raspberrypi systemd[1]: Unit hciuart.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.
pi@raspberrypi:~ $ sudo systemctl restart hciuart.service
Job for hciuart.service failed. See 'systemctl status hciuart.service' and 'journalctl -xn' for details.
pi@raspberrypi:~ $ sudo systemctl status hciuart.service
● hciuart.service - Configure Bluetooth Modems connected by UART
   Loaded: loaded (/lib/systemd/system/hciuart.service; enabled)
   Active: failed (Result: exit-code) since Mon 2017-02-13 21:46:57 CET; 3s ago
  Process: 896 ExecStart=/usr/bin/hciattach /dev/serial1 bcm43xx 921600 noflow - (code=exited, status=1/FAILURE)
Main PID: 828 (code=exited, status=0/SUCCESS)

Feb 13 21:46:57 raspberrypi hciattach[896]: Initialization timed out.
Feb 13 21:46:57 raspberrypi hciattach[896]: bcm43xx_init
Feb 13 21:46:57 raspberrypi systemd[1]: hciuart.service: control process exited, code=exited...s=1
Feb 13 21:46:57 raspberrypi systemd[1]: Failed to start Configure Bluetooth Modems connected...RT.
Feb 13 21:46:57 raspberrypi systemd[1]: Unit hciuart.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.
pi@raspberrypi:~ $ sudo systemctl restart hciuart.service
Job for hciuart.service failed. See 'systemctl status hciuart.service' and 'journalctl -xn' for details.
pi@raspberrypi:~ $ sudo systemctl status hciuart.service
● hciuart.service - Configure Bluetooth Modems connected by UART
   Loaded: loaded (/lib/systemd/system/hciuart.service; enabled)
   Active: failed (Result: exit-code) since Mon 2017-02-13 21:47:41 CET; 2s ago
  Process: 916 ExecStart=/usr/bin/hciattach /dev/serial1 bcm43xx 921600 noflow - (code=exited, status=1/FAILURE)
Main PID: 828 (code=exited, status=0/SUCCESS)

Feb 13 21:47:41 raspberrypi hciattach[916]: Initialization timed out.
Feb 13 21:47:41 raspberrypi hciattach[916]: bcm43xx_init
Feb 13 21:47:41 raspberrypi systemd[1]: hciuart.service: control process exited, code=exited...s=1
Feb 13 21:47:41 raspberrypi systemd[1]: Failed to start Configure Bluetooth Modems connected...RT.
Feb 13 21:47:41 raspberrypi systemd[1]: Unit hciuart.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.
pi@raspberrypi:~ $ sudo systemctl status hciuart.service
● hciuart.service - Configure Bluetooth Modems connected by UART
   Loaded: loaded (/lib/systemd/system/hciuart.service; enabled)
   Active: failed (Result: exit-code) since Mon 2017-02-13 21:47:41 CET; 13s ago
  Process: 916 ExecStart=/usr/bin/hciattach /dev/serial1 bcm43xx 921600 noflow - (code=exited, status=1/FAILURE)
Main PID: 828 (code=exited, status=0/SUCCESS)

Feb 13 21:47:41 raspberrypi hciattach[916]: Initialization timed out.
Feb 13 21:47:41 raspberrypi hciattach[916]: bcm43xx_init
Feb 13 21:47:41 raspberrypi systemd[1]: hciuart.service: control process exited, code=exited...s=1
Feb 13 21:47:41 raspberrypi systemd[1]: Failed to start Configure Bluetooth Modems connected...RT.
Feb 13 21:47:41 raspberrypi systemd[1]: Unit hciuart.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.
pi@raspberrypi:~ $ sudo systemctl status hciuart.service
7● hciuart.service - Configure Bluetooth Modems connected by UART
   Loaded: loaded (/lib/systemd/system/hciuart.service; enabled)
   Active: failed (Result: exit-code) since Mon 2017-02-13 21:47:41 CET; 21s ago
  Process: 916 ExecStart=/usr/bin/hciattach /dev/serial1 bcm43xx 921600 noflow - (code=exited, status=1/FAILURE)
Main PID: 828 (code=exited, status=0/SUCCESS)

Feb 13 21:47:41 raspberrypi hciattach[916]: Initialization timed out.
Feb 13 21:47:41 raspberrypi hciattach[916]: bcm43xx_init
Feb 13 21:47:41 raspberrypi systemd[1]: hciuart.service: control process exited, code=exited...s=1
Feb 13 21:47:41 raspberrypi systemd[1]: Failed to start Configure Bluetooth Modems connected...RT.
Feb 13 21:47:41 raspberrypi systemd[1]: Unit hciuart.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.
pi@raspberrypi:~ $ sudo systemctl restart hciuart.service
Job for hciuart.service failed. See 'systemctl status hciuart.service' and 'journalctl -xn' for details.
pi@raspberrypi:~ $ sudo systemctl status hciuart.service
● hciuart.service - Configure Bluetooth Modems connected by UART
   Loaded: loaded (/lib/systemd/system/hciuart.service; enabled)
   Active: failed (Result: exit-code) since Mon 2017-02-13 21:48:48 CET; 1s ago
  Process: 953 ExecStart=/usr/bin/hciattach /dev/serial1 bcm43xx 921600 noflow - (code=exited, status=1/FAILURE)
Main PID: 828 (code=exited, status=0/SUCCESS)

Feb 13 21:48:48 raspberrypi hciattach[953]: Initialization timed out.
Feb 13 21:48:48 raspberrypi hciattach[953]: bcm43xx_init
Feb 13 21:48:48 raspberrypi systemd[1]: hciuart.service: control process exited, code=exited...s=1
Feb 13 21:48:48 raspberrypi systemd[1]: Failed to start Configure Bluetooth Modems connected...RT.
Feb 13 21:48:48 raspberrypi systemd[1]: Unit hciuart.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.
pi@raspberrypi:~ $ ^C
pi@raspberrypi:~ $ ^C
pi@raspberrypi:~ $




Ich verwende jetzt erst mal wieder mein raspberry pi 2 und kaufe mir morgen einen BT Stick
Fhem Raspberry Pi, SPS, S7 315PN,VU+

robert.heinze

Ja ist echt ein Stromversorgungsthema. Ist leider etwas am Limit der RPI 3 mit seiner PSU ...

emilio_35

Hab oben noch mal die bilder mit z-wave angehängt.

Funktioniert Pi 2 mit Enocean , Z-Wave und BT Stick ?
Fhem Raspberry Pi, SPS, S7 315PN,VU+

robert.heinze

Gute Frage, musst ausprobieren. Verwende kein z-wave

emilio_35

#44
Hallo
habe heute mein Raspberry pi 2 neu installiert mit 2017-01-11-raspbian-jessie-lite. BT Funktioniert jetzt mit einem Stick.
Jedoch geht auch hir Enocean nicht mehr. Muss ich hier die gleichen Einstellungen wie am Raspberry pi 3 ändern ? Das Pi2 hat doch kein BT on board.
Fhem Raspberry Pi, SPS, S7 315PN,VU+

Otto123

Hi,

die UART ist das gleiche Thema. Also bis auf das overlay dtoverlay=pi3-miniuart-bt was Du nicht brauchst ist alles gleich.

Gruß Otto
Viele Grüße aus Leipzig  ⇉  nächster Stammtisch an der Lindennaundorfer Mühle
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7590,WRT3200ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266,MQTT,Zigbee,deconz

emilio_35

#46
Ok Werde ich versuchen
Super Danke hat geklappt alles Ok soweit erst mal
Fhem Raspberry Pi, SPS, S7 315PN,VU+