Hallo,
ich versuche seit ein paar Tagen Fhem dazu zu kriegen mein Enocean receiver zu erkennen. Mit beiden, also einem USB300 oder einem EnoceanPi, scheint die autocreate Funktion nicht zu greifen. Für irgendeinen Grund wird "TCM_ESP3_0" definiert anstatt "TCM310_0"... Und am Ende kommt immer "EnOcean Cryptographic functions are not available"
Zitat
2014.12.03 12:39:44 1: Including fhem.cfg
2014.12.03 12:39:44 3: telnetPort: port 7072 opened
2014.12.03 12:39:46 3: WEB: port 8083 opened
2014.12.03 12:39:46 3: WEBphone: port 8084 opened
2014.12.03 12:39:46 3: WEBtablet: port 8085 opened
2014.12.03 12:39:46 2: eventTypes: loaded 0 events from ./log/eventTypes.txt
2014.12.03 12:39:46 1: usb create starting
2014.12.03 12:39:49 3: Probing CUL device /dev/ttyAMA0
2014.12.03 12:39:49 3: Probing TCM_ESP3 device /dev/ttyAMA0
2014.12.03 12:39:49 3: Probing FRM device /dev/ttyAMA0
2014.12.03 12:39:55 3: Probing TCM_ESP3 device /dev/ttyUSB0
2014.12.03 12:39:55 1: define TCM_ESP3_0 TCM ESP3 /dev/ttyUSB0@57600
2014.12.03 12:39:55 3: Opening TCM_ESP3_0 device /dev/ttyUSB0
2014.12.03 12:39:55 3: Setting TCM_ESP3_0 baudrate to 57600
2014.12.03 12:39:55 3: TCM_ESP3_0 device opened
2014.12.03 12:39:55 1: usb create end
2014.12.03 12:39:55 2: SecurityCheck: WEB,WEBphone,WEBtablet has no basicAuth attribute. telnetPort has no password/globalpassword attribute. Restart FHEM for a new check if the problem is fixed, or set the global attribute motd to none to supress this message.
2014.12.03 12:39:55 0: Server started with 10 defined entities (version $Id: fhem.pl 6913 2014-11-08 10:32:44Z rudolfkoenig $, os linux, user fhem, pid 3079)
2014.12.03 12:40:46 0: Server shutdown
2014.12.03 12:41:07 1: Including fhem.cfg
2014.12.03 12:41:07 3: telnetPort: port 7072 opened
2014.12.03 12:41:10 3: WEB: port 8083 opened
2014.12.03 12:41:10 3: WEBphone: port 8084 opened
2014.12.03 12:41:10 3: WEBtablet: port 8085 opened
2014.12.03 12:41:11 2: eventTypes: loaded 0 events from ./log/eventTypes.txt
2014.12.03 12:41:11 1: Including ./log/fhem.save
2014.12.03 12:41:11 1: statefile: Please define TCM_ESP3_0 first
2014.12.03 12:41:11 1: usb create starting
2014.12.03 12:41:14 3: Probing CUL device /dev/ttyAMA0
2014.12.03 12:41:14 3: Probing TCM_ESP3 device /dev/ttyAMA0
2014.12.03 12:41:14 3: Probing FRM device /dev/ttyAMA0
2014.12.03 12:41:47 3: Probing TCM_ESP3 device /dev/ttyUSB0
2014.12.03 12:41:47 1: define TCM_ESP3_0 TCM ESP3 /dev/ttyUSB0@57600
2014.12.03 12:41:48 3: Opening TCM_ESP3_0 device /dev/ttyUSB0
2014.12.03 12:41:48 3: Setting TCM_ESP3_0 baudrate to 57600
2014.12.03 12:41:48 3: TCM_ESP3_0 device opened
2014.12.03 12:41:48 1: usb create end
2014.12.03 12:41:48 2: Error messages while initializing FHEM: statefile: Please define TCM_ESP3_0 first
2014.12.03 12:41:48 0: Server started with 10 defined entities (version $Id: fhem.pl 6913 2014-11-08 10:32:44Z rudolfkoenig $, os linux, user fhem, pid 1955)
2014.12.03 12:43:29 2: EnOcean Cryptographic functions are not available.
Es wird auch nicht besser wenn ich selbst "define TCM310_0 TCM 310 /dev/ttyAMA0@57600" in die "fhem.cfg" schreibe. Dann erscheint "TCM_ESP3_0" zwar nicht mehr, aber die Logfile zeigt dann "TCM310_0 RESPONSE: NOT_SUPPORTED" und am Ende wieder "EnOcean Cryptographic functions are not available".
Zitat
2014.12.03 14:59:22 1: Including fhem.cfg
2014.12.03 14:59:22 3: telnetPort: port 7072 opened
2014.12.03 14:59:22 3: WEB: port 8083 opened
2014.12.03 14:59:22 3: WEBphone: port 8084 opened
2014.12.03 14:59:22 3: WEBtablet: port 8085 opened
2014.12.03 14:59:22 2: eventTypes: loaded 2 events from ./log/eventTypes.txt
2014.12.03 14:59:22 3: Opening TCM310_0 device /dev/ttyAMA0
2014.12.03 14:59:22 3: Setting TCM310_0 baudrate to 57600
2014.12.03 14:59:22 3: TCM310_0 device opened
2014.12.03 14:59:22 1: Including ./log/fhem.save
2014.12.03 14:59:25 2: TCM set TCM310_0 reset
2014.12.03 14:59:25 2: TCM TCM310_0 RESPONSE: OK
2014.12.03 14:59:25 2: TCM TCM310_0 Attribute sendInterval 0 initialized
2014.12.03 14:59:25 2: TCM set TCM310_0 repeater 0000
2014.12.03 14:59:25 2: TCM TCM310_0 RESPONSE: OK
2014.12.03 14:59:25 2: TCM TCM310_0 repeater 0000 initialized
2014.12.03 14:59:25 2: TCM set TCM310_0 mode 00
2014.12.03 14:59:25 2: TCM TCM310_0 RESPONSE: NOT_SUPPORTED
2014.12.03 14:59:25 2: TCM set TCM310_0 maturity 01
2014.12.03 14:59:25 2: TCM TCM310_0 RESPONSE: OK
2014.12.03 14:59:25 2: TCM TCM310_0 maturity 01 initialized
2014.12.03 14:59:25 2: TCM get TCM310_0 baseID
2014.12.03 14:59:25 2: TCM TCM310_0 RESPONSE: BaseID: FFA1C080 RemainingWriteCycles: 0A
2014.12.03 14:59:25 2: TCM TCM310_0 initialized
2014.12.03 15:00:07 2: EnOcean Cryptographic functions are not available.
Hab es bis jetzt auch noch nicht geschaft "Enocean" im Menü links angezeigt zu bekommen.
Mein RaspberryPi ist Model B+ mit NOOBS Betriebssystem
Zitatpi@raspberrypi ~ $ uname -a
Linux raspberrypi 3.12.28+ #709 PREEMPT Mon Sep 8 15:28:00 BST 2014 armv6l GNU/Linux
Hab Fhem 5.5 und 5.6 ausprobiert und mehrere Installationsvarianten. Die "use aptitude" Variante, mit updated "sources.list" läuft z.Z. und alles scheint auf dem letzten Stand zu sein.
Ab und zu krieg ich auch den Fehler "telnetPort: Can't open server port at 7072: Address already in use. Exiting."... Wäre es möglich das mein Uni-internes IT-system den Port blockiert? RaspberryPi und PC sind allerdings beide innerhalb des Uni-netzwerks.
Vielen Dank im Voraus für jegliche Hilfe. Bitte sagt Bescheid, wenn mehr Informationen nötig sind.
Eldar
Der Name des Device ist echt ziemlich egal. Dann heißt er halt TCM_ESP3_0 statt TCM310_0.
Deinem Log nach zu urteilen wird der Stick jedenfalls richtig erkannt.
Probier doch mal folgendes: Geh in den Event Monitor, drücke dann einen EnOcean Schalter und schau ob der Schalter prinzipiell funktioniert.
Viele Grüße
Zephyr
Rudi hat das Namensschema für den TCM in autocreate im September(?) geändert. Jetzt ist es eben bspw. TCM_ESP3_0 statt TCM310_0, habe es im Wiki auch angepasst.
Der TCM landet nicht im Raum "EnOcean", sondern du findest es in "Everything" in der Gruppe "TCM", so wie im Wiki beschrieben: http://www.fhemwiki.de/wiki/EnOcean_Starter_Guide
Und ich kann Zephyr nur zustimmen, bei Dir sieht alles richtig aus. Setze ein Kommando "get <TCM-device> baseid" ab und Du siehst es auch....
Ansonsten empfiehlt sich UliMs Einsteiger-PDF und Wiki.
Versuchs doch erstmal einzeln.
Und achte auf die udev-Regel. Eine gute Erklärung dafür findest du bei Fischer-net.de (http://fischer-net.de) (suche nach udev)
Noch einmal im Detail/zusammengefasst:
Zitat von: eldar am 03 Dezember 2014, 17:05:59
Für irgendeinen Grund wird "TCM_ESP3_0" definiert anstatt "TCM310_0"...
Das liegt an der erwähnten Änderung im Namensschema von autocreate und ist egal. Die Namen im "define <name> . ." kann man sich beliebig aussuchen. (commandref/Einsteiger-PDF)
Zitat von: eldar am 03 Dezember 2014, 17:05:59
Und am Ende kommt immer "EnOcean Cryptographic functions are not available"
Damit sagt das EnOcean-Modul nur, dass Du das Perl module Crypt/Rijndael nicht installiert hast. Das brauchst Du aber nur, wenn Du Verschlüsselung nutzen möchtest. (siehe commandref.html#EnOcean)
Zitat von: eldar am 03 Dezember 2014, 17:05:59
Logfile zeigt dann "TCM310_0 RESPONSE: NOT_SUPPORTED"
Das wird in Deinen Log nur für den Befehl "set <TCM-device> mode 00" angezeigt. Da Du kein FSK Produkt mit erweiterten Protokoll nutzt, ist das korrekt (siehe commandref.html#TCM). Wenn Du einen USB400J (bspw. in Japan) nutzen würdest, hättest Du evtl. ein Problem. Auf alle anderen Befehle gibt es laut Log ein RESPONSE:OK
Zitat von: eldar am 03 Dezember 2014, 17:05:59
Hab es bis jetzt auch noch nicht geschaft "Enocean" im Menü links angezeigt zu bekommen.
Der Raum "EnOcean" wird erst beim ersten per autocreate angelegten Endgerät (Aktor/Sensor) angelegt. Das TCM-Gateway kommt dort nicht per autocreate hinein, sondern findet sich eben im Raum "Everything", weil es keine autocreate-Raumzuordnung hat. Wenn Du noch kein EnOcean-Endgeräte in Fhem definiert/angelernt hast (per autocreate oder manuell) siehst Du im Event-Monitor keine Events. Dort tauchen die Events von Endgeräten erst nach Definition/Anlernen in Fhem auf. Darum Funktionsfähigkeit des TCM ohne definierte/angelernte Endgeräte per "get <TCM-device> baseid" testen. Deine Logs zeigen aber, das es funktionieren sollte.
Zitat von: eldar am 03 Dezember 2014, 17:05:59
Ab und zu krieg ich auch den Fehler "telnetPort: Can't open server port at 7072: Address already in use. Exiting."
Das ist "normal", wenn Du "shutdown restart" zu sehr strapazierst. Findet sich irgendwo im Forum. Ignorier es und starte neu.
Berts Tipp nur ein Gateway sehe ich auch so, aber scheint nicht Dein Problem zu sein. (Frage mich eher, warum man 2 braucht?) Eigentlich sollte alles bei Dir funktioniert haben. Lege einfach einmal ein EnOcean-Endgerät an. Und bitte nutze nur eine per update akualisierte Fhem-Version. Spielereien mit verschiedenen Fhem-Versionsständen sind grds. unnötig.
Vielen Dank Zephyr, Krikan und Bert. Ihr hattet Recht. Es funktioniert. Ich hab den Anfängerfehler gemacht und bin davon ausgegangen, dass was kaputt ist, nur weil es nicht genauso wie in der Anleitung aussah. :-[
EnOcean tab und Geräte sind jetzt da. Im Event Monitor wird allerdings nie irgendwas angezeigt. Aber ich les mir Wiki und alles andere erst nochmal richtig durch... ;D
ZitatEnOcean tab und Geräte sind jetzt da. Im Event Monitor wird allerdings nie irgendwas angezeigt.
Das kann dan eigentlich nicht. Schalte auf den Event-Monitor und drücke einen bereits definierten Taster; dann solltest Du etwas sehen.
Wenn ich einen bereits definierten Schalter drücke passiert nichts im Event Monitor. Das einzige Mal, dass ich etwas im Event Monitor gesehen habe, war gleichzeitig mit dem Neustarten vom RaspberryPi (und das waren zwei Zeilen von einem Temperatursensor).
Hatte auch einen bzw. mehrere PERL-fehler, gefolgt von einem Checksum-fehler. Aber die haben sich anscheinend selbst aufgehoben. Also, damit hat es wahrscheinlich nichts zu tun, dass ich nichts im Event Monitor seh.
2014.12.04 14:29:32 1: PERL WARNING: Use of uninitialized value in string ne at ./FHEM/10_EnOcean.pm line 5936.
2014.12.04 14:29:41 1: Error: <IODev> has no TYPE
2014.12.04 14:33:37 1: Error: <IODev> has no TYPE
2014.12.04 14:33:38 1: Error: <IODev> has no TYPE
2014.12.04 14:33:38 1: Error: <IODev> has no TYPE
2014.12.04 14:33:41 1: Error: <IODev> has no TYPE
2014.12.04 14:33:41 1: Error: <IODev> has no TYPE
2014.12.04 14:33:41 1: Error: <IODev> has no TYPE
2014.12.04 14:33:42 1: Error: <IODev> has no TYPE
2014.12.04 14:33:42 1: Error: <IODev> has no TYPE
2014.12.04 14:33:42 1: Error: <IODev> has no TYPE
2014.12.04 14:33:42 1: Error: <IODev> has no TYPE
2014.12.04 15:22:02 1: PERL WARNING: Use of uninitialized value in hash element at ./FHEM/01_FHEMWEB.pm line 1273.
2014.12.04 15:22:02 1: Error: <IODev> has no TYPE
2014.12.04 15:22:02 1: Error: <IODev> has no TYPE
2014.12.04 15:22:02 1: Error: <IODev> has no TYPE
2014.12.04 15:22:02 1: Error: <IODev> has no TYPE
2014.12.04 15:22:03 1: Error: <IODev> has no TYPE
2014.12.04 15:22:03 1: Error: <IODev> has no TYPE
2014.12.04 15:22:03 1: Error: <IODev> has no TYPE
2014.12.04 15:22:03 1: Error: <IODev> has no TYPE
2014.12.04 15:22:03 1: Error: <IODev> has no TYPE
2014.12.04 15:22:13 1: Error: <IODev> has no TYPE
2014.12.04 15:22:13 1: Error: <IODev> has no TYPE
2014.12.04 15:22:13 1: Error: <IODev> has no TYPE
2014.12.04 15:22:14 1: Error: <IODev> has no TYPE
2014.12.04 15:22:14 1: Error: <IODev> has no TYPE
2014.12.04 15:22:14 1: Error: <IODev> has no TYPE
2014.12.04 15:22:14 1: Error: <IODev> has no TYPE
2014.12.04 15:22:16 1: Error: <IODev> has no TYPE
2014.12.04 15:22:16 1: Error: <IODev> has no TYPE
2014.12.04 15:22:16 1: Error: <IODev> has no TYPE
2014.12.04 15:22:16 1: Error: <IODev> has no TYPE
2014.12.04 15:22:16 1: Error: <IODev> has no TYPE
2014.12.04 15:22:16 1: Error: <IODev> has no TYPE
2014.12.04 15:22:16 1: Error: <IODev> has no TYPE
2014.12.04 15:22:16 1: Error: <IODev> has no TYPE
2014.12.04 15:22:16 1: Error: <IODev> has no TYPE
2014.12.04 15:22:23 1: Error: <IODev> has no TYPE
2014.12.04 15:22:23 1: Error: <IODev> has no TYPE
2014.12.04 15:22:23 1: Error: <IODev> has no TYPE
2014.12.04 15:22:23 1: Error: <IODev> has no TYPE
2014.12.04 15:22:24 1: Error: <IODev> has no TYPE
2014.12.04 15:22:24 1: Error: <IODev> has no TYPE
2014.12.04 15:22:24 1: Error: <IODev> has no TYPE
2014.12.04 15:22:24 1: Error: <IODev> has no TYPE
2014.12.04 15:22:24 1: Error: <IODev> has no TYPE
2014.12.04 15:22:26 1: Error: <IODev> has no TYPE
2014.12.04 15:22:26 1: Error: <IODev> has no TYPE
2014.12.04 15:22:26 1: Error: <IODev> has no TYPE
2014.12.04 15:22:26 1: Error: <IODev> has no TYPE
2014.12.04 15:22:26 1: Error: <IODev> has no TYPE
2014.12.04 15:22:26 1: Error: <IODev> has no TYPE
2014.12.04 15:22:26 1: Error: <IODev> has no TYPE
2014.12.04 15:22:26 1: Error: <IODev> has no TYPE
2014.12.04 15:22:26 1: Error: <IODev> has no TYPE
2014.12.04 15:22:27 1: Error: <IODev> has no TYPE
2014.12.04 15:22:27 1: Error: <IODev> has no TYPE
2014.12.04 15:22:27 1: Error: <IODev> has no TYPE
2014.12.04 15:22:27 1: Error: <IODev> has no TYPE
2014.12.04 15:22:27 1: Error: <IODev> has no TYPE
2014.12.04 15:22:27 1: Error: <IODev> has no TYPE
2014.12.04 15:22:27 1: Error: <IODev> has no TYPE
2014.12.04 15:22:28 1: Error: <IODev> has no TYPE
2014.12.04 15:22:28 1: Error: <IODev> has no TYPE
2014.12.04 15:22:28 1: Error: <IODev> has no TYPE
2014.12.04 15:22:28 1: Error: <IODev> has no TYPE
2014.12.04 15:22:28 1: Error: <IODev> has no TYPE
2014.12.04 15:22:28 1: Error: <IODev> has no TYPE
2014.12.04 15:22:29 1: Error: <IODev> has no TYPE
2014.12.04 15:22:29 1: Error: <IODev> has no TYPE
2014.12.04 15:22:29 1: Error: <IODev> has no TYPE
2014.12.04 15:22:29 1: Error: <IODev> has no TYPE
2014.12.04 15:22:29 1: Error: <IODev> has no TYPE
2014.12.04 15:22:29 1: Error: <IODev> has no TYPE
2014.12.04 15:22:29 1: Error: <IODev> has no TYPE
2014.12.04 15:22:29 1: Error: <IODev> has no TYPE
2014.12.04 15:22:29 1: Error: <IODev> has no TYPE
2014.12.04 15:22:30 1: Error: <IODev> has no TYPE
2014.12.04 15:22:30 1: Error: <IODev> has no TYPE
2014.12.04 15:22:30 1: Error: <IODev> has no TYPE
2014.12.04 15:22:30 1: Error: <IODev> has no TYPE
2014.12.04 15:22:30 1: Error: <IODev> has no TYPE
2014.12.04 15:22:30 1: Error: <IODev> has no TYPE
2014.12.04 15:22:30 1: Error: <IODev> has no TYPE
2014.12.04 15:22:30 1: Error: <IODev> has no TYPE
2014.12.04 15:22:30 1: Error: <IODev> has no TYPE
2014.12.04 15:22:30 1: Error: <IODev> has no TYPE
2014.12.04 15:22:30 1: Error: <IODev> has no TYPE
2014.12.04 15:22:30 1: Error: <IODev> has no TYPE
2014.12.04 15:22:30 1: Error: <IODev> has no TYPE
2014.12.04 15:22:30 1: Error: <IODev> has no TYPE
2014.12.04 15:22:50 1: Error: <IODev> has no TYPE
2014.12.04 15:22:51 1: Error: <IODev> has no TYPE
2014.12.04 15:22:51 1: Error: <IODev> has no TYPE
2014.12.04 15:22:51 1: Error: <IODev> has no TYPE
2014.12.04 15:22:51 1: Error: <IODev> has no TYPE
2014.12.04 15:22:51 1: Error: <IODev> has no TYPE
2014.12.04 15:22:51 1: Error: <IODev> has no TYPE
2014.12.04 15:22:51 1: Error: <IODev> has no TYPE
2014.12.04 15:22:51 1: Error: <IODev> has no TYPE
2014.12.04 15:22:51 1: Error: <IODev> has no TYPE
2014.12.04 15:31:23 1: Error: <IODev> has no TYPE
2014.12.04 15:31:29 1: Error: <IODev> has no TYPE
2014.12.04 15:31:30 1: Error: <IODev> has no TYPE
2014.12.04 15:31:30 1: Error: <IODev> has no TYPE
2014.12.04 15:31:32 1: Error: <IODev> has no TYPE
2014.12.04 15:31:32 1: Error: <IODev> has no TYPE
2014.12.04 15:31:32 1: Error: <IODev> has no TYPE
2014.12.04 15:31:32 1: Error: <IODev> has no TYPE
2014.12.04 15:31:32 1: Error: <IODev> has no TYPE
2014.12.04 15:31:32 1: Error: <IODev> has no TYPE
2014.12.04 15:31:32 1: Error: <IODev> has no TYPE
2014.12.04 15:31:32 1: Error: <IODev> has no TYPE
2014.12.04 15:31:33 1: Error: <IODev> has no TYPE
2014.12.04 15:31:36 1: Error: <IODev> has no TYPE
2014.12.04 15:31:36 1: Error: <IODev> has no TYPE
2014.12.04 15:31:36 1: Error: <IODev> has no TYPE
2014.12.04 15:31:40 1: Error: <IODev> has no TYPE
2014.12.04 15:31:40 1: Error: <IODev> has no TYPE
2014.12.04 15:31:40 1: Error: <IODev> has no TYPE
2014.12.04 15:31:41 1: Error: <IODev> has no TYPE
2014.12.04 15:31:41 1: Error: <IODev> has no TYPE
2014.12.04 15:31:41 1: Error: <IODev> has no TYPE
2014.12.04 15:31:41 1: Error: <IODev> has no TYPE
2014.12.04 15:31:58 1: Error: <IODev> has no TYPE
2014.12.04 15:31:58 1: Error: <IODev> has no TYPE
2014.12.04 15:31:58 1: Error: <IODev> has no TYPE
2014.12.04 15:31:58 1: Error: <IODev> has no TYPE
2014.12.04 15:31:58 1: Error: <IODev> has no TYPE
2014.12.04 15:31:58 1: Error: <IODev> has no TYPE
2014.12.04 15:31:58 1: Error: <IODev> has no TYPE
2014.12.04 15:32:14 1: Error: <IODev> has no TYPE
2014.12.04 15:32:18 1: Error: <IODev> has no TYPE
2014.12.04 15:32:19 1: Error: <IODev> has no TYPE
2014.12.04 15:32:22 1: Error: <IODev> has no TYPE
2014.12.04 15:32:28 1: Error: <IODev> has no TYPE
2014.12.04 15:35:28 0: Server shutdown
2014.12.04 15:35:28 0: Strange call for typeless <IODev>: ShutdownFn
2014.12.04 15:35:46 1: Including fhem.cfg
2014.12.04 15:35:46 3: telnetPort: port 7072 opened
2014.12.04 15:35:56 1: TCM TCM_ESP3_0 wrong header checksum: got 02, computed 15
Ich habe gerade mal ausprobiert den Schalter ganz oft zu drücken während der RaspberryPi runterfährt. Und ja, dann seh ich eine A4 Seite bzw. 6 Sekunden Info im Event Monitor. Aber im Dauerbetrieb (jetzt auch nach dem Wiederhochfahren) ist der Event Monitor komplett leer.
Ich habe fast genau das gleiche Problem .
Der USB -Gateway USB300U nicht automatisch erkannt wird
Ich den USB- Gatway Konfiguration manuell eingeben.
Ich sehe keine Ereignisse , was auch immer ich tue. Ich sehe das gelbe LED Lichtblitz auf dem USB -Gateway Beim Drücken eines Schalters .
2014.12.09 20:54:34 1: Including fhem.cfg
2014.12.09 20:54:34 3: telnetPort: port 7072 opened
2014.12.09 20:54:35 3: WEB: port 8083 opened
2014.12.09 20:54:35 3: WEBphone: port 8084 opened
2014.12.09 20:54:35 3: WEBtablet: port 8085 opened
2014.12.09 20:54:36 2: eventTypes: loaded 0 events from ./log/eventTypes.txt
2014.12.09 20:54:36 1: usb create starting
2014.12.09 20:54:37 3: Probing CUL device /dev/ttyAMA0
2014.12.09 20:54:38 3: Can't open /dev/ttyAMA0: Permission denied
2014.12.09 20:54:38 1: usb create end
2014.12.09 20:54:38 2: SecurityCheck: WEB,WEBphone,WEBtablet has no basicAuth attribute. telnetPort has no password/globalpassword attribute. Restart FHEM for a new check if the problem is fixed, or set the global attribute motd to none to supress this message.
2014.12.09 20:54:38 0: Server started with 9 defined entities (version $Id: fhem.pl 6913 2014-11-08 10:32:44Z rudolfkoenig $, os linux, user pi, pid 4787)
2014.12.09 21:23:05 0: Server shutdown
2014.12.09 21:23:22 1: Including fhem.cfg
2014.12.09 21:23:22 3: telnetPort: port 7072 opened
2014.12.09 21:23:23 3: WEB: port 8083 opened
2014.12.09 21:23:23 3: WEBphone: port 8084 opened
2014.12.09 21:23:23 3: WEBtablet: port 8085 opened
2014.12.09 21:23:23 2: eventTypes: loaded 0 events from ./log/eventTypes.txt
2014.12.09 21:23:23 1: Including ./log/fhem.save
2014.12.09 21:23:24 1: usb create starting
2014.12.09 21:23:25 3: Probing CUL device /dev/ttyAMA0
2014.12.09 21:23:25 3: Can't open /dev/ttyAMA0: Permission denied
2014.12.09 21:23:25 3: Probing TCM_ESP3 device /dev/ttyUSB0
2014.12.09 21:23:26 1: define TCM_ESP3_0 TCM ESP3 /dev/ttyUSB0@57600
2014.12.09 21:23:26 3: Opening TCM_ESP3_0 device /dev/ttyUSB0
2014.12.09 21:23:26 3: Setting TCM_ESP3_0 baudrate to 57600
2014.12.09 21:23:26 3: TCM_ESP3_0 device opened
2014.12.09 21:23:26 1: usb create end
2014.12.09 21:23:26 2: SecurityCheck: WEB,WEBphone,WEBtablet has no basicAuth attribute. telnetPort has no password/globalpassword attribute. Restart FHEM for a new check if the problem is fixed, or set the global attribute motd to none to supress this message.
2014.12.09 21:23:26 0: Server started with 10 defined entities (version $Id: fhem.pl 6913 2014-11-08 10:32:44Z rudolfkoenig $, os linux, user fhem, pid 2091)
2014.12.09 21:26:08 2: EnOcean Cryptographic functions are not available.
2014.12.09 21:49:04 0: Server shutdown
2014.12.09 21:49:22 1: Including fhem.cfg
2014.12.09 21:49:23 3: telnetPort: port 7072 opened
2014.12.09 21:49:25 3: WEB: port 8083 opened
2014.12.09 21:49:25 3: WEBphone: port 8084 opened
2014.12.09 21:49:25 3: WEBtablet: port 8085 opened
2014.12.09 21:49:25 2: eventTypes: loaded 0 events from ./log/eventTypes.txt
2014.12.09 21:49:25 1: Including ./log/fhem.save
2014.12.09 21:49:25 1: statefile: Please define TCM_ESP3_0 first
2014.12.09 21:49:25 1: usb create starting
2014.12.09 21:49:27 3: Probing CUL device /dev/ttyAMA0
2014.12.09 21:49:27 3: Probing TCM_ESP3 device /dev/ttyAMA0
2014.12.09 21:49:28 3: Probing FRM device /dev/ttyAMA0
2014.12.09 21:49:57 3: Probing TCM_ESP3 device /dev/ttyUSB0
2014.12.09 21:49:57 3: Probing TCM_ESP2 device /dev/ttyUSB0
2014.12.09 21:49:57 3: Probing FHZ device /dev/ttyUSB0
2014.12.09 21:49:57 3: Probing TRX device /dev/ttyUSB0
2014.12.09 21:49:58 3: Probing ZWDongle device /dev/ttyUSB0
2014.12.09 21:49:58 3: Probing FRM device /dev/ttyUSB0
2014.12.09 21:50:04 1: usb create end
2014.12.09 21:50:04 2: Error messages while initializing FHEM: statefile: Please define TCM_ESP3_0 first
2014.12.09 21:50:04 0: Server started with 9 defined entities (version $Id: fhem.pl 6913 2014-11-08 10:32:44Z rudolfkoenig $, os linux, user fhem, pid 2003)
2014.12.09 22:17:20 1: Including fhem.cfg
2014.12.09 22:17:20 3: telnetPort: port 7072 opened
2014.12.09 22:17:22 3: WEB: port 8083 opened
2014.12.09 22:17:22 3: WEBphone: port 8084 opened
2014.12.09 22:17:22 3: WEBtablet: port 8085 opened
2014.12.09 22:17:22 2: eventTypes: loaded 0 events from ./log/eventTypes.txt
2014.12.09 22:17:22 1: Including ./log/fhem.save
2014.12.09 22:17:22 1: statefile: Please define TCM_ESP3_0 first
2014.12.09 22:17:22 1: usb create starting
2014.12.09 22:17:24 3: Probing CUL device /dev/ttyAMA0
2014.12.09 22:17:25 3: Probing TCM_ESP3 device /dev/ttyAMA0
2014.12.09 22:17:25 3: Probing FRM device /dev/ttyAMA0
2014.12.09 22:18:04 3: Probing TCM_ESP3 device /dev/ttyUSB0
2014.12.09 22:18:04 1: define TCM_ESP3_0 TCM ESP3 /dev/ttyUSB0@57600
2014.12.09 22:18:04 3: Opening TCM_ESP3_0 device /dev/ttyUSB0
2014.12.09 22:18:04 3: Setting TCM_ESP3_0 baudrate to 57600
2014.12.09 22:18:04 3: TCM_ESP3_0 device opened
2014.12.09 22:18:04 1: usb create end
2014.12.09 22:18:04 2: Error messages while initializing FHEM: statefile: Please define TCM_ESP3_0 first
2014.12.09 22:18:04 0: Server started with 10 defined entities (version $Id: fhem.pl 6913 2014-11-08 10:32:44Z rudolfkoenig $, os linux, user fhem, pid 2016)
2014.12.09 22:22:03 2: EnOcean Cryptographic functions are not available.
2014.12.09 22:24:07 1: PERL WARNING: Use of uninitialized value in split at ./FHEM/92_FileLog.pm line 347.
2014.12.09 22:24:07 1: PERL WARNING: Use of uninitialized value $al[0] in concatenation (.) or string at ./FHEM/92_FileLog.pm line 371.
2014.12.09 22:38:12 0: Server shutdown
2014.12.09 22:38:30 1: Including fhem.cfg
2014.12.09 22:38:31 3: telnetPort: port 7072 opened
2014.12.09 22:38:33 3: WEB: port 8083 opened
2014.12.09 22:38:33 3: WEBphone: port 8084 opened
2014.12.09 22:38:33 3: WEBtablet: port 8085 opened
2014.12.09 22:38:33 2: eventTypes: loaded 0 events from ./log/eventTypes.txt
2014.12.09 22:38:34 3: Opening TCM_ESP3_0 device /dev/ttyUSB0
2014.12.09 22:38:34 3: Setting TCM_ESP3_0 baudrate to 57600
2014.12.09 22:38:34 3: TCM_ESP3_0 device opened
2014.12.09 22:38:34 1: Including ./log/fhem.save
2014.12.09 22:38:37 2: TCM set TCM_ESP3_0 reset
2014.12.09 22:38:37 1: TCM TCM_ESP3_0 set reset: Bogus answer received: 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
2014.12.09 22:38:37 2: TCM TCM_ESP3_0 Attribute sendInterval 0 initialized
2014.12.09 22:38:37 2: TCM set TCM_ESP3_0 repeater 0000
2014.12.09 22:38:37 1: TCM TCM_ESP3_0 set repeater: Bogus answer received: 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
2014.12.09 22:38:37 2: TCM set TCM_ESP3_0 mode 00
2014.12.09 22:38:37 1: TCM TCM_ESP3_0 set mode: Bogus answer received: 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
2014.12.09 22:38:37 2: TCM set TCM_ESP3_0 maturity 01
2014.12.09 22:38:37 1: TCM TCM_ESP3_0 set maturity: Bogus answer received: 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
2014.12.09 22:38:37 2: TCM get TCM_ESP3_0 baseID
2014.12.09 22:38:37 1: TCM TCM_ESP3_0 get baseID: Bogus answer received: 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
2014.12.09 22:38:37 2: TCM TCM_ESP3_0 initialized
2014.12.09 22:38:37 1: usb create starting
2014.12.09 22:39:02 3: Probing CUL device /dev/ttyAMA0
2014.12.09 22:39:03 3: Probing TCM_ESP3 device /dev/ttyAMA0
2014.12.09 22:39:03 3: Probing FRM device /dev/ttyAMA0
2014.12.09 22:39:08 1: usb create end
2014.12.09 22:39:08 2: SecurityCheck: WEB,WEBphone,WEBtablet has no basicAuth attribute. telnetPort has no password/globalpassword attribute. Restart FHEM for a new check if the problem is fixed, or set the global attribute motd to none to supress this message.
2014.12.09 22:39:08 0: Server started with 10 defined entities (version $Id: fhem.pl 6913 2014-11-08 10:32:44Z rudolfkoenig $, os linux, user fhem, pid 2002)
2014.12.09 22:39:13 2: EnOcean Cryptographic functions are not available.
2014.12.09 22:55:21 0: Server shutdown
2014.12.09 22:55:40 1: Including fhem.cfg
2014.12.09 22:55:40 3: telnetPort: port 7072 opened
2014.12.09 22:55:42 3: WEB: port 8083 opened
2014.12.09 22:55:42 3: WEBphone: port 8084 opened
2014.12.09 22:55:42 3: WEBtablet: port 8085 opened
2014.12.09 22:55:42 2: eventTypes: loaded 2 events from ./log/eventTypes.txt
2014.12.09 22:55:43 3: Opening TCM_ESP3_0 device /dev/ttyUSB0
2014.12.09 22:55:43 3: Setting TCM_ESP3_0 baudrate to 57600
2014.12.09 22:55:43 3: TCM_ESP3_0 device opened
2014.12.09 22:55:43 1: Including ./log/fhem.save
2014.12.09 22:55:46 2: TCM set TCM_ESP3_0 reset
2014.12.09 22:55:46 2: TCM TCM_ESP3_0 RESPONSE: OK
2014.12.09 22:55:46 2: TCM set TCM_ESP3_0 repeater 0000
2014.12.09 22:55:46 2: TCM TCM_ESP3_0 RESPONSE: OK
2014.12.09 22:55:46 2: TCM TCM_ESP3_0 repeater 0000 initialized
2014.12.09 22:55:46 2: TCM set TCM_ESP3_0 mode 00
2014.12.09 22:55:46 2: TCM TCM_ESP3_0 RESPONSE: NOT_SUPPORTED
2014.12.09 22:55:46 2: TCM set TCM_ESP3_0 maturity 01
2014.12.09 22:55:46 2: TCM TCM_ESP3_0 RESPONSE: OK
2014.12.09 22:55:46 2: TCM TCM_ESP3_0 maturity 01 initialized
2014.12.09 22:55:46 2: TCM get TCM_ESP3_0 baseID
2014.12.09 22:55:46 1: TCM TCM_ESP3_0 wrong data checksum: got 0A, computed 05
2014.12.09 22:55:46 2: TCM TCM_ESP3_0 initialized
2014.12.09 22:55:46 1: usb create starting
2014.12.09 22:56:12 3: Probing CUL device /dev/ttyAMA0
2014.12.09 22:56:12 3: Probing TCM_ESP3 device /dev/ttyAMA0
2014.12.09 22:56:12 3: Probing FRM device /dev/ttyAMA0
2014.12.09 22:56:17 1: usb create end
2014.12.09 22:56:17 2: SecurityCheck: WEB,WEBphone,WEBtablet has no basicAuth attribute. telnetPort has no password/globalpassword attribute. Restart FHEM for a new check if the problem is fixed, or set the global attribute motd to none to supress this message.
2014.12.09 22:56:17 0: Server started with 10 defined entities (version $Id: fhem.pl 6913 2014-11-08 10:32:44Z rudolfkoenig $, os linux, user fhem, pid 2016)
2014.12.09 22:56:31 2: EnOcean Cryptographic functions are not available.
2014.12.09 23:17:34 1: /dev/ttyUSB0 disconnected, waiting to reappear (TCM_ESP3_0)
2014.12.09 23:17:34 3: Setting TCM_ESP3_0 baudrate to 57600
2014.12.09 23:17:34 1: /dev/ttyUSB0 reappeared (TCM_ESP3_0)
2014.12.09 23:21:09 1: /dev/ttyUSB0 disconnected, waiting to reappear (TCM_ESP3_0)
2014.12.09 23:21:09 3: Setting TCM_ESP3_0 baudrate to 57600
2014.12.09 23:21:09 1: /dev/ttyUSB0 reappeared (TCM_ESP3_0)
2014.12.09 23:21:29 1: /dev/ttyUSB0 disconnected, waiting to reappear (TCM_ESP3_0)
2014.12.09 23:21:29 3: Setting TCM_ESP3_0 baudrate to 57600
2014.12.09 23:21:29 1: /dev/ttyUSB0 reappeared (TCM_ESP3_0)
2014.12.10 00:15:21 1: Including fhem.cfg
2014.12.10 00:15:22 3: telnetPort: port 7072 opened
2014.12.10 00:15:24 3: WEB: port 8083 opened
2014.12.10 00:15:24 3: WEBphone: port 8084 opened
2014.12.10 00:15:24 3: WEBtablet: port 8085 opened
2014.12.10 00:15:24 2: eventTypes: loaded 6 events from ./log/eventTypes.txt
2014.12.10 00:15:25 3: Opening TCM_ESP3_0 device /dev/ttyUSB0
2014.12.10 00:15:25 3: Can't open /dev/ttyUSB0: No such file or directory
2014.12.10 00:15:25 1: Including ./log/fhem.save
2014.12.10 00:15:25 2: TCM TCM_ESP3_0 not initialized
2014.12.10 00:15:25 1: usb create starting
2014.12.10 00:15:26 3: Probing CUL device /dev/ttyAMA0
2014.12.10 00:15:26 3: Probing TCM_ESP3 device /dev/ttyAMA0
2014.12.10 00:15:27 3: Probing FRM device /dev/ttyAMA0
2014.12.10 00:15:32 1: usb create end
2014.12.10 00:15:32 2: SecurityCheck: WEB,WEBphone,WEBtablet has no basicAuth attribute. telnetPort has no password/globalpassword attribute. Restart FHEM for a new check if the problem is fixed, or set the global attribute motd to none to supress this message.
2014.12.10 00:15:32 0: Server started with 10 defined entities (version $Id: fhem.pl 6913 2014-11-08 10:32:44Z rudolfkoenig $, os linux, user fhem, pid 2022)
2014.12.10 04:23:37 3: Setting TCM_ESP3_0 baudrate to 57600
2014.12.10 04:23:37 1: /dev/ttyUSB0 reappeared (TCM_ESP3_0)
2014.12.10 04:25:19 2: EnOcean Cryptographic functions are not available.
attr global userattr devStateIcon devStateStyle icon sortby webCmd widgetOverride
attr global autoload_undefined_devices 1
attr global logfile ./log/fhem-%Y-%m.log
attr global modpath .
attr global motd SecurityCheck:\
\
WEB,WEBphone,WEBtablet has no basicAuth attribute.\
telnetPort has no password/globalpassword attribute.\
\
Restart FHEM for a new check if the problem is fixed,\
or set the global attribute motd to none to supress this message.\
attr global statefile ./log/fhem.save
attr global updateInBackground 1
attr global verbose 3
define telnetPort telnet 7072 global
define WEB FHEMWEB 8083 global
define WEBphone FHEMWEB 8084 global
attr WEBphone stylesheetPrefix smallscreen
define WEBtablet FHEMWEB 8085 global
attr WEBtablet stylesheetPrefix touchpad
# Fake FileLog entry, to access the fhem log from FHEMWEB
define Logfile FileLog ./log/fhem-%Y-%m.log fakelog
define autocreate autocreate
attr autocreate filelog ./log/%NAME-%Y.log
define eventTypes eventTypes ./log/eventTypes.txt
# Disable this to avoid looking for new USB devices on startup
define initialUsbCheck notify global:INITIALIZED usb create
define TCM_ESP3_0 TCM ESP3 /dev/ttyUSB0@57600
attr TCM_ESP3_0 sendInterval 0
Hallo Mike,
ich glaube generell wirst du mehr Aufmerksamkeit kriegen, wenn du ein neues Thema auf machst. Ich bin wie du siehst auch kein Experte, aber vielleicht ein paar Hinweise, die dir helfen könnten:
1.) Benutzt du nur ein USB300 oder auch einen EnOceanPi? In deinem Log taucht "ttyUSB0" und "ttyAMA0" auf, obwohl "ttyAMA0" sich meines Wissens nach nur auf den UART vom RaspberryPi bezieht...
2.) Du kannst den USB auf dem RaspberryPi austesten. Gib "lsusb" in die command line ein und du müsstest "Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC" sehen. Dann gib ein "sudo sty –F /dev/ttyUSB0 57600" gefolgt von "sudo hexdump < /dev/ttyUSB0" und du kannst empfangene Signale in der command line sehen.
3.) Wenn du auf "Everything" in FHEM drückst, siehst du dann TCM_ESP3_0? Wenn ja, klick da mal drauf und neben dem "attr" Knopf, wähle "learningMode" (anstatt "room") aus und dann "always" (anstatt "demand") and dann drück den "attr" Knopf. Wenn du jetzt ein EnOcean telegram sendest, müsste das automatisch gelernt werden, wenn alles funktioniert (was bei mir der Fall war, ohne dass ich's wusste.) ... Die "EnOcean" tab an der Seite wird nach dem Lernen vom ersten Gerät erst angelegt...
Ps: Zum Anfang muss in "fhem.cfg" eigentlich nichts manuell eingegeben werden. Falls du was geändert hast, versuch's vielleicht erst nochmal ohne.