Probleme owserver start

Begonnen von Heatseeker, 24 November 2017, 19:55:06

Vorheriges Thema - Nächstes Thema

Heatseeker

Moin,

ich habe auf meinem IPFire - Firewall Rechner FHEM installiert und nach dieser Anleitung https://forum.ipfire.org/viewtopic.php?t=6474 owfs installiert. Ich habe einen DS9490R Typ2 1-Wire USB Adapter eingesteckt und daran testweise einen DS18B20 Temperatursensor zum testen.

Mein OWFS funktioniert und ich sehe meinen Temperatursensor und kann diesen auch auslesen.

Das starten des owfs mache ich mittels /usr/bin/owfs --allow_other -u /media/1wire

Meinen owserver (das Programm liegt auch unter /usr/bin/owserver) kann ich leider nicht starten.
Wenn ich diesen mittels
/usr/bin/owserver -c /etc/owfs.conf
starten möchte, passiert nichts und mittels
ps aux | grep owserver
sehe ich keine gestartete instanz.

Leider ist es bei IPFire recht schwer hier code zu compilieren oder auch vorkompilierte Paket zu bekommen und ich bin so langsam zur überzeugung gekommen, dass ich OWServer nicht zum laufen bekommen werde.

Da ich ja den Temp-Sensor per cat temperature ausgelesen bekomme: gibt es eine möglichkeit den Inhalt der "Datei" als Sensorwert in FHEM darzustellen? (geht bestimmt nur mir fehlt da gerade der richtige hinweis...)

Oder seht ihr andere Möglicheiten oder Schwierigkeiten?

Vielen Dank!
Heatseeker

Heatseeker

Vielleicht hilft es ja weiter...
Wenn ich owserver mittels:
/usr/bin/owserver --debug --foreground --error_print=2 --error_level=9 -c /etc/owfs.conf
starte, bekomme ich folgende antwort:
DEBUG MODE
libow version:
        2.9p0
  DEBUG: ow_opt.c:(284) Configuration file (/etc/owfs.conf:1) Program=, Option=, Value=
  DEBUG: ow_opt.c:(284) Configuration file (/etc/owfs.conf:2) Program=, Option=, Value=
  DEBUG: ow_opt.c:(284) Configuration file (/etc/owfs.conf:3) Program=, Option=, Value=
  DEBUG: ow_opt.c:(284) Configuration file (/etc/owfs.conf:4) Program=, Option=, Value=
  DEBUG: ow_opt.c:(284) Configuration file (/etc/owfs.conf:5) Program=, Option=, Value=
  DEBUG: ow_opt.c:(284) Configuration file (/etc/owfs.conf:6) Program=, Option=, Value=
  DEBUG: ow_opt.c:(284) Configuration file (/etc/owfs.conf:7) Program=, Option=, Value=
  DEBUG: ow_opt.c:(284) Configuration file (/etc/owfs.conf:8) Program=server, Option=port, Value=4304
  DEBUG: ow_opt.c:(329) Configuration file (/etc/owfs.conf:8) Option port recognized as port. Value=4304
  DEBUG: ow_opt.c:(284) Configuration file (/etc/owfs.conf:9) Program=, Option=, Value=
  DEBUG: ow_opt.c:(284) Configuration file (/etc/owfs.conf:10) Program=Not server, Option=server, Value=192.168.101.1:4304
  DEBUG: ow_opt.c:(284) Configuration file (/etc/owfs.conf:11) Program=, Option=, Value=
  DEBUG: ow_opt.c:(284) Configuration file (/etc/owfs.conf:12) Program=, Option=, Value=
  DEBUG: ow_opt.c:(284) Configuration file (/etc/owfs.conf:13) Program=server, Option=usb, Value=
  DEBUG: ow_opt.c:(329) Configuration file (/etc/owfs.conf:13) Option usb recognized as usb. Value=
  DEBUG: ow_opt.c:(284) Configuration file (/etc/owfs.conf:14) Program=, Option=, Value=
  DEBUG: ow_opt.c:(284) Configuration file (/etc/owfs.conf:15) Program=http, Option=port, Value=3001
  DEBUG: ow_opt.c:(284) Configuration file (/etc/owfs.conf:16) Program=, Option=, Value=
  DEBUG: ow_opt.c:(284) Configuration file (/etc/owfs.conf:17) Program=ftp, Option=port, Value=2121
  DEBUG: ow_opt.c:(284) Configuration file (/etc/owfs.conf:18) Program=, Option=, Value=
  DEBUG: ow_opt.c:(284) Configuration file (/etc/owfs.conf:19) Program=owfs, Option=mountpoint, Value=/media/1wire
  DEBUG: ow_opt.c:(284) Configuration file (/etc/owfs.conf:20) Program=owfs, Option=allow_other, Value=
  DEBUG: ow_opt.c:(284) Configuration file (/etc/owfs.conf:21) Program=, Option=, Value=
  DEBUG: ow_opt.c:(284) Configuration file (/etc/owfs.conf:22) Program=, Option=, Value=
  DEBUG: ow_daemon.c:(166) main thread id = 2864427648
CONNECT: ow_avahi_link.c:(68) No Avahi support. Library libavahi-client couldn't be loaded
CONNECT: ow_dnssd.c:(82) Zeroconf/Bonjour is disabled since dnssd library isn't found
   CALL: ow_parsename.c:(98) path=[]
  DEBUG: owlib.c:(81) Globals temp limits 0C 100C (for simulated adapters)
CONNECT: ow_usb_cycle.c:(68) Bus master found: 3:9
CONNECT: ow_usb_msg.c:(288) Failed to set configuration on USB DS9490 bus master at 3:9.
  DEBUG: ow_usb_msg.c:(309) Did not successfully open DS9490 3:9 -- permission problem?
DEFAULT: owlib.c:(198) Cannot open USB bus master
DEFAULT: owlib.c:(56) No valid 1-wire buses found
  DEBUG: ow_exit.c:(18) Exit code = 1
   CALL: ow_lib_close.c:(21) Starting Library cleanup
   CALL: ow_lib_stop.c:(27) Clear Cache
  DEBUG: ow_cache.c:(300) Flipping cache tree (purging timed-out data)
  DEBUG: ow_cache.c:(318) flip cache. tdestroy() will be called.
  DEBUG: ow_cache.c:(300) Flipping cache tree (purging timed-out data)
  DEBUG: ow_cache.c:(318) flip cache. tdestroy() will be called.
   CALL: ow_lib_stop.c:(29) Closing input devices
   CALL: ow_lib_stop.c:(31) Closing outout devices
  DEBUG: ow_connect_out.c:(56) Freeing outbound (null) #0
   CALL: ow_lib_close.c:(34) Finished Library cleanup
  DEBUG: ow_lib_close.c:(42) Libraries closed


Mich macht das "Permission Problem" beim zugriff auf meine DS9490R stutzig...

Heatseeker

Sorry, ich hab es selbst gelöst :-)
Da sitzt man tagelang am Problem und denk, jetzt brauch ich Hilfe und dann findet man einen Weg...

Also für den Fall, dass jemand das gleich Problem hat. Es war wirklich das Zugriffsproblem auf meinen DS9490R...

Ich habe ein neue Gruppe OWFS erstellt und dann eine UDEV Regel:
SUBSYSTEM!="usb_device", ACTION!="add", GOTO="owfs_rules_end"
SYSFS{idVendor}=="04fa", SYSFS{idProduct}=="2490", GROUP="owfs", MODE="0664"
LABEL="owfs_rules_end"


Danach den Stick raus und wieder eingestöpselt und läuft! Puh...

fiedel

Alternativ zur UDEV- Regel kannst du den Adapter auch über den Pfad "/dev/serial/by-id/" in der owfs.conf einbinden, weil dort der Gerätename immer gleich ist, egal über welchen USB- Port das Gerät verbunden ist. Das klappt übrigens auch mit USB- oder seriellen Geräten, die direkt in FHEM eingebunden werden.

Gruß
Frank
FeatureLevel: 6.1 auf Wyse N03D ; Deb. 11 ; Perl: v5.14.2 ; IO: HM-MOD-RPI-PCB + VCCU|CUL 868 V 1.66|LinkUSBi |TEK603
HM: SEC-SCO|SCI-3-FM|LC-SW4-PCB|ES-PMSW1-PL|RC-4-2|SEN-MDIR-O|SEC-WDS-2
CUL: HMS100TF|FS20 S4A-2 ; OWDevice: DS18S20|DS2401|DS2406|DS2423