EnOceanPi on ttyS0 for RaspberryPi 3

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

Vorheriges Thema - Nächstes Thema

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+