EnOceanPi on ttyS0 for RaspberryPi 3

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

Vorheriges Thema - Nächstes Thema

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+