CUL Initialisierung

Begonnen von Akkarin, 01 Dezember 2013, 14:29:31

Vorheriges Thema - Nächstes Thema

Akkarin

Guten Tag,

bin FHEM Einsteiger und versuche gerade meine erste Konfiguration zum laufen zu bringen.
Meine Hardware:
- Synology DS213j
- CUL V3
- FS20 ST4
- Elro Schalter

Ich komme an einem Problem beim Init nicht vorbei:

1) Beim Neustart kann "IODev" Attribut den Aktoren nicht zugewiesen werden, da anscheinend der CUL Init fehlschlägt.
2) Nach dem Abschluss des FHEM Neustarts wird CUL im FHEM als initialisiert angezeigt
3) Im Nachhinein lässt sich CUL den Aktoren manuell als "IODev" zuweisen

Ich habe auch schon versucht Init der Aktoren mit "sleep" zu verzögern - ohne Wirkung...
Habt Ihr vielleicht eine Idee? Zumindest wie könnte ich den CUL Init abwarten und erst dann den Init der Aktoren durchführen?

Vielen Dank im Voraus

Anbei Log und Cfg:

Log des Neustarts:

2013.12.01 14:23:43 1: Including fhem.cfg
2013.12.01 14:23:43 3: Opening CUL_0 device /dev/ttyACM0
2013.12.01 14:23:43 1: Can't locate loadable object for module Device::SerialPort in @INC (@INC contains: /usr/lib/perl5/5.8.6/MARVELL_ARMADA370 /usr/lib/perl5/5.8.6 /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl . ./FHEM) at ./FHEM/DevIo.pm line 192
Compilation failed in require at ./FHEM/DevIo.pm line 192, <$fh> line 21.

2013.12.01 14:23:43 1: define: Can't locate loadable object for module Device::SerialPort in @INC (@INC contains: /usr/lib/perl5/5.8.6/MARVELL_ARMADA370 /usr/lib/perl5/5.8.6 /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl . ./FHEM) at ./FHEM/DevIo.pm line 192
Compilation failed in require at ./FHEM/DevIo.pm line 192, <$fh> line 21.

2013.12.01 14:23:43 3: telnetPort: port 7072 opened
2013.12.01 14:23:43 3: WEB: port 8083 opened
2013.12.01 14:23:43 3: WEBphone: port 8084 opened
2013.12.01 14:23:43 3: WEBtablet: port 8085 opened
2013.12.01 14:23:43 1: Including /usr/local/fhem/FHEM/devices.cfg
2013.12.01 14:23:43 3: No I/O device found for wz_elro_B
2013.12.01 14:23:43 3: wz_elro_B: unknown IODev specified
2013.12.01 14:23:43 3: No I/O device found for wz_Medienschalter
2013.12.01 14:23:43 3: wz_Medienschalter: unknown IODev specified
2013.12.01 14:23:43 3: No I/O device found for wz_elro_C
2013.12.01 14:23:43 3: wz_elro_C: unknown IODev specified
2013.12.01 14:23:43 3: No I/O device found for wz_Stehlampe
2013.12.01 14:23:43 3: wz_Stehlampe: unknown IODev specified
2013.12.01 14:23:43 1: configfile: Can't locate loadable object for module Device::SerialPort in @INC (@INC contains: /usr/lib/perl5/5.8.6/MARVELL_ARMADA370 /usr/lib/perl5/5.8.6 /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl . ./FHEM) at ./FHEM/DevIo.pm line 192
Compilation failed in require at ./FHEM/DevIo.pm line 192, <$fh> line 21.

wz_elro_B: unknown IODev specified
wz_Medienschalter: unknown IODev specified
wz_elro_C: unknown IODev specified
wz_Stehlampe: unknown IODev specified
2013.12.01 14:23:43 1: Including ./log/fhem.save
2013.12.01 14:23:43 1: statefile: Please define CUL_0 first
Please define CUL_0 first
2013.12.01 14:23:43 1: usb create starting
Can't exec "lsusb": No such file or directory at ./FHEM/98_autocreate.pm line 384.
2013.12.01 14:23:44 3: Opening CUL device /dev/ttyACM0
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 457.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 458.
disabling ioctl methods - system constants not found
at ./FHEM/DevIo.pm line 193
2013.12.01 14:23:44 3: Setting CUL baudrate to 9600
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 457.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 458.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 457.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 458.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 457.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 458.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 457.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 458.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 457.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 458.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 457.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 458.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 457.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 458.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 457.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 458.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 457.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 458.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 457.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 458.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 457.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 458.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 457.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 458.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 457.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 458.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 457.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 458.
2013.12.01 14:23:44 3: CUL device opened
2013.12.01 14:23:45 1: define CUL_0 CUL /dev/ttyACM0@9600 1034
2013.12.01 14:23:45 3: Opening CUL_0 device /dev/ttyACM0
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 457.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 458.
disabling ioctl methods - system constants not found
at ./FHEM/DevIo.pm line 193
2013.12.01 14:23:45 3: Setting CUL_0 baudrate to 9600
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 457.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 458.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 457.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 458.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 457.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 458.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 457.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 458.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 457.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 458.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 457.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 458.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 457.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 458.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 457.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 458.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 457.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 458.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 457.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 458.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 457.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 458.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 457.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 458.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 457.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 458.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 457.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.6/MARVELL_ARMADA370/Device/SerialPort.pm line 458.
2013.12.01 14:23:45 3: CUL_0 device opened
2013.12.01 14:23:45 3: CUL_0: Possible commands: BCFiAZEGMRTVWXefmltux
2013.12.01 14:23:45 3: Opening TCM310 device /dev/ttyUSB1
2013.12.01 14:23:45 3: Can't open /dev/ttyUSB1: No such device
2013.12.01 14:23:45 3: Opening TCM310 device /dev/ttyUSB2
2013.12.01 14:23:45 3: Can't open /dev/ttyUSB2: No such device
2013.12.01 14:23:45 3: Opening TCM310 device /dev/ttyUSB3
2013.12.01 14:23:45 3: Can't open /dev/ttyUSB3: No such device
2013.12.01 14:23:45 3: Opening TCM310 device /dev/ttyUSB4
2013.12.01 14:23:45 3: Can't open /dev/ttyUSB4: No such device
2013.12.01 14:23:45 3: Opening TCM310 device /dev/ttyUSB5
2013.12.01 14:23:45 3: Can't open /dev/ttyUSB5: No such device
2013.12.01 14:23:45 3: Opening TCM310 device /dev/ttyUSB6
2013.12.01 14:23:45 3: Can't open /dev/ttyUSB6: No such device
2013.12.01 14:23:45 1: usb create end
2013.12.01 14:23:45 2: SecurityCheck:  WEB,WEBphone,WEBtablet has no basicAuth attribute. telnetPort has no password/globalpassword attribute. Running with root privileges. Restart fhem for a new check if the problem is fixed, or set the global attribute motd to none to supress this message.
2013.12.01 14:23:45 0: Server started with 14 defined entities (version $Id: fhem.pl 3872 2013-09-07 11:58:33Z rudolfkoenig $, os linux, user root, pid 138


Cfg:



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.\
Running with root privileges.\
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 userattr devStateIcon devStateStyle icon sortby webCmd
attr global verbose 3

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


define CUL_0 CUL /dev/ttyACM0@9600 1034

define telnetPort telnet 7072 global

define WEB FHEMWEB 8083 global
attr WEB stylesheetPrefix dark

define WEBphone FHEMWEB 8084 global
attr WEBphone stylesheetPrefix smallscreen

define WEBtablet FHEMWEB 8085 global
attr WEBtablet stylesheetPrefix darksmallscreen

# 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

# Device Config
define wz_elro_B IT 0FFFFF0FFF FF F0
attr wz_elro_B IODev CUL_0
attr wz_elro_B model ELRO_Switch
attr wz_elro_B room Wohnzimmer_wz
define wz_Medienschalter FS20 1034 00
attr wz_Medienschalter IODev CUL_0
attr wz_Medienschalter model fs20st_4
attr wz_Medienschalter room Wohnzimmer_wz
define wz_elro_C IT 0FFFFFF0FF FF F0
attr wz_elro_C IODev CUL_0
attr wz_elro_C model ELRO_Switch
attr wz_elro_C room Wohnzimmer_wz
define wz_Stehlampe IT 0FFFF0FFFF FF F0
attr wz_Stehlampe IODev CUL_0
attr wz_Stehlampe model ELRO_Switch
attr wz_Stehlampe room Wohnzimmer_wz


hglaser

hallo akkarin

ich kann hier leider auch wenig dazu beitragen, aber ich glaube gelesen zu haben, daß auf der Synology ein veraltetes perl und einige USB treiber fehlen. siehe http://www.fischer-net.de/hausautomation/fhem/47-fhem-mit-perl-5-16-0-auf-synology-diskstation.html
Nun hat Martin Fischer ja Perl und die fehlenden Module kompiliert und auf seine Seite zur Verfügung gestellt, jedoch wie ich sehe, nur für den Marvell Armada 370 Prozessor und nicht für den Marvell Kirkwood den du ja hast. Siehe http://forum.synology.com/wiki/index.php/What_kind_of_CPU_does_my_NAS_have
Vieleicht kann man Dir ja in der Hardware/NAS Sektion weiterhelfen http://forum.fhem.de/index.php/board,30.0.html

liebe grüsse harald

justme1968

du hast das Device::SerialPort modul nicht installiert.

die einfachste möglichkeit wäre es erst mal per 'cpan install Device::SerialPort' zu versuchen.
wenn das nicht hilft das perl packet von martin von http://www.fischer-net.de

was perl angeht ist es aber am aller besten ipkg zu installieren. dann bekommst du auch eine aktuellere perl version gleich mit.

gruss
  andre
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

Akkarin

Danke für die Antworten.
Die DS213j hat den Armada370 und nicht den Kirwood. Ich habe hierfür die usb Treiber cross kompilliert und mit einem angepassten spk vom Martin Fischer auf der NAS installiert. Das läuft auch soweit. Den Device::Serial habe ich mit cpan und ipkg installiert, beide liefern aber Device::serial für Perl v 5.10 und auf der NAS läuft 5.8.6.... Das scheint das Problem in den Fehlerlogs zu beschreiben.
Ich könnte natürlich das Perl Paket von Martin Fischer umbiegen und auf meiner NAS installieren, weiss allerdings nicht , ob es zu Problemen führt. Ist ja für nen anderen Prozessor kompilliert. Habt ihr da Erfahrungswerte?

Eigentlich würde mir schon helfen, wenn ich die Init Reihenfolge fest vorgeben könnte. Der CUL wird zum Schluss richtig initialisiert und funktioniert soweit gut. Was halt stört ist, dass Init der Komponenten irgendwann den CUL Init "überholt" und diese daher nicht automatisch initialisiert werden, sondern müssen dann bei jedem Neustart manuell nachkonfiguriert werden. Habt ihr vll hierfür eine Lösungsidee?


Corrado

@Akkarin: Stellst du deine Pakete auch weniger "fähigen" Leuten wie mir zur Verfügung?

Akkarin

Klar, wenn ich Email Adresse oder eine Upload Möglichkeit bekomme  ;)

bishop666

#6
hi,

habe dir eine PM mit meiner Email Adresse geschrieben!

Würde wenn ich die daten habe es gerne hier zur verfügungstellen, wenn du nichts dagegen hast?

http://ul.to/3maen21b


Vielen Dank

docb

Hi, sorry, dass ich das Thema wieder hochhole, aber ich habe ein kleines Problem, dass hierzu passt. Ich versuche gerade wie oben beschreiben das SerialDevice zu installieren, macht er aber nicht. Irgendein C-Dingens fehlt wohl. Kann mir jemand weiterhelfen - was und vor allem WIE muss ich denn noch installieren?

cpan[1]> install Device::SerialPort
Reading '/root/.cpan/Metadata'
  Database was generated on Mon, 01 Dec 2014 15:17:02 GMT
Running install for module 'Device::SerialPort'
Checksum for /root/.cpan/sources/authors/id/C/CO/COOK/Device-SerialPort-1.04.tar.gz ok
Scanning cache /root/.cpan/build for sizes
............................................................................DONE
Configuring C/CO/COOK/Device-SerialPort-1.04.tar.gz with Makefile.PL
To enable serial port tests, use:
        perl Makefile.PL TESTPORT=<DEVICE>
where <DEVICE> is a specific port or 'auto' to autodetect.
Running ./configure ...
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
The 'configure' script didn't like something.  It should have told you
what went wrong, but you can check 'config.log' for more details.
Warning: No success on command[/usr/bin/perl Makefile.PL]
  COOK/Device-SerialPort-1.04.tar.gz
  /usr/bin/perl Makefile.PL -- NOT OK
Failed during this command:
COOK/Device-SerialPort-1.04.tar.gz           : writemakefile NO '/usr/bin/perl Makefile.PL' returned status 512

cpan[2]> exit


Viele Grüße
doc
I love FHEM!

docb

#8
So, jetzt habe ich es einfach mal versucht und tatsächlich habe ich es geschafft gcc über ipkg zu installieren. Nur leider mit wenig Erfolg:
Running ./configure ...
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.
The 'configure' script didn't like something.  It should have told you
what went wrong, but you can check 'config.log' for more details.
Warning: No success on command[/usr/bin/perl Makefile.PL]
  COOK/Device-SerialPort-1.04.tar.gz
  /usr/bin/perl Makefile.PL -- NOT OK
Failed during this command:
COOK/Device-SerialPort-1.04.tar.gz           : writemakefile NO '/usr/bin/perl Makefile.PL' returned status 512


Und in der config.log steht folgendes:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by Device::SerialPort configure 1.04, which was
generated by GNU Autoconf 2.61.  Invocation command line was

  $ ./configure

## --------- ##
## Platform. ##
## --------- ##

hostname = DS
uname -m = armv7l
uname -r = 3.2.40
uname -s = Linux
uname -v = #5004 SMP Sat Nov 29 08:39:02 CST 2014

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /sbin
PATH: /bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /usr/syno/sbin
PATH: /usr/syno/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /opt/bin
PATH: /opt/sbin
PATH: .
PATH: /var/packages/JavaManager/target/Java/bin
PATH: /var/packages/JavaManager/target/Java/jre/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1739: checking for gcc
configure:1755: found /opt/bin/gcc
configure:1766: result: gcc
configure:2004: checking for C compiler version
configure:2011: gcc --version >&5
gcc (GCC) 4.2.3
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2014: $? = 0
configure:2021: gcc -v >&5
Using built-in specs.
Target: arm-none-linux-gnueabi
Configured with: ../gcc-4.2/configure --build=i386-pc-linux-gnu --host=arm-none-linux-gnueabi --target=arm-none-linux-gnueabi --prefix=/opt --disable-nls --disable-static --with-as=/home/slug/optware/cs08q1armel/toolchain/arm-2008q1/bin/arm-none-linux-gnueabi-as --with-ld=/home/slug/optware/cs08q1armel/toolchain/arm-2008q1/bin/arm-none-linux-gnueabi-ld --enable-languages=c,c++ --disable-multilib --enable-threads --disable-libmudflap --disable-libssp --disable-libgomp --disable-libstdcxx-pch --enable-shared --enable-symvers=gnu --enable-__cxa_atexit
Thread model: posix
gcc version 4.2.3
configure:2024: $? = 0
configure:2031: gcc -V >&5
gcc: '-V' option must have argument
configure:2034: $? = 1
configure:2057: checking for C compiler default output file name
configure:2084: gcc    conftest.c  >&5
/opt/lib/gcc/arm-none-linux-gnueabi/4.2.3/../../../../arm-none-linux-gnueabi/bin/ld: ERROR: /lib/libc.so.6 uses VFP register arguments, a.out does not
/opt/lib/gcc/arm-none-linux-gnueabi/4.2.3/../../../../arm-none-linux-gnueabi/bin/ld: failed to merge target specific data of file /lib/libc.so.6
collect2: ld returned 1 exit status
configure:2087: $? = 1
configure:2125: result:
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "Device::SerialPort"
| #define PACKAGE_TARNAME "device--serialport"
| #define PACKAGE_VERSION "1.04"
| #define PACKAGE_STRING "Device::SerialPort 1.04"
| #define PACKAGE_BUGREPORT "devser-bugs@outflux.net"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2131: error: C compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_CC_set=''
ac_cv_env_CC_value=''
ac_cv_env_CFLAGS_set=''
ac_cv_env_CFLAGS_value=''
ac_cv_env_CPPFLAGS_set=''
ac_cv_env_CPPFLAGS_value=''
ac_cv_env_CPP_set=''
ac_cv_env_CPP_value=''
ac_cv_env_LDFLAGS_set=''
ac_cv_env_LDFLAGS_value=''
ac_cv_env_LIBS_set=''
ac_cv_env_LIBS_value=''
ac_cv_env_build_alias_set=''
ac_cv_env_build_alias_value=''
ac_cv_env_host_alias_set=''
ac_cv_env_host_alias_value=''
ac_cv_env_target_alias_set=''
ac_cv_env_target_alias_value=''
ac_cv_prog_ac_ct_CC='gcc'

## ----------------- ##
## Output variables. ##
## ----------------- ##

CC='gcc'
CFLAGS=''
CPP=''
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GREP=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
OBJEXT=''
PACKAGE_BUGREPORT='devser-bugs@outflux.net'
PACKAGE_NAME='Device::SerialPort'
PACKAGE_STRING='Device::SerialPort 1.04'
PACKAGE_TARNAME='device--serialport'
PACKAGE_VERSION='1.04'
PATH_SEPARATOR=':'
SHELL='/bin/ash'
ac_ct_CC='gcc'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_NAME "Device::SerialPort"
#define PACKAGE_TARNAME "device--serialport"
#define PACKAGE_VERSION "1.04"
#define PACKAGE_STRING "Device::SerialPort 1.04"
#define PACKAGE_BUGREPORT "devser-bugs@outflux.net"

configure: exit 77


Ich habe dann in einem anderen Forum den Tipp gefunden und es mit ipkg install perl-device-serialport versucht und dann die Dateien so kopiert, dass fhem sie findet:

cp /opt/lib/perl5/site_perl/5.10.0/arm-linux/Device/SerialPort.pm /volume1/@appstore/Perl/lib/perl5/site_perl/Device
cp /opt/lib/perl5/site_perl/5.10.0/arm-linux/auto/Device/SerialPort/SerialPort.bs /volume1/@appstore/Perl/lib/perl5/site_perl/auto/Device/SerialPort
cp /opt/lib/perl5/site_perl/5.10.0/arm-linux/auto/Device/SerialPort/SerialPort.so /volume1/@appstore/Perl/lib/perl5/site_perl/auto/Device/SerialPort


Aber leider scheint das nicht ganz zu funktionieren:


2014.12.06 15:12:23 1: Including /usr/local/FHEM/etc/fhem.cfg
2014.12.06 15:12:23 3: telnetPort: port 7072 opened
2014.12.06 15:12:23 3: WEB: port 8083 opened
2014.12.06 15:12:23 3: WEBphone: port 8084 opened
2014.12.06 15:12:23 3: WEBtablet: port 8085 opened
2014.12.06 15:12:23 3: Opening CUL0 device /dev/ttyACM0
2014.12.06 15:12:23 3: Setting CUL0 baudrate to 9600
2014.12.06 15:12:23 3: CUL0 device opened
2014.12.06 15:12:27 1: /dev/ttyACM0 disconnected, waiting to reappear (CUL0)
2014.12.06 15:12:27 3: CUL0: Possible commands: Noanswer
2014.12.06 15:12:27 1: Cannot init /dev/ttyACM0, ignoring it (CUL0)
2014.12.06 15:12:27 2: Switched CUL0 rfmode to MAX
2014.12.06 15:12:28 3: HUEDevice3: I/O device is HUEBridge
2014.12.06 15:12:28 3: HUEDevice2: I/O device is HUEBridge
2014.12.06 15:12:28 3: HUEDevice1: I/O device is HUEBridge
2014.12.06 15:12:28 3: HUEDevice4: I/O device is HUEBridge
2014.12.06 15:12:28 3: HUEGroup0: I/O device is HUEBridge
2014.12.06 15:12:28 1: Including /usr/local/FHEM/var/log/fhem.save
2014.12.06 15:12:28 1: usb create starting
2014.12.06 15:12:28 1: PERL WARNING: Can't exec "lsusb": No such file or directory at /usr/local/FHEM/share/fhem/FHEM/98_autocreate.pm line 366.
2014.12.06 15:12:28 3: Probing CUL device /dev/ttyACM0
2014.12.06 15:12:28 1: define CUL_0 CUL /dev/ttyACM0@9600 1034
2014.12.06 15:12:28 3: Opening CUL_0 device /dev/ttyACM0
2014.12.06 15:12:28 3: Setting CUL_0 baudrate to 9600
2014.12.06 15:12:28 3: CUL_0 device opened
2014.12.06 15:12:28 3: CUL_0: Possible commands: BCFiAZEGMRTVWXefmltux
2014.12.06 15:12:29 2: Setting CUL fhtid from 1234 to 1034
2014.12.06 15:12:29 1: usb create end
2014.12.06 15:12:29 2: SecurityCheck:  WEB,WEBphone,WEBtablet has no basicAuth attribute. telnetPort has no password/globalpassword attribute. Running with root privileges. 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.06 15:12:29 0: Server started with 41 defined entities (version $Id: fhem.pl 6913 2014-11-08 10:32:44Z rudolfkoenig $, os linux, user root, pid 3605)
2014.12.06 15:12:57 1: Error in CUL_MAX_SendQueueHandler: CUL CUL0 did not answer request for current credits. Waiting 5 seconds.
2014.12.06 15:13:02 1: Error in CUL_MAX_SendQueueHandler: CUL CUL0 did not answer request for current credits. Waiting 5 seconds.
2014.12.06 15:13:07 1: Error in CUL_MAX_SendQueueHandler: CUL CUL0 did not answer request for current credits. Waiting 5 seconds.
2014.12.06 15:13:12 1: Error in CUL_MAX_SendQueueHandler: CUL CUL0 did not answer request for current credits. Waiting 5 seconds.
2014.12.06 15:13:17 1: Error in CUL_MAX_SendQueueHandler: CUL CUL0 did not answer request for current credits. Waiting 5 seconds.
2014.12.06 15:13:23 1: Error in CUL_MAX_SendQueueHandler: CUL CUL0 did not answer request for current credits. Waiting 5 seconds.
2014.12.06 15:13:28 1: Error in CUL_MAX_SendQueueHandler: CUL CUL0 did not answer request for current credits. Waiting 5 seconds.
2014.12.06 15:13:33 1: Error in CUL_MAX_SendQueueHandler: CUL CUL0 did not answer request for current credits. Waiting 5 seconds.
2014.12.06 15:13:36 1: PERL WARNING: Use of uninitialized value in string eq at /usr/local/FHEM/share/fhem/FHEM/31_HUEDevice.pm line 99.
2014.12.06 15:13:38 1: Error in CUL_MAX_SendQueueHandler: CUL CUL0 did not answer request for current credits. Waiting 5 seconds.
2014.12.06 15:13:43 1: Error in CUL_MAX_SendQueueHandler: CUL CUL0 did not answer request for current credits. Waiting 5 seconds.
2014.12.06 15:13:48 1: Error in CUL_MAX_SendQueueHandler: CUL CUL0 did not answer request for current credits. Waiting 5 seconds.
2014.12.06 15:13:53 1: Error in CUL_MAX_SendQueueHandler: CUL CUL0 did not answer request for current credits. Waiting 5 seconds.
2014.12.06 15:13:58 1: Error in CUL_MAX_SendQueueHandler: CUL CUL0 did not answer request for current credits. Waiting 5 seconds.
2014.12.06 15:14:03 1: Error in CUL_MAX_SendQueueHandler: CUL CUL0 did not answer request for current credits. Waiting 5 seconds.
2014.12.06 15:14:08 1: Error in CUL_MAX_SendQueueHandler: CUL CUL0 did not answer request for current credits. Waiting 5 seconds.
2014.12.06 15:14:13 1: Error in CUL_MAX_SendQueueHandler: CUL CUL0 did not answer request for current credits. Waiting 5 seconds.
2014.12.06 15:14:18 1: Error in CUL_MAX_SendQueueHandler: CUL CUL0 did not answer request for current credits. Waiting 5 seconds.
2014.12.06 15:14:23 1: Error in CUL_MAX_SendQueueHandler: CUL CUL0 did not answer request for current credits. Waiting 5 seconds.
2014.12.06 15:14:28 1: Error in CUL_MAX_SendQueueHandler: CUL CUL0 did not answer request for current credits. Waiting 5 seconds.
2014.12.06 15:14:33 1: Error in CUL_MAX_SendQueueHandler: CUL CUL0 did not answer request for current credits. Waiting 5 seconds.
2014.12.06 15:14:38 1: Error in CUL_MAX_SendQueueHandler: CUL CUL0 did not answer request for current credits. Waiting 5 seconds.
2014.12.06 15:14:43 1: Error in CUL_MAX_SendQueueHandler: CUL CUL0 did not answer request for current credits. Waiting 5 seconds.
2014.12.06 15:14:48 1: Error in CUL_MAX_SendQueueHandler: CUL CUL0 did not answer request for current credits. Waiting 5 seconds.
2014.12.06 15:14:53 1: Error in CUL_MAX_SendQueueHandler: CUL CUL0 did not answer request for current credits. Waiting 5 seconds.
2014.12.06 15:14:58 1: Error in CUL_MAX_SendQueueHandler: CUL CUL0 did not answer request for current credits. Waiting 5 seconds.
2014.12.06 15:15:03 1: Error in CUL_MAX_SendQueueHandler: CUL CUL0 did not answer request for current credits. Waiting 5 seconds.
2014.12.06 15:15:08 0: Server shutdown




Kann mir jemand einen Tipp geben?
Viele Grüße
doc
I love FHEM!

justme1968

du kannst (normalerweise) keine binary module von einer perl version zu einer anderen kopieren.

warum nimmst du nicht gleich das komplette perl inklusive Device::Serial port aus ipkg wenn es das schon gibt?

du musst nur im start script fhem.sh in /usr/local/FHEM/app/scripts am anfang PERL=/opt setzen.

gruss
  andre
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968