Originally posted by: <email address deleted>
Schönen guten Tag,
als Neuling in dieser Gruppe sofort die erste Frage:
Ich habe lange rumgesucht, um eine Lösung für mein Device::Serial-
Problem
auf meinem Router (OpenWrt auf TP-Link 1043) zu finden, in der
dortigen OpenWrt-Backfire -Version gibt es Modul nämlich nicht. Möchte
die CUL V3 nutzen, an der CCU mit CUx-Daemon hat sie funktioniert.
Jetzt bin ich auf den Patch im CVS gestoßen, der allerdings beim
ersten Versuch fehlschlägt:
E:\download\fhem\contrib>patch ..\FHEM\00_CUL.pm
remove_serialport_for_cul.patch
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|? remove_serialport_for_cul.patch
|Index: 00_CUL.pm
|===================================================================
|RCS file: /cvsroot/fhem/fhem/FHEM/00_CUL.pm,v
|retrieving revision 1.96
|diff -u -r1.96 00_CUL.pm
|--- 00_CUL.pm 17 Jul 2011 19:13:40 -0000 1.96
|+++ 00_CUL.pm 22 Jul 2011 18:20:38 -0000
--------------------------
Patching file ..\FHEM\00_CUL.pm using Plan A...
Hunk #1 failed at 941.
Hunk #2 failed at 954.
Hunk #3 succeeded at 993 with fuzz 2 (offset 4 lines).
Hunk #4 succeeded at 1010 (offset 4 lines).
Hunk #5 succeeded at 1074 (offset 25 lines).
Hunk #6 succeeded at 1067 (offset 4 lines).
2 out of 6 hunks failed--saving rejects to ..\FHEM\00_CUL.pm.rej
done
Und: Wie komme ich an das Device /dev/ttyUSB0?
Ich habe nur /dev/S0, /dev/ttyACM0.
Aber da kömmt halt:
2011.09.06 19:16:43 3: CUL opening CUL device /dev/ttyACM0
2011.09.06 19:28:24 2: FHEMWEB port 8083 opened
2011.09.06 19:28:24 2: FHEMWEB port 8084 opened
2011.09.06 19:28:24 2: FHEMWEB port 8085 opened
2011.09.06 19:28:25 0: Server started (version 5.1 from 2011-07-08
($Id:
fhem.pl,v 1.145 2011-07-07 08:46:28 rudolfkoenig Exp $), pid 1641)
root@seccy:~# Can't locate Device/SerialPort.pm in @INC (@INC
contains:
/overlay/usr/lib/perl5/5.10 . /usr/lib/perl5/5.10 . /usr/lib/
perl5/5.10
.) at /usr/share/fhem/FHEM/00_CUL.pm line 1048, <$fh> line 10.
Für jede Hilfe dankbar...
Bernhard
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
> Jetzt bin ich auf den Patch im CVS gestoßen, der allerdings beim
> ersten Versuch fehlschlägt:
Ist in der CVS schon eingebaut, siehe diskussion mit directio, bzw.
commandref.html Achtung: vorher sollte man mit stty pruefen, dass alle echo
flags mit "-" versehen sind (und notfalls diese entsprechend aendern).
> Ich habe nur /dev/S0, /dev/ttyACM0.
define MyCUL CUL /dev/ttyACM0@directio
Was liefert
perl -e 'print sin(1)'
zurueck?
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
Originally posted by: <email address deleted>
On 9 Sep., 15:06, Rudolf Koenig wrote:
> > Jetzt bin ich auf den Patch im CVS gesto en, der allerdings beim
> > ersten Versuch fehlschl gt:
>
> Ist in der CVS schon eingebaut, siehe diskussion mit directio, bzw.
> commandref.html Achtung: vorher sollte man mit stty pruefen, dass alle echo
> flags mit "-" versehen sind (und notfalls diese entsprechend aendern).
>
> > Ich habe nur /dev/S0, /dev/ttyACM0.
>
> define MyCUL CUL /dev/ttyACM0@directio
>
> Was liefert
> perl -e 'print sin(1)'
> zurueck?
root@seccy:~# perl -e 'print sin(1)'
0.841470984807896
Das log sagt beim Starten:
root@seccy:~# 2011.09.09 19:30:27 2: FHEMWEB port 8083 opened
2011.09.09 19:30:27 2: FHEMWEB port 8084 opened
2011.09.09 19:30:27 2: FHEMWEB port 8085 opened
2011.09.09 19:30:27 0: Server started (version =VERS= from =DATE=
($Id: fhem.pl,v 1.150 2011-08-16 18:06:38 rudolfkoenig Exp $), pid
4546)
Wenn ich allerdings die Zeile
#define MyCUL CUL /dev/ttyACM0@directio wieder aktiviere, dann wird
geloggt:
2011.09.09 19:36:07 2: wrong syntax: define CUL {none |
devicename[@baudrate] | devicename@directio | hostname:port}
2011.09.09 19:36:07 1: define: wrong syntax: define CUL {none |
devicename[@baudrate] | devicename@directio | hostname:port}
2011.09.09 19:36:07 2: FHEMWEB port 8083 opened
2011.09.09 19:36:07 2: FHEMWEB port 8084 opened
2011.09.09 19:36:07 2: FHEMWEB port 8085 opened
2011.09.09 19:36:07 1: configfile: wrong syntax: define CUL
{none | devicename[@baudrate] | devicename@directio | hostname:port}
2011.09.09 19:36:07 0: Server started (version =VERS= from =DATE=
($Id: fhem.pl,v 1.150 2011-08-16 18:06:38 rudolfkoenig Exp $), pid
4553)
Meine fhem.cfg sieht mal so aus:
#
# pgm2 / autocreate configfile. Take a look at the other examples for
more.
#
attr global logfile /var/log/fhem/fhem-%Y-%m.log
attr global modpath /usr/share/fhem # where our FHEM
directory is
attr global port 7072 global # our TCP/IP port
attr global statefile /var/log/fhem/fhem.save # where to save the
state of the devices
attr global verbose 3 # "normal" verbosity (min 1,
max 5)
#define CUL CUL /dev/ttyACM0 1234
#define FHZ FHZ /dev/USB0
define MyCUL CUL /dev/ttyACM0@directio
define WEB FHEMWEB 8083 global
define WEBphone FHEMWEB 8084 global
attr WEBphone smallscreen
define WEBtablet FHEMWEB 8085 global
attr WEBtablet touchpad
# Fake logfile, to access the global log
define Logfile FileLog /var/log/fhem/fhem-%Y-%m.log fakelog
define autocreate autocreate
attr autocreate autosave
attr autocreate device_room %TYPE
attr autocreate filelog /var/log/fhem/%NAME-%Y.log
attr autocreate weblink
attr autocreate weblink_room Plots
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
Originally posted by: <email address deleted>
Hallo,
du musst eine FHTID mit angeben. Die kannst du dir aussuchen, z.B.:
define MyCUL CUL /dev/ttyACM0@directio *1234*
Gruß
Eyk
Am 9. September 2011 19:41 schrieb bommelkopp
:
>
>
> On 9 Sep., 15:06, Rudolf Koenig wrote:
> > > Jetzt bin ich auf den Patch im CVS gesto en, der allerdings beim
> > > ersten Versuch fehlschl gt:
> >
> > Ist in der CVS schon eingebaut, siehe diskussion mit directio, bzw.
> > commandref.html Achtung: vorher sollte man mit stty pruefen, dass alle
> echo
> > flags mit "-" versehen sind (und notfalls diese entsprechend aendern).
> >
> > > Ich habe nur /dev/S0, /dev/ttyACM0.
> >
> > define MyCUL CUL /dev/ttyACM0@directio
> >
> > Was liefert
> > perl -e 'print sin(1)'
> > zurueck?
>
> root@seccy:~# perl -e 'print sin(1)'
> 0.841470984807896
>
>
> Das log sagt beim Starten:
> root@seccy:~# 2011.09.09 19:30:27 2: FHEMWEB port 8083 opened
> 2011.09.09 19:30:27 2: FHEMWEB port 8084 opened
> 2011.09.09 19:30:27 2: FHEMWEB port 8085 opened
> 2011.09.09 19:30:27 0: Server started (version =VERS= from =DATE=
> ($Id: fhem.pl,v 1.150 2011-08-16 18:06:38 rudolfkoenig Exp $), pid
> 4546)
>
> Wenn ich allerdings die Zeile
> #define MyCUL CUL /dev/ttyACM0@directio wieder aktiviere, dann wird
> geloggt:
>
> 2011.09.09 19:36:07 2: wrong syntax: define CUL {none |
> devicename[@baudrate] | devicename@directio | hostname:port}
> 2011.09.09 19:36:07 1: define: wrong syntax: define CUL {none |
> devicename[@baudrate] | devicename@directio | hostname:port}
> 2011.09.09 19:36:07 2: FHEMWEB port 8083 opened
> 2011.09.09 19:36:07 2: FHEMWEB port 8084 opened
> 2011.09.09 19:36:07 2: FHEMWEB port 8085 opened
> 2011.09.09 19:36:07 1: configfile: wrong syntax: define CUL
> {none | devicename[@baudrate] | devicename@directio | hostname:port}
>
> 2011.09.09 19:36:07 0: Server started (version =VERS= from =DATE=
> ($Id: fhem.pl,v 1.150 2011-08-16 18:06:38 rudolfkoenig Exp $), pid
> 4553)
>
>
> Meine fhem.cfg sieht mal so aus:
>
> #
> # pgm2 / autocreate configfile. Take a look at the other examples for
> more.
> #
> attr global logfile /var/log/fhem/fhem-%Y-%m.log
> attr global modpath /usr/share/fhem # where our FHEM
> directory is
> attr global port 7072 global # our TCP/IP port
> attr global statefile /var/log/fhem/fhem.save # where to save the
> state of the devices
> attr global verbose 3 # "normal" verbosity (min 1,
> max 5)
>
> #define CUL CUL /dev/ttyACM0 1234
> #define FHZ FHZ /dev/USB0
> define MyCUL CUL /dev/ttyACM0@directio
> define WEB FHEMWEB 8083 global
>
> define WEBphone FHEMWEB 8084 global
> attr WEBphone smallscreen
>
> define WEBtablet FHEMWEB 8085 global
> attr WEBtablet touchpad
>
> # Fake logfile, to access the global log
> define Logfile FileLog /var/log/fhem/fhem-%Y-%m.log fakelog
>
> define autocreate autocreate
> attr autocreate autosave
> attr autocreate device_room %TYPE
> attr autocreate filelog /var/log/fhem/%NAME-%Y.log
> attr autocreate weblink
> attr autocreate weblink_room Plots
>
> --
> To unsubscribe from this group, send email to
> fhem-users+unsubscribe@googlegroups.com
>
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
Originally posted by: <email address deleted>
oh, im Browser werden Sternchen angezeigt, im Mailprogramm war das mal
fettgeschrieben... So heißt die Zeile richtig:
define MyCUL CUL /dev/ttyACM0@directio 1234
Gruß
Eyk
Am 9. September 2011 20:45 schrieb Eyk Haneklaus
:
> Hallo,
>
> du musst eine FHTID mit angeben. Die kannst du dir aussuchen, z.B.:
>
> define MyCUL CUL /dev/ttyACM0@directio *1234*
>
> Gruß
> Eyk
>
> Am 9. September 2011 19:41 schrieb bommelkopp :
>
>
>>
>> On 9 Sep., 15:06, Rudolf Koenig wrote:
>> > > Jetzt bin ich auf den Patch im CVS gesto en, der allerdings beim
>> > > ersten Versuch fehlschl gt:
>> >
>> > Ist in der CVS schon eingebaut, siehe diskussion mit directio, bzw.
>> > commandref.html Achtung: vorher sollte man mit stty pruefen, dass alle
>> echo
>> > flags mit "-" versehen sind (und notfalls diese entsprechend aendern).
>> >
>> > > Ich habe nur /dev/S0, /dev/ttyACM0.
>> >
>> > define MyCUL CUL /dev/ttyACM0@directio
>> >
>> > Was liefert
>> > perl -e 'print sin(1)'
>> > zurueck?
>>
>> root@seccy:~# perl -e 'print sin(1)'
>> 0.841470984807896
>>
>>
>> Das log sagt beim Starten:
>> root@seccy:~# 2011.09.09 19:30:27 2: FHEMWEB port 8083 opened
>> 2011.09.09 19:30:27 2: FHEMWEB port 8084 opened
>> 2011.09.09 19:30:27 2: FHEMWEB port 8085 opened
>> 2011.09.09 19:30:27 0: Server started (version =VERS= from =DATE=
>> ($Id: fhem.pl,v 1.150 2011-08-16 18:06:38 rudolfkoenig Exp $), pid
>> 4546)
>>
>> Wenn ich allerdings die Zeile
>> #define MyCUL CUL /dev/ttyACM0@directio wieder aktiviere, dann wird
>> geloggt:
>>
>> 2011.09.09 19:36:07 2: wrong syntax: define CUL {none |
>> devicename[@baudrate] | devicename@directio | hostname:port}
>> 2011.09.09 19:36:07 1: define: wrong syntax: define CUL {none |
>> devicename[@baudrate] | devicename@directio | hostname:port}
>> 2011.09.09 19:36:07 2: FHEMWEB port 8083 opened
>> 2011.09.09 19:36:07 2: FHEMWEB port 8084 opened
>> 2011.09.09 19:36:07 2: FHEMWEB port 8085 opened
>> 2011.09.09 19:36:07 1: configfile: wrong syntax: define CUL
>> {none | devicename[@baudrate] | devicename@directio | hostname:port}
>>
>> 2011.09.09 19:36:07 0: Server started (version =VERS= from =DATE=
>> ($Id: fhem.pl,v 1.150 2011-08-16 18:06:38 rudolfkoenig Exp $), pid
>> 4553)
>>
>>
>> Meine fhem.cfg sieht mal so aus:
>>
>> #
>> # pgm2 / autocreate configfile. Take a look at the other examples for
>> more.
>> #
>> attr global logfile /var/log/fhem/fhem-%Y-%m.log
>> attr global modpath /usr/share/fhem # where our FHEM
>> directory is
>> attr global port 7072 global # our TCP/IP port
>> attr global statefile /var/log/fhem/fhem.save # where to save the
>> state of the devices
>> attr global verbose 3 # "normal" verbosity (min 1,
>> max 5)
>>
>> #define CUL CUL /dev/ttyACM0 1234
>> #define FHZ FHZ /dev/USB0
>> define MyCUL CUL /dev/ttyACM0@directio
>> define WEB FHEMWEB 8083 global
>>
>> define WEBphone FHEMWEB 8084 global
>> attr WEBphone smallscreen
>>
>> define WEBtablet FHEMWEB 8085 global
>> attr WEBtablet touchpad
>>
>> # Fake logfile, to access the global log
>> define Logfile FileLog /var/log/fhem/fhem-%Y-%m.log fakelog
>>
>> define autocreate autocreate
>> attr autocreate autosave
>> attr autocreate device_room %TYPE
>> attr autocreate filelog /var/log/fhem/%NAME-%Y.log
>> attr autocreate weblink
>> attr autocreate weblink_room Plots
>>
>> --
>> To unsubscribe from this group, send email to
>> fhem-users+unsubscribe@googlegroups.com
>>
>
>
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com