Kopp Free Control

Begonnen von ckmde, 12 Januar 2015, 23:06:40

Vorheriges Thema - Nächstes Thema

RaspII

Hi,
bzgl.:
define CUL_0 CUL /dev/ttyACM0@38400 1234

Die Bezeichnung ttyACM0 muss zu Deinem nanoCUL passen.
Du kannst herausbekommen welche Schnittstelle Dein Nanocul benutzt, indem Du vor dem einstecken im Verzeichnis /dev nachschaust welche Schnittstellen vorhanden sind. Am besten Du gehst wie folgt vor (an der Konsole):
cd /dev
ls

Danach den nanoCUL anschliessen und nochmal
ls
eintippen.
Jetzt findest Du eine neue Schnittstelle, deren Bezeichnung dann in die "define" Zeile übernehmen.

So, dann gibt es noch einen kleinen Fehler (muss mal nachschauen ob der auch in der Wiki drin ist:
attr Switch IODev CCD
"CCD" ist natürlich falsch (kommt von mir, ich habe auch ein CCD Device)
Die Zeile bitte wie folgt modifizieren:
attr Switch IODev CUL_0

Mit folgender Zeile:
define Switch KOPP_FC 00 C2AD 03
definierst Du den Tastencode="00", Transmittercode1="C2AD" und Tranmittercode2="03"
Auch das ist eigentlich nur ein Beispiel von mir. Du kannst diesen "FHEM-Sender" natürlich an die Steckdose anlernen (siehe Hinweis Feuerdrache), sinnvoller wäre m.E. wenn Du die/den selben Taste/Code benutzt wie Dein Handsender.
Wie Du den herausbekommst steht auch in der Wiki.
Der Vorteil:
Wenn Du Deinen Sender in FHEM "siehst", weisst Du auch dass alles (nanoCUL) funktioniert und richtig definiert ist.

So, das war jetzt etwas viel, hoffentlich hilft es Dir.

Gruß
RaspII


RaspII

teos

#76
welche soll ich dann nehmen?
Habe den direkt am Raspberry abgelesen

pi@raspberrypi /dev $ ls
autofs           loop5               ram14    tty10  tty32  tty54      vcs
block            loop6               ram15    tty11  tty33  tty55      vcs1
btrfs-control    loop7               ram2     tty12  tty34  tty56      vcs2
bus              loop-control        ram3     tty13  tty35  tty57      vcs3
cachefiles       MAKEDEV             ram4     tty14  tty36  tty58      vcs4
char             mapper              ram5     tty15  tty37  tty59      vcs5
console          mem                 ram6     tty16  tty38  tty6       vcs6
cpu_dma_latency  memory_bandwidth    ram7     tty17  tty39  tty60      vcsa
cuse             mmcblk0             ram8     tty18  tty4   tty61      vcsa1
disk             mmcblk0p1           ram9     tty19  tty40  tty62      vcsa2
fb0              mmcblk0p2           random   tty2   tty41  tty63      vcsa3
fd               net                 raw      tty20  tty42  tty7       vcsa4
full             network_latency     rfkill   tty21  tty43  tty8       vcsa5
fuse             network_throughput  root     tty22  tty44  tty9       vcsa6
gpiomem          null                serial   tty23  tty45  ttyACM0    vcsm
hwrng            ppp                 shm      tty24  tty46  ttyAMA0    vhci
input            ptmx                snd      tty25  tty47  ttyprintk  xconsole
kmsg             pts                 sndstat  tty26  tty48  uhid       zero
log              ram0                stderr   tty27  tty49  uinput
loop0            ram1                stdin    tty28  tty5   urandom
loop1            ram10               stdout   tty29  tty50  vc-cma
loop2            ram11               tty      tty3   tty51  vchiq
loop3            ram12               tty0     tty30  tty52  vcio
loop4            ram13               tty1     tty31  tty53  vc-mem
pi@raspberrypi /dev $

RaspII

#77
Hi,
hatte was übersehen, deshalb diesen Text nochmal überarbeitet.

ttyACM0
oder
ttyAMA0

Die richtige Schnittstelle dürfte vor dem Anstecken noch nicht vorhanden gewesen sein.
Hast Du noch einen anderen CUL am System?

Gruß
RaspII
RaspII

teos

ja habe ich, den Homematic Stick und Z-wave Stick.

Jetzt habe ohne die oben genannten Sticks

pi@raspberry ~ $ cd /dev
pi@raspberry /dev $ ls
autofs           loop4               ram12    tty1   tty30  tty51      vchiq
block            loop5               ram13    tty10  tty31  tty52      vcio
btrfs-control    loop6               ram14    tty11  tty32  tty53      vc-mem
bus              loop7               ram15    tty12  tty33  tty54      vcs
cachefiles       loop-control        ram2     tty13  tty34  tty55      vcs1
char             MAKEDEV             ram3     tty14  tty35  tty56      vcs2
console          mapper              ram4     tty15  tty36  tty57      vcs3
cpu_dma_latency  mem                 ram5     tty16  tty37  tty58      vcs4
cuse             memory_bandwidth    ram6     tty17  tty38  tty59      vcs5
disk             mmcblk0             ram7     tty18  tty39  tty6       vcs6
fb0              mmcblk0p1           ram8     tty19  tty4   tty60      vcsa
fd               mmcblk0p2           ram9     tty2   tty40  tty61      vcsa1
full             net                 random   tty20  tty41  tty62      vcsa2
fuse             network_latency     raw      tty21  tty42  tty63      vcsa3
gpiomem          network_throughput  root     tty22  tty43  tty7       vcsa4
hwrng            null                shm      tty23  tty44  tty8       vcsa5
input            ppp                 snd      tty24  tty45  tty9       vcsa6
kmsg             ptmx                sndstat  tty25  tty46  ttyAMA0    vhci
log              pts                 stderr   tty26  tty47  ttyprintk  xconsole
loop0            ram0                stdin    tty27  tty48  uhid       zero
loop1            ram1                stdout   tty28  tty49  uinput
loop2            ram10               tty      tty29  tty5   urandom
loop3            ram11               tty0     tty3   tty50  vc-cma
pi@raspberry /dev $

teos

Zitat von: RaspII am 08 Februar 2016, 19:04:47

Mit folgender Zeile:
define Switch KOPP_FC 00 C2AD 03
definierst Du den Tastencode="00", Transmittercode1="C2AD" und Tranmittercode2="03"
Auch das ist eigentlich nur ein Beispiel von mir. Du kannst diesen "FHEM-Sender" natürlich an die Steckdose anlernen (siehe Hinweis Feuerdrache), sinnvoller wäre m.E. wenn Du die/den selben Taste/Code benutzt wie Dein Handsender.
Wie Du den herausbekommst steht auch in der Wiki.
Der Vorteil:
Wenn Du Deinen Sender in FHEM "siehst", weist Du auch dass alles (nanoCUL) funktioniert und richtig definiert ist.
Die Wiki habe ich 2 Dutzend mal gelesen, aber Trotzdem schnalle ich es nicht wie ich die Codes bekomme...
Sehe ich den nanoCUL in der FHEM? so wie ich verstanden habe nicht, ich sehe nur die Sender!
Wie kriege ich raus welche Code mein Sender benutzt, es sind nur 4 (4 Tasten) und wie lerne ich die Aktoren an, muss ich die aus der Decke rausholen?
Beide Aktoren und die Steckdose sind am Taster (Sender ) bereits angelernt..

RaspII

Hi nochmal.
ttyAMA0 ist wohl die richtige Schnittstelle, wenn nur noch der nanoCUL angesteckt ist.
D.h. Deine Definition sollte wie folgt aussehen:
define CUL_0 CUL /dev/ttyAMA0@38400 1234

In FHEM gibt es den Raum "unsorted" oder "Alle Devices" oder so ähnlich (hab gerade keinen zugriff auf meinen FHEM Server)
Dort solltest Du ein Device "CUL_0" finden. Da drauf klicken und es sollten die Readings angezeigt werden.
Danach auf Deiner Fernbedienung eine Taste drücken (kurz) und die Anzeige refreshen.
Danach siehst Du die vom Sender gesendeten Roh Daten.
Alternativ müsstest Du die Rohdaten auch in der Logdatei finden.
Die Rohdaten fangen mit "kr" an, die Details findest Du in der Wiki

Melde Dich am besten mit den Rohdaten, sobald Du diese eingelesen hast.
Vorrausseztung ist natürlich, dass die Konfiguration stimmt (keine Fehlermeldung beim Abspeichern) und Dein nanoCUL problemlos läuft.
Gruß
RaspII
RaspII

teos

#81
Wenn ich die Tasten Drücke vom Sender Passiert nichts...
wie merke ich ob mein NanoCUL richtig läuft, zumindest wie nach der Wiki LED Blink jede sec.

Internals:
   CMDS
   Clients    :KOPP_FC:HMS:CUL_IR:STACKABLE_CC:
   DEF        /dev/ttyAMA0@38400 1234
   DeviceName /dev/ttyAMA0@38400
   FHTID      1234
   NAME       CUL_0
   NR         1249
   PARTIAL
   STATE      opened
   TYPE       CUL
   initString krS
   Matchlist:
     1:Kopp_FC  ^kr..................
     8:HMS      ^810e04....(1|5|9).a001
     D:CUL_IR   ^I............
     H:STACKABLE_CC ^\*
   Readings:
     2016-02-08 20:42:46   state           opened
     2016-02-08 21:19:40   version         No answer
Attributes:
   rfmode     KOPP_FC
   room       Test

(//)

RaspII

Schau mal nach ob Du anstelle CUL_0 auch einen Link auf CUL findest und mache dasselbe nochmal.

Sorry, aber genauer kann ich das ohne FHEM-Server nicht sagen.
RaspII

teos

habe nichts gefunden...
kein Thema, wenn du zugriff hast kannst dich noch mal melden..
Danke trotzdem.. ;)

(//)

Feuerdrache

Huhu,
wenn Du einen nanoCul hast, dann findest Du ihn unter /dev/ttyUSB0 oder /dev/ttyUSB1 (oder einer höheren Nummer). welche Nummer der Stick hat hängt von der Reihenfolge ab in der sie erkannt/gesteckt werden.
Alternativ findest Du das Device im Verzeichnis /dev/serial/by-id. Je nachdem was für ein USB Chip verbaut ist (CH340g oder FT323L) kann es sein das es keine eindeutige Id gibt,, dann kannst Du auch unter /dev/serial/by-path gucken. in beiden Verzeichnissen solltest alle Seriellen Interfaces finden.

Gruß FD
FHEM auf Raspberry PI B2
- CUL V3.4 mit culfw 1.65 für HM
- nanoCUL mit culfw 1.66 für KOPP FreeControl

teos

Also soll ich wieder den NanoCUL allein im Raspberry lassen und nochmal in den Verzeichnisse was du geschrieben hast schauen?

Feuerdrache

#86
Steck deine anderen Sticks an und gucke unter /dev/ nach was die größte Nummer für x bei ttyUSBx ist. Stecke deinen nanuCul an und guck, ob ein neues ttyUSB dazu gekommen ist. Das ist dann dein nanoCUL.

FD
FHEM auf Raspberry PI B2
- CUL V3.4 mit culfw 1.65 für HM
- nanoCUL mit culfw 1.66 für KOPP FreeControl

teos

#87


ohne den nanoCUL:


pi@raspberrypi /dev $ ls
autofs           loop5               ram14    tty10  tty32  tty54      vcs
block            loop6               ram15    tty11  tty33  tty55      vcs1
btrfs-control    loop7               ram2     tty12  tty34  tty56      vcs2
bus              loop-control        ram3     tty13  tty35  tty57      vcs3
cachefiles       MAKEDEV             ram4     tty14  tty36  tty58      vcs4
char             mapper              ram5     tty15  tty37  tty59      vcs5
console          mem                 ram6     tty16  tty38  tty6       vcs6
cpu_dma_latency  memory_bandwidth    ram7     tty17  tty39  tty60      vcsa
cuse             mmcblk0             ram8     tty18  tty4   tty61      vcsa1
disk             mmcblk0p1           ram9     tty19  tty40  tty62      vcsa2
fb0              mmcblk0p2           random   tty2   tty41  tty63      vcsa3
fd               net                 raw      tty20  tty42  tty7       vcsa4
full             network_latency     rfkill   tty21  tty43  tty8       vcsa5
fuse             network_throughput  root     tty22  tty44  tty9       vcsa6
gpiomem          null                serial   tty23  tty45  ttyACM0    vcsm
hwrng            ppp                 shm      tty24  tty46  ttyAMA0    vhci
input            ptmx                snd      tty25  tty47  ttyprintk  xconsole
kmsg             pts                 sndstat  tty26  tty48  uhid       zero
log              ram0                stderr   tty27  tty49  uinput
loop0            ram1                stdin    tty28  tty5   urandom
loop1            ram10               stdout   tty29  tty50  vc-cma
loop2            ram11               tty      tty3   tty51  vchiq
loop3            ram12               tty0     tty30  tty52  vcio
loop4            ram13               tty1     tty31  tty53  vc-mem
pi@raspberrypi /dev $


mit den nanoCUL:

pi@raspberrypi ~ $ cd /dev
pi@raspberrypi /dev $ ls
autofs           loop5               ram14    tty10  tty32  tty54      vcs
block            loop6               ram15    tty11  tty33  tty55      vcs1
btrfs-control    loop7               ram2     tty12  tty34  tty56      vcs2
bus              loop-control        ram3     tty13  tty35  tty57      vcs3
cachefiles       MAKEDEV             ram4     tty14  tty36  tty58      vcs4
char             mapper              ram5     tty15  tty37  tty59      vcs5
console          mem                 ram6     tty16  tty38  tty6       vcs6
cpu_dma_latency  memory_bandwidth    ram7     tty17  tty39  tty60      vcsa
cuse             mmcblk0             ram8     tty18  tty4   tty61      vcsa1
disk             mmcblk0p1           ram9     tty19  tty40  tty62      vcsa2
fb0              mmcblk0p2           random   tty2   tty41  tty63      vcsa3
fd               net                 raw      tty20  tty42  tty7       vcsa4
full             network_latency     rfkill   tty21  tty43  tty8       vcsa5
fuse             network_throughput  root     tty22  tty44  tty9       vcsa6
gpiomem          null                serial   tty23  tty45  ttyACM0    vcsm
hwrng            ppp                 shm      tty24  tty46  ttyAMA0    vhci
input            ptmx                snd      tty25  tty47  ttyprintk  xconsole
kmsg             pts                 sndstat  tty26  tty48  uhid       zero
log              ram0                stderr   tty27  tty49  uinput
loop0            ram1                stdin    tty28  tty5   urandom
loop1            ram10               stdout   tty29  tty50  vc-cma
loop2            ram11               tty      tty3   tty51  vchiq
loop3            ram12               tty0     tty30  tty52  vcio
loop4            ram13               tty1     tty31  tty53  vc-mem
pi@raspberrypi /dev $


beide sehen exakt gleich aus

RaspII

ok, dann muss ich passen.
Halte Dich bitte an Feuerdrache, ich kennt sich mit dem nanoCUL nicht aus und hätte erwartet er funktioniert wie ein CUL bzw. mein Selbstbau Mikro CUL.
RaspII

Feuerdrache

Das sieht so aus, als wenn Dein nanoCul gar nicht erkannt wird. Das würde ja zu deinen Problemen beim aufspielen der culfw  passen, oder?
Mach doch mal lsusb dann kann man sehen welche Geräte sich am USB Bus anmelden.

Gruß FD


Gesendet von meinem iPhone mit Tapatalk
FHEM auf Raspberry PI B2
- CUL V3.4 mit culfw 1.65 für HM
- nanoCUL mit culfw 1.66 für KOPP FreeControl