FHEM Forum

FHEM - Hausautomations-Systeme => EnOcean => Thema gestartet von: choetzu am 21 April 2016, 15:13:57

Titel: Enocean PI auf Raspberry Pi3 wird nicht erkannt.
Beitrag von: choetzu am 21 April 2016, 15:13:57
Hallo,

ich habe auf meinem neuen Raspberry Pi3 mit EnOcean Pi (TCM310) soeben mittels https://debian.fhem.de FHEM installiert. Danach habe ich gemäss der Anleitung von robert.heinze http://www.fhemwiki.de/wiki/Raspberry_Pi_3:_GPIO-Port_Module_und_Bluetooth die Konfiguration vorgenommen.

Komisch ist nur, dass mein EnOcean Pi nicht vom FHEM erkannt wird.

2016.04.21 15:04:41 1: Including fhem.cfg
2016.04.21 15:04:41 3: telnetPort: port 7072 opened
2016.04.21 15:04:41 3: WEB: port 8083 opened
2016.04.21 15:04:41 3: WEBphone: port 8084 opened
2016.04.21 15:04:41 3: WEBtablet: port 8085 opened
2016.04.21 15:04:41 2: eventTypes: loaded 0 events from ./log/eventTypes.txt
2016.04.21 15:04:41 1: Including ./log/fhem.save
2016.04.21 15:04:41 1: usb create starting
2016.04.21 15:04:41 3: Probing CUL device /dev/ttyAMA0
2016.04.21 15:04:41 3: Can't open /dev/ttyAMA0: Keine Berechtigung
2016.04.21 15:04:41 1: usb create end
2016.04.21 15:04:41 2: SecurityCheck:  WEB,WEBphone,WEBtablet has no associated allowed device with basicAuth. telnetPort has no associated allowed device with password/globalpassword.  Restart FHEM for a new check if the problem is fixed, or set the global attribute motd to none to supress this message.
2016.04.21 15:04:41 0: Featurelevel: 5.7
2016.04.21 15:04:41 0: Server started with 9 defined entities (fhem.pl:11267/2016-04-17 perl:5.020002 os:linux user:fhem pid:1176)


Was ist da falsch? Ich habe ja kein CUL.

danke für die Hilfe

Lg c
Titel: Antw:Enocean PI auf Raspberry Pi3 wird nicht erkannt.
Beitrag von: choetzu am 21 April 2016, 15:21:53
habe nun gemäss Anleitung von EnOcean folgendes gemacht

anstelle von define TCM310_0 TCM 310 /dev/ttyAMA0@57600

habe ich

define TCM310_0 TCM 310 /dev/ttyS0@57600

gemacht.

Es hat mir zwar das Device hinzugefügt und auch initialisiert, doch stimmt alles so?

2016.04.21 15:18:35 1: Including fhem.cfg
2016.04.21 15:18:35 3: telnetPort: port 7072 opened
2016.04.21 15:18:35 3: WEB: port 8083 opened
2016.04.21 15:18:35 3: WEBphone: port 8084 opened
2016.04.21 15:18:35 3: WEBtablet: port 8085 opened
2016.04.21 15:18:35 2: eventTypes: loaded 0 events from ./log/eventTypes.txt
2016.04.21 15:18:35 3: Opening TCM310_0 device /dev/ttyS0
2016.04.21 15:18:35 3: Setting TCM310_0 serial parameters to 57600,8,N,1
2016.04.21 15:18:35 3: TCM310_0 device opened
2016.04.21 15:18:35 1: Including ./log/fhem.save
2016.04.21 15:18:38 3: TCM set TCM310_0 reset
2016.04.21 15:18:41 2: TCM TCM310_0 Timeout reading answer for set reset
2016.04.21 15:18:41 2: TCM TCM310_0 Attribute sendInterval 0 initialized
2016.04.21 15:18:41 3: TCM set TCM310_0 maturity 01
2016.04.21 15:18:44 2: TCM TCM310_0 Timeout reading answer for set maturity
2016.04.21 15:18:44 3: TCM set TCM310_0 mode 00
2016.04.21 15:18:47 2: TCM TCM310_0 Timeout reading answer for set mode
2016.04.21 15:18:47 3: TCM set TCM310_0 repeater 0000
2016.04.21 15:18:50 2: TCM TCM310_0 Timeout reading answer for set repeater
2016.04.21 15:18:50 3: TCM set TCM310_0 smartAckMailboxMax 0
2016.04.21 15:18:53 2: TCM TCM310_0 Timeout reading answer for set smartAckMailboxMax
2016.04.21 15:18:53 3: TCM get TCM310_0 baseID
2016.04.21 15:18:56 2: TCM TCM310_0 Timeout reading answer for get baseID
2016.04.21 15:18:56 3: TCM get TCM310_0 version
2016.04.21 15:18:59 2: TCM TCM310_0 Timeout reading answer for get version
2016.04.21 15:18:59 2: TCM TCM310_0 initialized
2016.04.21 15:18:59 1: usb create starting
2016.04.21 15:18:59 3: Probing CUL device /dev/ttyAMA0
2016.04.21 15:18:59 3: Can't open /dev/ttyAMA0: Keine Berechtigung
2016.04.21 15:18:59 1: usb create end
2016.04.21 15:18:59 2: SecurityCheck:  WEB,WEBphone,WEBtablet has no associated allowed device with basicAuth. telnetPort has no associated allowed device with password/globalpassword.  Restart FHEM for a new check if the problem is fixed, or set the global attribute motd to none to supress this message.
2016.04.21 15:18:59 0: Featurelevel: 5.7
2016.04.21 15:18:59 0: Server started with 10 defined entities (fhem.pl:11267/2016-04-17 perl:5.020002 os:linux user:fhem pid:1469)



mit folgendem Output/List

Internals:
   BaseID     00000000
   DEF        310 /dev/ttyS0@57600
   DeviceName /dev/ttyS0@57600
   FD         10
   LastID     00000000
   MODEL      ESP3
   NAME       TCM310_0
   NOTIFYDEV  global
   NR         20
   NTFY_ORDER 50-TCM310_0
   PARTIAL
   STATE      initialized
   TYPE       TCM
   Readings:
     2016-04-21 15:18:59   state           initialized
Attributes:
   sendInterval 0
   smartAckMailboxMax 0
Titel: Antw:Enocean PI auf Raspberry Pi3 wird nicht erkannt.
Beitrag von: robert.heinze am 22 April 2016, 07:54:42
Hallo!
Also wenn du es gemäß meiner Wiki-Anleitung  gemacht hast, dann liegt der EnOCeanPi auf ttyAMA0.
Kommentiere mal in der fhem.cfg
#defiine initialUsbCheck ....
aus. Damit wird das Suchen nach USB Geräten unterbunden.

So sollte das LOG-File aussehen
2016.04.22 03:26:02 1: Including fhem.cfg
2016.04.22 03:26:03 3: WEB: port 8083 opened
2016.04.22 03:26:03 3: WEBphone: port 8084 opened
2016.04.22 03:26:03 3: WEBtablet: port 8085 opened
2016.04.22 03:26:03 2: eventTypes: loaded 367 events from ./log/eventTypes.txt
2016.04.22 03:26:03 3: Opening TCM_ESP3_0 device /dev/ttyAMA0
2016.04.22 03:26:03 3: Setting TCM_ESP3_0 serial parameters to 57600,8,N,1
2016.04.22 03:26:03 3: TCM_ESP3_0 device opened
2016.04.22 03:26:04 2: EnOcean Cryptographic functions are not available.
2016.04.22 03:26:05 3: telnetPort: port 7072 opened
2016.04.22 03:26:05 1: Including ./log/fhem.save
2016.04.22 03:26:08 3: TCM set TCM_ESP3_0 reset
2016.04.22 03:26:08 2: TCM TCM_ESP3_0 RESPONSE: OK
2016.04.22 03:26:08 3: TCM set TCM_ESP3_0 smartAckMailboxMax 0
2016.04.22 03:26:11 2: TCM TCM_ESP3_0 Timeout reading answer for set smartAckMailboxMax
2016.04.22 03:26:11 2: TCM TCM_ESP3_0 smartAckMailboxMax 0 restored
2016.04.22 03:26:11 3: TCM set TCM_ESP3_0 repeater 0000
2016.04.22 03:26:11 2: TCM TCM_ESP3_0 RESPONSE: OK
2016.04.22 03:26:11 2: TCM TCM_ESP3_0 repeater 0000 restored
2016.04.22 03:26:11 3: TCM set TCM_ESP3_0 mode 00
2016.04.22 03:26:11 2: TCM TCM_ESP3_0 RESPONSE: NOT_SUPPORTED
2016.04.22 03:26:11 3: TCM set TCM_ESP3_0 maturity 01
2016.04.22 03:26:11 2: TCM TCM_ESP3_0 RESPONSE: OK
2016.04.22 03:26:11 2: TCM TCM_ESP3_0 maturity 01 restored
2016.04.22 03:26:11 3: TCM get TCM_ESP3_0 baseID
2016.04.22 03:26:11 2: TCM TCM_ESP3_0 RESPONSE: BaseID: FFBB7D80 RemainingWriteCycles: 0A
2016.04.22 03:26:11 3: TCM get TCM_ESP3_0 version
2016.04.22 03:26:11 2: TCM TCM_ESP3_0 RESPONSE: APIVersion: 02050000 APPVersion: 020A0000 ChipID: 019076FB ChipVersion: 454F0103 Desc: GATEWAYCTRL
2016.04.22 03:26:11 2: TCM TCM_ESP3_0 initialized
2016.04.22 03:26:11 0: Featurelevel: 5.7
2016.04.22 03:26:11 0: Server started with 61 defined entities (fhem.pl:11256/2016-04-16 perl:5.014002 os:linux user:fhem pid:32593)

Titel: Antw:Enocean PI auf Raspberry Pi3 wird nicht erkannt.
Beitrag von: choetzu am 22 April 2016, 16:55:47
herzlcihen dank.

ich habs geändert. jetzt kommt.

2016.04.22 16:52:14 3: TCM set TCM310_1 reset
2016.04.22 16:52:17 2: TCM TCM310_1 Timeout reading answer for set reset
2016.04.22 16:52:17 2: TCM TCM310_1 Attribute sendInterval 0 initialized
2016.04.22 16:52:17 3: TCM set TCM310_1 smartAckMailboxMax 0
2016.04.22 16:52:20 2: TCM TCM310_1 Timeout reading answer for set smartAckMailboxMax
2016.04.22 16:52:20 3: TCM set TCM310_1 mode 00
2016.04.22 16:52:23 2: TCM TCM310_1 Timeout reading answer for set mode
2016.04.22 16:52:23 3: TCM set TCM310_1 maturity 01
2016.04.22 16:52:26 2: TCM TCM310_1 Timeout reading answer for set maturity
2016.04.22 16:52:26 3: TCM set TCM310_1 repeater 0000
2016.04.22 16:52:29 2: TCM TCM310_1 Timeout reading answer for set repeater
2016.04.22 16:52:29 3: TCM get TCM310_1 baseID
2016.04.22 16:52:32 2: TCM TCM310_1 Timeout reading answer for get baseID
2016.04.22 16:52:32 3: TCM get TCM310_1 version
2016.04.22 16:52:35 2: TCM TCM310_1 Timeout reading answer for get version
2016.04.22 16:52:35 2: TCM TCM310_1 initialized


Ist zwar initialisiert aber er kann immer noch keine BaseID ziehen.

Auf TCM310_0 hab ich z.Z. den USB300 laufen, der funktioniert. Sobald der Enocean Pi funktioniert werde ich den USB300 entfernen...

Lg c
Titel: Antw:Enocean PI auf Raspberry Pi3 wird nicht erkannt.
Beitrag von: robert.heinze am 22 April 2016, 17:44:07
Hast du beide gleichzeitig drauf? EnOceanPi gesteckt und am USB den TCM310?
Ich sehe nirgendwo den TCM_ESP3_0
Titel: Antw:Enocean PI auf Raspberry Pi3 wird nicht erkannt.
Beitrag von: choetzu am 22 April 2016, 18:08:31
Ja, beide sind gesteckt!

et TCM310_1 reset
2016.04.22 16:52:17 2: TCM TCM310_1 Timeout reading answer for set reset
2016.04.22 16:52:17 2: TCM TCM310_1 Attribute sendInterval 0 initialized
2016.04.22 16:52:17 3: TCM set TCM310_1 smartAckMailboxMax 0
2016.04.22 16:52:20 2: TCM TCM310_1 Timeout reading answer for set smartAckMailboxMax
2016.04.22 16:52:20 3: TCM set TCM310_1 mode 00
2016.04.22 16:52:23 2: TCM TCM310_1 Timeout reading answer for set mode
2016.04.22 16:52:23 3: TCM set TCM310_1 maturity 01
2016.04.22 16:52:26 2: TCM TCM310_1 Timeout reading answer for set maturity
2016.04.22 16:52:26 3: TCM set TCM310_1 repeater 0000
2016.04.22 16:52:29 2: TCM TCM310_1 Timeout reading answer for set repeater
2016.04.22 16:52:29 3: TCM get TCM310_1 baseID
2016.04.22 16:52:32 2: TCM TCM310_1 Timeout reading answer for get baseID
2016.04.22 16:52:32 3: TCM get TCM310_1 version
2016.04.22 16:52:35 2: TCM TCM310_1 Timeout reading answer for get version
2016.04.22 16:52:35 2: TCM TCM310_1 initialized
2016.04.22 16:52:38 3: TCM set TCM_ESP3_0 reset
2016.04.22 16:52:38 2: TCM TCM_ESP3_0 RESPONSE: OK
2016.04.22 16:52:38 3: TCM set TCM_ESP3_0 smartAckMailboxMax 0
2016.04.22 16:52:41 2: TCM TCM_ESP3_0 Timeout reading answer for set smartAckMailboxMax
2016.04.22 16:52:41 2: TCM TCM_ESP3_0 smartAckMailboxMax 0 restored
2016.04.22 16:52:41 3: TCM set TCM_ESP3_0 mode 00
2016.04.22 16:52:41 2: TCM TCM_ESP3_0 RESPONSE: NOT_SUPPORTED
2016.04.22 16:52:41 3: TCM set TCM_ESP3_0 maturity 01
2016.04.22 16:52:41 2: TCM TCM_ESP3_0 RESPONSE: OK
2016.04.22 16:52:41 2: TCM TCM_ESP3_0 maturity 01 restored
2016.04.22 16:52:41 3: TCM set TCM_ESP3_0 repeater 0000
2016.04.22 16:52:41 2: TCM TCM_ESP3_0 RESPONSE: OK
2016.04.22 16:52:41 2: TCM TCM_ESP3_0 repeater 0000 restored
2016.04.22 16:52:41 3: TCM get TCM_ESP3_0 baseID
2016.04.22 16:52:41 2: TCM TCM_ESP3_0 RESPONSE: BaseID: FF9B9E80 RemainingWriteCycles: 0A
2016.04.22 16:52:41 3: TCM get TCM_ESP3_0 version
2016.04.22 16:52:41 2: TCM TCM_ESP3_0 RESPONSE: APIVersion: 02050000 APPVersion: 020A0000 ChipID: 0193373D ChipVersion: 454F0103 Desc: GATEWAYCTRL
2016.04.22 16:52:41 2: TCM TCM_ESP3_0 initialized
2016.04.22 16:52:41 3: netatmo_D70_ee_50_02_92_3a: I/O device is Netatmo
2016.04.22 16:52:41 3: netatmo_M02_00_00_02_b4_0a: I/O device is Netatmo
2016.04.22 16:52:41 3: netatmo_M03_00_00_00_5c_4e: I/O device is Netatmo
2016.04.22 16:52:41 2: SecurityCheck:  telnetPort has no associated allowed device with password/globalpassword.  Restart FHEM for a new check if the problem is fixed, or set the global attribute motd to none to supress this message.
2016.04.22 16:52:41 0: Featurelevel: 5.7
2016.04.22 16:52:41 0: Server started with 26 defined entities (fhem.pl:11267/2016-04-17 perl:5.020002 os:linux user:fhem pid:1035)
2016.04.22 16:52:41 2: Netatmo: http request failed: connect to to https://api.netatmo.net:443 timed out
2016.04.22 16:52:49 3: TCM get TCM310_1 baseID
2016.04.22 16:52:52 2: TCM TCM310_1 Timeout reading answer for get baseID
Titel: Antw:Enocean PI auf Raspberry Pi3 wird nicht erkannt.
Beitrag von: krikan am 22 April 2016, 18:11:49
Gibt es die Meldung "Can't open /dev/ttyAMA0: Keine Berechtigung" noch? Die könnte auf ein Rechteproblem hindeuten.
2 TCM ist auch nicht ideal, sollte aber nicht die Ursache sein.
Titel: Antw:Enocean PI auf Raspberry Pi3 wird nicht erkannt.
Beitrag von: robert.heinze am 22 April 2016, 20:20:41
Darf ich fragen, wozu du beide gesteckt hast. Ist nur eine zusätzliche Fehlerquelle ... Also raus mit dem Stick und schau, dass der EnOceanPi funkt. Ist sowieso die bessere Lösung.
Titel: Antw:Enocean PI auf Raspberry Pi3 wird nicht erkannt.
Beitrag von: choetzu am 22 April 2016, 20:57:25
ich hatte USB300 nachträglich installiert, weil der Enocean Pi nicht funktioniert..  Ich habe nun den USB300 entfernt und Raspberry Pi3 sowie Fhem komplett neu aufgesetzt. weiter habe ich erneut die anleitung gemäss http://www.fhemwiki.de/wiki/Raspberry_Pi_3:_GPIO-Port_Module_und_Bluetooth  gemacht.

hier nun der aktuelle Logfile Eintrag

2016.04.22 20:46:35 1: Including fhem.cfg
2016.04.22 20:46:35 3: telnetPort: port 7072 opened
2016.04.22 20:46:35 3: WEB: port 8083 opened
2016.04.22 20:46:35 3: WEBphone: port 8084 opened
2016.04.22 20:46:35 3: WEBtablet: port 8085 opened
2016.04.22 20:46:35 2: eventTypes: loaded 0 events from ./log/eventTypes.txt
2016.04.22 20:46:35 3: Opening TCM310_0 device /dev/ttyAMA0
2016.04.22 20:46:35 3: Setting TCM310_0 serial parameters to 57600,8,N,1
2016.04.22 20:46:35 3: TCM310_0 device opened
2016.04.22 20:46:35 1: Including ./log/fhem.save
2016.04.22 20:46:39 3: TCM set TCM310_0 reset
2016.04.22 20:46:42 2: TCM TCM310_0 Timeout reading answer for set reset
2016.04.22 20:46:42 2: TCM TCM310_0 Attribute sendInterval 0 initialized
2016.04.22 20:46:42 3: TCM set TCM310_0 smartAckMailboxMax 0
2016.04.22 20:46:45 2: TCM TCM310_0 Timeout reading answer for set smartAckMailboxMax
2016.04.22 20:46:45 3: TCM set TCM310_0 mode 00
2016.04.22 20:46:48 2: TCM TCM310_0 Timeout reading answer for set mode
2016.04.22 20:46:48 3: TCM set TCM310_0 repeater 0000
2016.04.22 20:46:51 2: TCM TCM310_0 Timeout reading answer for set repeater
2016.04.22 20:46:51 3: TCM set TCM310_0 maturity 01
2016.04.22 20:46:54 2: TCM TCM310_0 Timeout reading answer for set maturity
2016.04.22 20:46:54 3: TCM get TCM310_0 baseID
2016.04.22 20:46:57 2: TCM TCM310_0 Timeout reading answer for get baseID
2016.04.22 20:46:57 3: TCM get TCM310_0 version
2016.04.22 20:47:00 2: TCM TCM310_0 Timeout reading answer for get version
2016.04.22 20:47:00 2: TCM TCM310_0 initialized
2016.04.22 20:47:00 1: usb create starting
2016.04.22 20:47:00 1: usb create end



Und hier noch das Listing

Internals:
   BaseID     00000000
   DEF        310 /dev/ttyAMA0@57600
   DeviceName /dev/ttyAMA0@57600
   FD         10
   LastID     00000000
   MODEL      ESP3
   NAME       TCM310_0
   NOTIFYDEV  global
   NR         20
   NTFY_ORDER 50-TCM310_0
   PARTIAL
   STATE      initialized
   TYPE       TCM
   Readings:
     2016-04-22 20:47:00   state           initialized
Attributes:
   room       EnOcean
   sendInterval 0
   smartAckMailboxMax 0


wenn ich get BaseID eingebe kommt erneut Timeout....

Danke für Eure Hilfe

C
Titel: Antw:Enocean PI auf Raspberry Pi3 wird nicht erkannt.
Beitrag von: robert.heinze am 22 April 2016, 22:29:09
Da ist die config falsch.
Versuche mal händisch

define TCM_ESP3_0 TCM ESP3 /dev/ttyAMA0@57600
attr TCM_ESP3_0 icon system_fhem
attr TCM_ESP3_0 room EnOcean
attr TCM_ESP3_0 sendInterval 0

reinzustellen  in der fhem.cfg

Titel: Antw:Enocean PI auf Raspberry Pi3 wird nicht erkannt.
Beitrag von: choetzu am 22 April 2016, 23:08:46
danke für deine Geduld ;)

wenn ich die fhem.cfg händisch abändere kommt die Nachricht "Please define TCM310_0 first". Bei einem erneuten Restart dann nicht mehr.

und die BaseID kann ich nach wie vor nicht abrufen.. Timeout... komisch..

2016.04.22 23:02:11 3: telnetPort: port 7072 opened
2016.04.22 23:02:12 3: WEB: port 8083 opened
2016.04.22 23:02:12 3: WEBphone: port 8084 opened
2016.04.22 23:02:12 3: WEBtablet: port 8085 opened
2016.04.22 23:02:12 2: eventTypes: loaded 1 events from ./log/eventTypes.txt
2016.04.22 23:02:12 3: Opening TCM_ESP3_0 device /dev/ttyAMA0
2016.04.22 23:02:12 3: Setting TCM_ESP3_0 serial parameters to 57600,8,N,1
2016.04.22 23:02:12 3: TCM_ESP3_0 device opened
2016.04.22 23:02:12 1: Including ./log/fhem.save
2016.04.22 23:02:12 1: statefile: Please define TCM310_0 first
Please define TCM310_0 first

2016.04.22 23:02:15 3: TCM set TCM_ESP3_0 reset
2016.04.22 23:02:18 2: TCM TCM_ESP3_0 Timeout reading answer for set reset
2016.04.22 23:02:18 3: TCM set TCM_ESP3_0 repeater 0000
2016.04.22 23:02:21 2: TCM TCM_ESP3_0 Timeout reading answer for set repeater
2016.04.22 23:02:21 3: TCM set TCM_ESP3_0 mode 00
2016.04.22 23:02:24 2: TCM TCM_ESP3_0 Timeout reading answer for set mode
2016.04.22 23:02:24 3: TCM set TCM_ESP3_0 smartAckMailboxMax 0
2016.04.22 23:02:27 2: TCM TCM_ESP3_0 Timeout reading answer for set smartAckMailboxMax
2016.04.22 23:02:27 3: TCM set TCM_ESP3_0 maturity 01
2016.04.22 23:02:30 2: TCM TCM_ESP3_0 Timeout reading answer for set maturity
2016.04.22 23:02:30 3: TCM get TCM_ESP3_0 baseID
2016.04.22 23:02:33 2: TCM TCM_ESP3_0 Timeout reading answer for get baseID
2016.04.22 23:02:33 3: TCM get TCM_ESP3_0 version
2016.04.22 23:02:36 2: TCM TCM_ESP3_0 Timeout reading answer for get version
2016.04.22 23:02:36 2: TCM TCM_ESP3_0 initialized
2016.04.22 23:02:36 1: usb create starting
2016.04.22 23:02:36 1: usb create end
2016.04.22 23:02:36 2: Messages collected while initializing FHEM: statefile: Please define TCM310_0 first Please define TCM310_0 first
2016.04.22 23:02:36 0: Featurelevel: 5.7
2016.04.22 23:02:36 0: Server started with 10 defined entities (fhem.pl:11267/2016-04-17 perl:5.020002 os:linux user:fhem pid:6748)
2016.04.22 23:06:17 3: TCM get TCM_ESP3_0 baseID
2016.04.22 23:06:20 2: TCM TCM_ESP3_0 Timeout reading answer for get baseID
Titel: Antw:Enocean PI auf Raspberry Pi3 wird nicht erkannt.
Beitrag von: robert.heinze am 23 April 2016, 08:58:46
das please "define TCM310_0 first" ist klar, weil du es quasi aus der config genommen hast. FHEM aber quasi noch immer mit der alten geladenen arbeitet. aber wie du richtig sagst, ist es nach dem restart ok.

hast du aber den USB stick abgezogen? oder?
funktioniert bluetooth?
hciconfig
hcitool lescan

Was ist das Ergebnis von
sudo systemctl status bluetooth.service
und sudo systemctl status hciuart.service

könntest du mal deine komplette Fhem.cfg posten?
Titel: Antw:Enocean PI auf Raspberry Pi3 wird nicht erkannt.
Beitrag von: choetzu am 23 April 2016, 09:56:14
Hallo robert,

ja, USB300 ist nicht mehr angesteckt. Und wie gesagt, Raspberry und FHEM neu aufgesetzt


Hciconfig:
hci0: Type: BR/EDR  Bus: UART
BD Address: B8:27:EB:33:28:E6  ACL MTU: 1021:8  SCO MTU: 64:1
UP RUNNING
RX bytes:717 acl:0 sco:0 events:42 errors:0
TX bytes:1532 acl:0 sco:0 commands:42 errors:0


Hcitool lescan. Offensichtlich ein Berechtigungsfehler.
Set scan parameters failed: Operation not permitted

sudo systemctl status bluetooth.service
● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled)
   Active: active (running) since Fre 2016-04-22 20:26:00 CEST; 13h ago
     Docs: man:bluetoothd(8)
Main PID: 677 (bluetoothd)
   Status: "Running"
   CGroup: /system.slice/bluetooth.service
           └─677 /usr/lib/bluetooth/bluetoothd

Apr 22 20:26:00 raspberrypi bluetoothd[677]: Bluetooth daemon 5.23
Apr 22 20:26:00 raspberrypi systemd[1]: Started Bluetooth service.
Apr 22 20:26:00 raspberrypi bluetoothd[677]: Starting SDP server
Apr 22 20:26:00 raspberrypi bluetoothd[677]: Bluetooth management interface 1.10 initialized
Apr 22 20:26:00 raspberrypi bluetoothd[677]: Sap driver initialization failed.
Apr 22 20:26:00 raspberrypi bluetoothd[677]: sap-server: Operation not permitted (1)


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 Fre 2016-04-22 20:25:59 CEST; 13h ago
Main PID: 671 (hciattach)
   CGroup: /system.slice/hciuart.service
           └─671 /usr/bin/hciattach /dev/ttyAMA0 bcm43xx 921600 noflow -

Apr 22 20:25:54 raspberrypi systemd[1]: Starting Configure Bluetooth Modems connected by UART...
Apr 22 20:25:59 raspberrypi hciattach[417]: bcm43xx_init
Apr 22 20:25:59 raspberrypi hciattach[417]: Flash firmware /lib/firmware/BCM43430A1.hcd
Apr 22 20:25:59 raspberrypi hciattach[417]: Set Controller UART speed to 921600 bit/s
Apr 22 20:25:59 raspberrypi hciattach[417]: Device setup complete
Apr 22 20:25:59 raspberrypi systemd[1]: Started Configure Bluetooth Modems connected by UART.


und anbei die fhem.cfg... Danke für die Hilfe...
Titel: Antw:Enocean PI auf Raspberry Pi3 wird nicht erkannt.
Beitrag von: robert.heinze am 23 April 2016, 11:40:35
Hahhhh, du hast Bluetooth noch immer am gleichen Device laufen wie den EnOceanPi.
Siehe Output von hciuart.

Offensichtlich hast du den Schritt 6 der WIKI-Anweisung http://www.fhemwiki.de/wiki/Raspberry_Pi_3:_GPIO-Port_Module_und_Bluetooth
nicht durchgeführt, denn wenn du beide am ttyAMA0 laufen hast, dann gibt es natürlich einen Konflikt!
Titel: Antw:Enocean PI auf Raspberry Pi3 wird nicht erkannt.
Beitrag von: choetzu am 23 April 2016, 12:12:07
danke robert, aber ich muss dich leider weiter beanspruchen, denn ich habe Schritt 6 so durchgeführt und auch ein reboot gemacht.

hier der Auszug:


[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 921600 noflow -

[Install]
WantedBy=multi-user.target


Titel: Antw:Enocean PI auf Raspberry Pi3 wird nicht erkannt.
Beitrag von: robert.heinze am 23 April 2016, 12:45:27
So was könntest machen?

Ich nehme an, du hast alle Schritte befolgt aus dem WIKI inkl. dem Overlay setzen etc. in der /boot/config.txt und inkl. dem RPI-update?

Was könntest du noch machen?
1) in der /lib/systemd/system/hciuart.service evt. die Geschwindigkeit von 921600 auf z.b. 115200 runtersetzen
2) welches Netzteil verwendest du? sollte zumindest ein iPad Netzteil mit 2,1A sein -- WIFI funktioniert? Nehme an, du kommunizierst mit deiner 10.0.x.x Adresse via WIFI, oder?
3) du könntest in der /boot/config.txt versuchen statt dem hochtakten auf die minimum-Frequenz zu setzen.
       #in /boot/config.txt
#force_turbo=1
core_freq=250


in der fhem.cfg
würde ich noch folgendes machen # Disable this to avoid looking for new USB devices on startup
#define initialUsbCheck notify global:INITIALIZED usb create
Titel: Antw:Enocean PI auf Raspberry Pi3 wird nicht erkannt.
Beitrag von: robert.heinze am 23 April 2016, 12:47:45
und den Bluetooth-scan kannst mit sudo hcitool lescan machen ... dann würde er MAC-Adressen von deinen Geräten anzeigen, sofern Bluetooth funkt, wovon ich ausgehe, wenn auch am falschen device ...
Titel: Antw:Enocean PI auf Raspberry Pi3 wird nicht erkannt.
Beitrag von: choetzu am 23 April 2016, 13:07:18
Danke. geht leider immer noch nicht... grrr..

Zitat1) in der /lib/systemd/system/hciuart.service evt. die Geschwindigkeit von 921600 auf z.b. 115200 runtersetzen
done

Zitat2) welches Netzteil verwendest du? sollte zumindest ein iPad Netzteil mit 2,1A sein -- WIFI funktioniert? Nehme an, du kommunizierst mit deiner 10.0.x.x Adresse via WIFI, oder?
ich benutze dieses Netzteil https://www.pi-shop.ch/steckernetzteil-microusb-5v-2a. Sollte also OK sein, oder?

Zitat3) du könntest in der /boot/config.txt versuchen statt dem hochtakten auf die minimum-Frequenz zu setzen.
#in /boot/config.txt
#force_turbo=1
core_freq=250

done

# Disable this to avoid looking for new USB devices on startup
#define initialUsbCheck notify global:INITIALIZED usb create

done

Zitatund den Bluetooth-scan kannst mit sudo hcitool lescan machen

output: Set scan parameters failed: Operation not permitted

und jetzt zeigt TCM310 in FHEM disconnected an

hier das Listing: Internals:
   BaseID     00000000
   DEF        ESP3 /dev/ttyAMA0@57600
   DeviceName /dev/ttyAMA0@57600
   LastID     00000000
   MODEL      ESP3
   NAME       TCM_ESP3_0
   NOTIFYDEV  global
   NR         22
   NTFY_ORDER 50-TCM_ESP3_0
   PARTIAL
   STATE      disconnected
   TYPE       TCM
   Readings:
     2016-04-23 13:03:16   state           disconnected
Attributes:
   icon       system_fhem
   room       EnOcean
   sendInterval 0
   smartAckMailboxMax 0


und hier der login eintrag:
2016.04.23 13:03:15 1: Including fhem.cfg
2016.04.23 13:03:16 3: telnetPort: port 7072 opened
2016.04.23 13:03:16 3: WEB: port 8083 opened
2016.04.23 13:03:16 3: WEBphone: port 8084 opened
2016.04.23 13:03:16 3: WEBtablet: port 8085 opened
2016.04.23 13:03:16 2: eventTypes: loaded 2 events from ./log/eventTypes.txt
2016.04.23 13:03:16 3: Opening TCM_ESP3_0 device /dev/ttyAMA0
2016.04.23 13:03:16 3: Can't open /dev/ttyAMA0: Keine Berechtigung
2016.04.23 13:03:16 1: Including ./log/fhem.save
2016.04.23 13:03:16 2: TCM TCM_ESP3_0 not initialized
2016.04.23 13:03:16 2: SecurityCheck:  WEB,WEBphone,WEBtablet has no associated allowed device with basicAuth. telnetPort has no associated allowed device with password/globalpassword.  Restart FHEM for a new check if the problem is fixed, or set the global attribute motd to none to supress this message.
2016.04.23 13:03:16 0: Featurelevel: 5.7
2016.04.23 13:03:16 0: Server started with 12 defined entities (fhem.pl:11267/2016-04-17 perl:5.020002 os:linux user:fhem pid:993)
Titel: Antw:Enocean PI auf Raspberry Pi3 wird nicht erkannt.
Beitrag von: choetzu am 23 April 2016, 13:27:28
Achso, nochwas. Ob Wifi geht weiss ich nicht. Ich bin über ethernet verbunden..
Titel: Antw:Enocean PI auf Raspberry Pi3 wird nicht erkannt.
Beitrag von: robert.heinze am 23 April 2016, 13:33:59
Ladegerät passt ...
Hast du im FHEM noch immer den TCM310 drinnen? der ist doch auskommentiert?

Versuch mal das Problem zu isolieren.
In der Datei /etc/modprobe.d/raspi-blacklist.conf kannst du WIFI und BT getrennt deaktivieren. was du nicht willst einfach auskommentiern
#wifi
#blacklist brcmfmac
#blacklist brcmutil
#bt
blacklist btbcm
blacklist hci_uart


wenn du BT wegnimmst, solltest mal rasch sehen, ob der EnOceanPi nach dem reboot eine ID zurückliefert. denn dann hat er ja /dev/ttyAMA0 alleine ;)

Wobei deine RECHTE Logeinträge in FHEM für mich auch interessant sind ...
Ich habe modpath auf attr global modpath /opt/fhem
Titel: Antw:Enocean PI auf Raspberry Pi3 wird nicht erkannt.
Beitrag von: choetzu am 23 April 2016, 15:28:25
Danke. Soll ich zuerst die letzten Änderungen wieder rückgängig machen?

TCM310 hab ich immer noch drin für den Enocean Pi! Der andere (USB300) hab ich aber seit der Neuinstallation nicht mehr gesteckt!
Titel: Antw:Enocean PI auf Raspberry Pi3 wird nicht erkannt.
Beitrag von: robert.heinze am 23 April 2016, 18:24:42
das mit dem 310 verstehe ich nicht, ist doch der TCM_ESP3_0
bei mir nennt er sich in keiner Installation (aktuell 10 Installationen) TCM310, ist aber egal ...

Ja die Änderungen kannst du wieder rückgängig machen, sind aber grundsätzlich egal, weil sie alle BT betreffen und wenn du BT auf die Blacklist setzt kommt es nicht zum Zug ;)
Titel: Antw:Enocean PI auf Raspberry Pi3 wird nicht erkannt.
Beitrag von: choetzu am 23 April 2016, 21:16:16
hallo,
danke.

Zitat von: robert.heinze am 23 April 2016, 13:33:59
#wifi
#blacklist brcmfmac
#blacklist brcmutil
#bt
blacklist btbcm
blacklist hci_uart

ich hab soeben deinen Ratsschlag befolgt udn als erstes alles mit # gesetzt und dann alles auskommentiert. bei beiden Versionen kam "TCM310 disconnected" nach sudo reboot und im Logfile stand jeweils

2016.04.23 20:56:43 3: Opening TCM_ESP3_0 device /dev/ttyAMA0
2016.04.23 20:56:43 3: Can't open /dev/ttyAMA0: Keine Berechtigung
2016.04.23 20:56:43 1: Including ./log/fhem.save
2016.04.23 20:56:43 2: TCM TCM_ESP3_0 not initialized
2016.04.23 20:56:43 1: usb create starting
2016.04.23 20:56:43 1: usb create end


ich habe gemerkt dass bei jedem reboot das file /dev/ttyAMA0 auf 620 gesetzt wird. Offensichtlich macht ein sudo reboot meine ganze Rechte durch einander.

Wenn ich dann mit chmod 775 die Rechte setzte und rasch im FHem "get BaseID" mache kommt die ID, aber wenn ich es dann mit set setzen will kommt ein timeout. Auch wenn ich dann wieder auf "get BaseID" kommt auch timeout.

könnte es etwa evtl. an dem liegen? Hilft dir/euch das weiter?

hier noch der Logauszug..
2016.04.23 20:56:43 3: Opening TCM_ESP3_0 device /dev/ttyAMA0
2016.04.23 20:56:43 3: Can't open /dev/ttyAMA0: Keine Berechtigung
2016.04.23 20:56:43 1: Including ./log/fhem.save
2016.04.23 20:56:43 2: TCM TCM_ESP3_0 not initialized
2016.04.23 20:56:43 1: usb create starting
2016.04.23 20:56:43 1: usb create end
2016.04.23 20:56:43 2: SecurityCheck:  WEB,WEBphone,WEBtablet has no associated allowed device with basicAuth. telnetPort has no associated allowed device with password/globalpassword.  Restart FHEM for a new check if the problem is fixed, or set the global attribute motd to none to supress this message.
2016.04.23 20:56:43 0: Featurelevel: 5.7
2016.04.23 20:56:43 0: Server started with 13 defined entities (fhem.pl:11267/2016-04-17 perl:5.020002 os:linux user:fhem pid:1002)
2016.04.23 21:01:23 3: Setting TCM_ESP3_0 serial parameters to 57600,8,N,1
2016.04.23 21:01:23 1: /dev/ttyAMA0 reappeared (TCM_ESP3_0)
2016.04.23 21:01:36 3: TCM get TCM_ESP3_0 baseID
2016.04.23 21:01:36 2: TCM TCM_ESP3_0 get baseID: Bogus answer received: 050102DB00FFBC65000A7A
2016.04.23 21:02:04 3: TCM get TCM_ESP3_0 baseID
2016.04.23 21:02:07 2: TCM TCM_ESP3_0 Timeout reading answer for get baseID
Titel: Antw:Enocean PI auf Raspberry Pi3 wird nicht erkannt.
Beitrag von: robert.heinze am 23 April 2016, 22:14:14
hast du das beim fhem aufsetzen gemacht?
cd /opt && sudo chmod -R a+w fhem && sudo usermod -a -G tty pi && sudo usermod -a -G tty fhem
Titel: Antw:Enocean PI auf Raspberry Pi3 wird nicht erkannt.
Beitrag von: choetzu am 23 April 2016, 23:38:41
nein, habe ich leider nicht gemacht.. ich habe deshalb nohcmals alles aufgesetzt und nochmals alles von vorne gemacht.. wie gestern, nur mit diesem zusätzlichen Code. Leider keine Verbesserung. Es steht immer noch disconnected und folgende Zeilen im Logfile:

2016.04.23 23:29:27 3: Opening TCM_ESP3_0 device /dev/ttyAMA0
2016.04.23 23:29:27 3: Can't open /dev/ttyAMA0: Keine Berechtigung
2016.04.23 23:29:27 1: Including ./log/fhem.save
2016.04.23 23:29:27 2: TCM TCM_ESP3_0 not initialized



und wenn ich die Werte von /dev/ttyAM0 auf 775 stelle, wird zwar TCM310 initiert jedoch ohne BaseID.. wie oben beschrieben... Ich dreh langsam durch ;)
Titel: Antw:Enocean PI auf Raspberry Pi3 wird nicht erkannt.
Beitrag von: robert.heinze am 24 April 2016, 09:15:05
Tja die Rechte müssen mit der Rechtsvergabe in /opt erledigt sein.
Vielleicht noch etwas, das du vl. falsch machst. Der FHEM-Service sollte gestoppt werden für die Rechtevergabe, ansonsten habe ich ehrlich gesagt keine Idee mehr ...


sudo /etc/init.d/fhem stop
cd /opt && sudo chmod -R a+w fhem && sudo usermod -a -G tty pi && sudo usermod -a -G tty them
sudo /etc/init.d/fhem start
Titel: Antw:Enocean PI auf Raspberry Pi3 wird nicht erkannt.
Beitrag von: choetzu am 24 April 2016, 10:53:00
herzlichen dank.. ich habe es so gemacht.

nach einem Raspberry reboot werden die Rechte zurückgestellt auf

crw--w---- 1 root tty 204, 64 Apr 24 10:47 /dev/ttyAMA0

und beim Device TCM310 steht disconnected... was mach ich falsch, verd... nochmals ;) Geduld ist nicht grad meine Stärke merke ich...

lg
Titel: Antw:Enocean PI auf Raspberry Pi3 wird nicht erkannt.
Beitrag von: choetzu am 24 April 2016, 11:34:37
Hallo robert und Community

ich kriege es leider nicht hin ohne Bluetooth auszuschalten. Aber zumindest weiss ich nun, dass mein EnOcean Pi funktioniert ;) Und Bluetooth brauch ich z.Z. nicht.

Ich habe sämtliche Schritte aus http://www.fhemwiki.de/wiki/Raspberry_Pi_3:_GPIO-Port_Module_und_Bluetooth rückgängig gemacht und dann folgende Schritte vollzogen

Schritt 1
sudo raspi-config
9 Advanced options
A8 Disable Serial

reboot

Schritt 2
sudo nano /boot/config.txt

Folgende Linie am Ende einfügen
dtoverlay=pi3-disable-bt

Schritt 3
sudo systemctl disable hciuart

reboot

Und nun gehts auch:

Internals:
   BaseID     FFBC6500
   ChipID     019978CA
   DEF        ESP3 /dev/ttyAMA0@57600
   DeviceName /dev/ttyAMA0@57600
   FD         11
   LastID     FFBC657F
   MODEL      ESP3
   NAME       TCM_ESP3_0
   NOTIFYDEV  global
   NR         20
   NTFY_ORDER 50-TCM_ESP3_0
   PARTIAL
   STATE      initialized
   TYPE       TCM
   Readings:
     2016-04-24 11:21:54   baseID          BaseID: FFBC6500 RemainingWriteCycles: 0A
     2016-04-24 11:21:54   maturity        01
     2016-04-24 11:21:54   repeater        RepEnable: 00 RepLevel: 00
     2016-04-24 11:21:54   state           initialized
     2016-04-24 11:21:54   version         APIVersion: 02050000 APPVersion: 020A0000 ChipID: 019978CA ChipVersion: 454F0103 Desc: GATEWAYCTRL
Attributes:
   room       EnOcean
   sendInterval 0
   smartAckMailboxMax 0


robert, vielleicht bringen wir es doch noch irgendwie mit deiner Lösung hin... bei mir scheint es die Rechte durcheinander zu bringen und irgendwie nicht zu gehen... komisch..
Titel: Antw:Enocean PI auf Raspberry Pi3 wird nicht erkannt.
Beitrag von: robert.heinze am 24 April 2016, 11:43:33
 Alles klar. Eine Variante hätte ich noch anzubieten:

Schau dir bitte einmal diesen Service an und maskiere ihn falls er es nicht ist.


sudo systemctl mask serial-getty@ttyAMA0.service
Titel: Antw:Enocean PI auf Raspberry Pi3 wird nicht erkannt.
Beitrag von: choetzu am 24 April 2016, 19:00:03
hallo robert, mach ich gerne. Doch was meinst du mit "maskiere" (=#??) und soll ich dies machen nach http://www.fhemwiki.de/wiki/Raspberry_Pi_3:_GPIO-Port_Module_und_Bluetooth oder jetzt in der aktuellen Konfiguration?

Titel: Antw:Enocean PI auf Raspberry Pi3 wird nicht erkannt.
Beitrag von: robert.heinze am 25 April 2016, 10:32:56
hallo Christian,

also den Service habe ich quasi auf /dev/null gestellt also masked.

Zitatsudo systemctl status serial-getty@ttyAMA0.service
● serial-getty@ttyAMA0.service
   Loaded: masked (/dev/null)
   Active: inactive (dead)

dies erreichst du mit:
sudo systemctl mask serial-getty@ttyAMA0.service

tja, ansonsten lass es einfach ohne BT, wenn du es nicht brauchst. Ich brauche es, darum war es mir wichtig, es so hinzukriegen ...
Titel: Antw:Enocean PI auf Raspberry Pi3 wird nicht erkannt.
Beitrag von: PNinBB am 14 Mai 2016, 17:26:54
Vor allem @ robert.heinze
Ich bin dabei, von Raspberry 2B auf Raspberry 3B umzusteigen. Dabei habe ich auf den entsprechenden Wiki-Artikel berücksichtigt, allerdings bin ich noch nicht "durch" !
Ich habe eine Anfrage in https://forum.fhem.de/index.php/topic,53375.0.html (https://forum.fhem.de/index.php/topic,53375.0.html) gestellt und hoffe, dass ich eventuell hier ein paar Hinweise bekomme.
Besten Dank im Voraus und schöne Feiertage.
Peter

Titel: Antw:Enocean PI auf Raspberry Pi3 wird nicht erkannt.
Beitrag von: betateilchen am 05 Juni 2016, 18:33:24
Heute habe ich das auch auf einem RaspberryPi 3 durchgezogen, bei mir funktionieren WLAN, Bluetooth und enocean-pi nun problemlos.

Der Wiki Artikel dazu war eine gute Orientierungshilfe, anwenden kann man diesen Artikel aber auf aktuellen Raspbian Versionen nicht mehr, weil sich inzwischen nahezu alles geändert hat, was in dem Artikel beschrieben steht. (Angefangen bei den genannten Ax-Optionen in raspi-config, die es so nicht mehr gibt, über andere Kleinigkeiten)

Da ich aber zumindest verstanden habe, was gemacht werden muss, konnte ich das auf die aktuellen Gegebenheiten anwenden und entsprechend angepaßt hat alles funktioniert.

Falls es jemandem hilft, hier die von mir angepassten Dateien.


/boot/cmdline.txt


dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait



/boot/config.txt


# For more options and information see
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=off
#dtparam=i2s=on
dtparam=spi=off

# Uncomment this to enable the lirc-rpi module
#dtoverlay=lirc-rpi

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
dtparam=audio=on
gpu_mem=16
dtparam=spi=off
dtparam=i2c_arm=off

dtoverlay=pi3-miniuart-bt
enable_uart=1
force_turbo=1



/lib/systemd/system/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 921600 noflow -

[Install]
WantedBy=multi-user.target



An irgendwelchen Modulkonfigurationen oder blacklists habe ich überhaupt nichts geändert.
Titel: Antw:Enocean PI auf Raspberry Pi3 wird nicht erkannt.
Beitrag von: robert.heinze am 05 Juni 2016, 19:11:45
hallo betateilchen,

danke für deinen Kommentar zum Wiki-Eintrag.

Wobei ich mit Ausnahme der Änderung in der Raps-config auf Grund der Änderungen im Advanced-Menü, doch alles andere gemäß dem Wiki-Eintrag gepostet hast, oder  ;)
Wenn ich das so richtig sehe, dann ist dein "fast alles" schon ein bisschen relativ, oder?
Titel: Antw:Enocean PI auf Raspberry Pi3 wird nicht erkannt.
Beitrag von: betateilchen am 05 Juni 2016, 19:23:56
Naja, es sind schon noch ein paar andere Dinge anders, als im Wiki Artikel steht. Bei mir gab es beispielsweise auch kein /dev/ttyAMA0 in der hciuart.service

Wie schon gesagt: wenn man den wiki-Artikel inhaltlich versteht und ihn nicht nur als copy&paste-Vorlage betrachtet, ist der Artikel durchaus ok. Für Anwender, denen ein gewisses Grundverständnis (zu Linux, Kernel und Modulen) fehlt, könnte es aber schwierig sein, alles nachzuvollziehen. Das Ergebnis ist logischerweise das gleiche, aber der Weg dorthin hat sich geändert.

Um es deutlich zu sagen: Mir hat der Artikel definitiv geholfen. Danke!
Titel: Antw:Enocean PI auf Raspberry Pi3 wird nicht erkannt.
Beitrag von: robert.heinze am 05 Juni 2016, 19:32:15
Verbesserungsvorschläge sind gerne willkommen :)

Was stand in deiner hciuart.service? Ich habe jetzt festgestellt, dass bei unseren RPi3s jetzt auch ein udev auf /dev/serial1 implementiert wurde seitens der Entwickler. Hattest du /dev/serial0 dort stehen?

Wie gesagt, um den Wiki-Eintrag up2date zu haben, ist Feedback besser als "ihn so wie er ist als unanwendbar" zu bezeichnen. Davon leben Wiki's  ;)
Titel: Antw:Enocean PI auf Raspberry Pi3 wird nicht erkannt.
Beitrag von: choetzu am 24 Dezember 2016, 08:58:17
Zitat von: choetzu am 24 April 2016, 11:34:37


Schritt 1
sudo raspi-config
9 Advanced options
A8 Disable Serial

reboot

Schritt 2
sudo nano /boot/config.txt

Folgende Linie am Ende einfügen
dtoverlay=pi3-disable-bt

Schritt 3
sudo systemctl disable hciuart

reboot


Guten Morgen
ich musste grad meinen Raspi3 neu aufsetzen. Dabei ist mir aufgefallen, dass es Schritt 1 im raspi-config nicht mehr gibt. Hier nochmals die Schritte. Bluetooth geht danach aber nicht mehr..:

Schritt 1
TCM einrichten. In meinem Fall ist das:

# TCM GATEWAY
define TCM_ESP3_0 TCM ESP3 /dev/ttyAMA0@57600
attr TCM_ESP3_0 alias EnOceanPi_Gateway
attr TCM_ESP3_0 icon system_fhem
attr TCM_ESP3_0 sendInterval 0
attr TCM_ESP3_0 smartAckMailboxMax 0
attr TCM_ESP3_0 verbose 5


Schritt 2
sudo nano /boot/config.txt

Folgende Linie am Ende einfügen
dtoverlay=pi3-disable-bt

Schritt 3
sudo systemctl disable hciuart

Schritt 4
sudo systemctl mask serial-getty@ttyAMA0.service

Schritt 5
sudo reboot

In der Raspi-Einstellung muss unter Interfaces "Seriell" aktiviert sein..

so läufts :)
Titel: Antw:Enocean PI auf Raspberry Pi3 wird nicht erkannt.
Beitrag von: robert.heinze am 24 Dezember 2016, 09:14:12
Guten Morgen!

Wenn du hciuart auf serial1 setzt brauchst du kein disable und BT funkt weiterhin

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 Sam 2016-12-24 00:27:46 CET; 8h ago
  Process: 483 ExecStart=/usr/bin/hciattach /dev/serial1 bcm43xx 921600 noflow - (code=exited, status=0/SUCCESS)
Main PID: 728 (hciattach)
   CGroup: /system.slice/hciuart.service
           └─728 /usr/bin/hciattach /dev/serial1 bcm43xx 921600 noflow -


Frohes Fest
Robert
Titel: Antw:Enocean PI auf Raspberry Pi3 wird nicht erkannt.
Beitrag von: choetzu am 24 Dezember 2016, 13:26:52
Zitat von: robert.heinze am 24 Dezember 2016, 09:14:12

Wenn du hciuart auf serial1 setzt brauchst du kein disable und BT funkt weiterhin


hallo robert,

ich krieg das nach wie vor nicht hin. Ich bin dabei genau nach Wiki gegangen, aber es geht bei mir nicht..  Naja, Bluetooth ist bei mir nicht wirklich notwendig..

Lg und schönes Weihnachtsfest..